Closed Bug 1118134 Opened 9 years ago Closed 9 years ago

B2G desktop should be able to draw in the titlebar

Categories

(Firefox OS Graveyard :: Runtime, defect)

x86
macOS
defect
Not set
normal

Tracking

(firefox38 fixed)

RESOLVED FIXED
2.2 S5 (6feb)
Tracking Status
firefox38 --- fixed

People

(Reporter: paul, Assigned: paul)

References

Details

Attachments

(3 files, 4 obsolete files)

The same way we can draw in the titlebar in a xul:window with chromemargin="0,-1,-1,-1", it should be possible to draw shell.html over the titlebar.
Attached patch DOMWindowUtils.setChromeMargin() (obsolete) — Splinter Review
Attached patch exampleSplinter Review
Attached image screenshot
Of course, this is useless until we support dragging from HTML content.
Attached patch v1 (obsolete) — Splinter Review
Assignee: nobody → paul
Attachment #8544435 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8555662 - Flags: review?(mstange)
Comment on attachment 8555662 [details] [diff] [review]
v1

Review of attachment 8555662 [details] [diff] [review]:
-----------------------------------------------------------------

You might need a DOM peer review on the idl change.

::: dom/interfaces/base/nsIDOMWindowUtils.idl
@@ +1769,5 @@
>    readonly attribute unsigned long long framesReflowed;
> +
> +  /**
> +   * Controls the amount of chrome that should be visible on each side of
> +   * the window. Works like the chromemargin xul:window attribute.

Mention that this should only be used if your window is not XUL.
Attachment #8555662 - Flags: review?(mstange) → review+
Attached patch v1.1 (obsolete) — Splinter Review
Attachment #8555662 - Attachment is obsolete: true
Attachment #8555723 - Flags: review?(bzbarsky)
Comment on attachment 8555723 [details] [diff] [review]
v1.1

r=me
Attachment #8555723 - Flags: review?(bzbarsky) → review+
Keywords: checkin-needed
This throws on Mac. I need to figure out what's going on.
Keywords: checkin-needed
Attached patch addendum (obsolete) — Splinter Review
Attachment #8557032 - Flags: review?(mstange)
Comment on attachment 8557032 [details] [diff] [review]
addendum

Oops.
Attachment #8557032 - Flags: review?(mstange) → review+
Attached patch foldedSplinter Review
https://treeherder.mozilla.org/#/jobs?repo=try&revision=58adbd5539d0
Attachment #8555723 - Attachment is obsolete: true
Attachment #8557032 - Attachment is obsolete: true
Attachment #8558108 - Flags: review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/c479a713e4c5
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S5 (6feb)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: