Closed
Bug 963294
Opened 6 years ago
Closed 6 years ago
[e10s] Implement a proxy for the color picker
Categories
(Toolkit :: General, defect)
Not set
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: evilpie, Assigned: evilpie)
References
Details
Attachments
(1 file, 2 obsolete files)
20.03 KB,
patch
|
jdm
:
review+
|
Details | Diff | Splinter Review |
So I decided, because bug 910384 is blocked on that FileHandle stuff to instead implement <input type=color>. We have a lot of the same life-time issues as the other case, which I need help figuring out. Inheriting from both nsIColorPicker and PColorPickerChild seems to be hard. It seems like we should deref nsColorPickerProxy when IPDL isn't going to touch it again. Not sure what the right point for that is though: Proxy::Recv__delete__ or TabChild::DeallocPColorPickerChild (this looks kinda good?)
Assignee | ||
Updated•6 years ago
|
Attachment #8364656 -
Attachment is patch: true
Comment on attachment 8364656 [details] [diff] [review] color-picker Thanks, I'll take a look soon. I've been thinking of how we can generalize some of the nsWidgetFactory stuff, so maybe we can work this in.
Attachment #8364656 -
Flags: feedback?(wmccloskey)
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → evilpies
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•6 years ago
|
||
Although probably violating all kinds of best practices, I think I figured out the lifetime management in the child.
Attachment #8364656 -
Attachment is obsolete: true
Attachment #8364656 -
Flags: feedback?(wmccloskey)
Assignee | ||
Comment 3•6 years ago
|
||
Attachment #8365515 -
Attachment is obsolete: true
Attachment #8377819 -
Flags: review?(josh)
Comment 4•6 years ago
|
||
Comment on attachment 8377819 [details] [diff] [review] color-picker v3 Review of attachment 8377819 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/ipc/ColorPickerParent.cpp @@ +43,5 @@ > + mColorPickerParent = nullptr; > +} > + > +bool > +ColorPickerParent::CreatColorPicker() Create ::: dom/ipc/PBrowser.ipdl @@ +222,5 @@ > */ > ShowTooltip(uint32_t x, uint32_t y, nsString tooltip); > HideTooltip(); > > + PColorPicker(nsString title, nsString initialColor); Can't hurt to document this. ::: dom/ipc/moz.build @@ +17,5 @@ > 'nsIRemoteBlob.h', > ] > > EXPORTS.mozilla.dom += [ > + 'ColorPickerParent.h', Does this need to be exported? ::: widget/xpwidgets/nsColorPickerProxy.h @@ +3,5 @@ > + * License, v. 2.0. If a copy of the MPL was not distributed with this > + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ > + > +#ifndef nsColorPickerProxy_h__ > +#define nsColorPickerProxy_h__ Scrap the __ on these lines. @@ +17,5 @@ > + NS_DECL_ISUPPORTS > + NS_DECL_NSICOLORPICKER > + > + nsColorPickerProxy() {}; > + ~nsColorPickerProxy() {}; No need for ; on these lines
Attachment #8377819 -
Flags: review?(josh) → review+
Assignee | ||
Comment 5•6 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/5e4cee2fcbc6
Comment 6•6 years ago
|
||
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/3fedf7d4f967 for https://tbpl.mozilla.org/php/getParsedLog.php?id=35122778&tree=Mozilla-Inbound and https://tbpl.mozilla.org/php/getParsedLog.php?id=35122784&tree=Mozilla-Inbound
Assignee | ||
Comment 7•6 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/02959a932fb7 try: https://tbpl.mozilla.org/?tree=Try&rev=90a387c24af6
Comment 8•6 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/02959a932fb7
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in
before you can comment on or make changes to this bug.
Description
•