Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Issue 13150004: Support color chooser inside extesions, apps, chrome frame, dev tool (Closed)

Created:
7 years, 9 months ago by keishi
Modified:
7 years, 7 months ago
CC:
chromium-reviews, vsevik, tfarina, jeremya+watch_chromium.org, jam, sail+watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, yurys, chromium-apps-reviews_chromium.org, pfeldman
Base URL:
http://git.chromium.org/chromium/src.git@ngcolor
Visibility:
Public.

Description

Support color chooser inside extesions, apps, chrome frame, dev tool This introduces ColorChooserController for the code shared between the WebContentsDelegate. This also solves the problem of multiple color chooser dialogs per window in Gtk. We only want one color chooser open per app ever. BUG=174112, 152923 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201522

Patch Set 1 #

Total comments: 3

Patch Set 2 : Used static class member #

Total comments: 4

Patch Set 3 : Open no longer returns NULL, protected ctor/dtor #

Total comments: 2

Patch Set 4 : Removed chrome/browser/ui/color_chooser.cc #

Total comments: 6

Patch Set 5 : Moved function from color_chooser.h to color_chooser_util.h #

Patch Set 6 : Rebased #

Total comments: 6

Patch Set 7 : Moved function to browser_dialogs.h #

Patch Set 8 : Fixed android build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -184 lines) Patch
M chrome/browser/devtools/devtools_window.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/devtools/devtools_window.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_host.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
A chrome/browser/ui/android/color_chooser_dialog_android.cc View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 2 chunks +1 line, -8 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 3 chunks +5 lines, -23 lines 0 comments Download
M chrome/browser/ui/browser_dialogs.h View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/color_chooser_mac.mm View 1 2 3 4 5 6 6 chunks +47 lines, -24 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/color_chooser_gtk.cc View 1 2 3 4 5 6 4 chunks +38 lines, -17 lines 0 comments Download
M chrome/browser/ui/views/color_chooser_aura.cc View 1 2 3 4 5 6 5 chunks +45 lines, -19 lines 0 comments Download
M chrome/browser/ui/views/color_chooser_win.cc View 1 2 3 4 5 6 4 chunks +33 lines, -17 lines 0 comments Download
M chrome/browser/ui/views/external_tab_container_win.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/external_tab_container_win.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/web_contents_delegate_android/color_chooser_android.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -4 lines 0 comments Download
M components/web_contents_delegate_android/color_chooser_android.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -15 lines 0 comments Download
M components/web_contents_delegate_android/web_contents_delegate_android.h View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M components/web_contents_delegate_android/web_contents_delegate_android.cc View 1 2 3 4 5 2 chunks +4 lines, -5 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 2 chunks +12 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 3 chunks +15 lines, -13 lines 0 comments Download
M content/public/browser/color_chooser.h View 1 2 3 4 1 chunk +1 line, -20 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 4 5 1 chunk +2 lines, -5 lines 0 comments Download
M content/public/browser/web_contents_delegate.cc View 1 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
keishi
ColorChooser wasn't working inside extesnions, apps, chrome frames, and dev tool because I didn't implement ...
7 years, 9 months ago (2013-03-28 12:49:44 UTC) #1
sky
sky->ben
7 years, 9 months ago (2013-03-28 16:31:46 UTC) #2
Ben Goodger (Google)
https://codereview.chromium.org/13150004/diff/1/chrome/browser/browser_process.h File chrome/browser/browser_process.h (right): https://codereview.chromium.org/13150004/diff/1/chrome/browser/browser_process.h#newcode224 chrome/browser/browser_process.h:224: virtual ColorChooserController* color_chooser_controller() = 0; BrowserProcess is a Chrome ...
7 years, 8 months ago (2013-03-29 14:56:49 UTC) #3
keishi
On 2013/03/29 14:56:49, Ben Goodger (Google) wrote: > https://codereview.chromium.org/13150004/diff/1/chrome/browser/browser_process.h > File chrome/browser/browser_process.h (right): > > ...
7 years, 8 months ago (2013-04-01 03:47:21 UTC) #4
Ben Goodger (Google)
Seems like if you have this ColorChooserController, it can ensure there's only one open, return ...
7 years, 8 months ago (2013-04-01 16:28:18 UTC) #5
keishi
On 2013/04/01 16:28:18, Ben Goodger (Google) wrote: > Seems like if you have this ColorChooserController, ...
7 years, 8 months ago (2013-04-02 06:24:55 UTC) #6
Ben Goodger (Google)
Sure we often do that. -Ben On Mon, Apr 1, 2013 at 11:24 PM, <keishi@chromium.org> ...
7 years, 8 months ago (2013-04-02 20:29:19 UTC) #7
keishi
On 2013/04/02 20:29:19, Ben Goodger (Google) wrote: > Sure we often do that. > > ...
7 years, 8 months ago (2013-04-12 11:44:54 UTC) #8
Ben Goodger (Google)
https://codereview.chromium.org/13150004/diff/10001/chrome/browser/ui/color_chooser.h File chrome/browser/ui/color_chooser.h (right): https://codereview.chromium.org/13150004/diff/10001/chrome/browser/ui/color_chooser.h#newcode18 chrome/browser/ui/color_chooser.h:18: // Returns NULL on failure. I left you a ...
7 years, 8 months ago (2013-04-16 16:20:16 UTC) #9
keishi
https://codereview.chromium.org/13150004/diff/10001/chrome/browser/ui/color_chooser.h File chrome/browser/ui/color_chooser.h (right): https://codereview.chromium.org/13150004/diff/10001/chrome/browser/ui/color_chooser.h#newcode18 chrome/browser/ui/color_chooser.h:18: // Returns NULL on failure. On 2013/04/16 16:20:17, Ben ...
7 years, 8 months ago (2013-04-17 10:49:48 UTC) #10
Ben Goodger (Google)
https://codereview.chromium.org/13150004/diff/16001/chrome/browser/ui/color_chooser.cc File chrome/browser/ui/color_chooser.cc (right): https://codereview.chromium.org/13150004/diff/16001/chrome/browser/ui/color_chooser.cc#newcode21 chrome/browser/ui/color_chooser.cc:21: void ColorChooser::DidChooseColor(SkColor color) { ... but looking at how ...
7 years, 8 months ago (2013-04-17 15:34:14 UTC) #11
keishi
On 2013/04/17 15:34:14, Ben Goodger (Google) wrote: > https://codereview.chromium.org/13150004/diff/16001/chrome/browser/ui/color_chooser.cc > File chrome/browser/ui/color_chooser.cc (right): > > ...
7 years, 8 months ago (2013-04-19 14:40:22 UTC) #12
Ben Goodger (Google)
https://codereview.chromium.org/13150004/diff/89001/components/web_contents_delegate_android/color_chooser_android.h File components/web_contents_delegate_android/color_chooser_android.h (right): https://codereview.chromium.org/13150004/diff/89001/components/web_contents_delegate_android/color_chooser_android.h#newcode36 components/web_contents_delegate_android/color_chooser_android.h:36: content::WebContents* web_contents; web_contents_ https://codereview.chromium.org/13150004/diff/89001/components/web_contents_delegate_android/web_contents_delegate_android.h File components/web_contents_delegate_android/web_contents_delegate_android.h (right): https://codereview.chromium.org/13150004/diff/89001/components/web_contents_delegate_android/web_contents_delegate_android.h#newcode55 components/web_contents_delegate_android/web_contents_delegate_android.h:55: ...
7 years, 8 months ago (2013-04-19 16:24:54 UTC) #13
keishi
https://codereview.chromium.org/13150004/diff/89001/components/web_contents_delegate_android/color_chooser_android.h File components/web_contents_delegate_android/color_chooser_android.h (right): https://codereview.chromium.org/13150004/diff/89001/components/web_contents_delegate_android/color_chooser_android.h#newcode36 components/web_contents_delegate_android/color_chooser_android.h:36: content::WebContents* web_contents; On 2013/04/19 16:24:54, Ben Goodger (Google) wrote: ...
7 years, 8 months ago (2013-04-22 01:54:29 UTC) #14
keishi
ben@ could you take a look at the new patch? Thanks.
7 years, 8 months ago (2013-04-24 14:21:32 UTC) #15
keishi
ben@ could you please review the new patch. Thanks.
7 years, 7 months ago (2013-05-10 12:12:26 UTC) #16
Ben Goodger (Google)
https://codereview.chromium.org/13150004/diff/103001/chrome/browser/ui/color_chooser_util.h File chrome/browser/ui/color_chooser_util.h (right): https://codereview.chromium.org/13150004/diff/103001/chrome/browser/ui/color_chooser_util.h#newcode15 chrome/browser/ui/color_chooser_util.h:15: content::ColorChooser* OpenColorChooser(content::WebContents* web_contents, 1. put this in browser/ui/browser_dialogs.h instead ...
7 years, 7 months ago (2013-05-20 16:14:30 UTC) #17
tfarina
https://codereview.chromium.org/13150004/diff/103001/chrome/browser/ui/color_chooser_util.h File chrome/browser/ui/color_chooser_util.h (right): https://codereview.chromium.org/13150004/diff/103001/chrome/browser/ui/color_chooser_util.h#newcode1 chrome/browser/ui/color_chooser_util.h:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 7 months ago (2013-05-20 16:45:52 UTC) #18
keishi
https://codereview.chromium.org/13150004/diff/103001/chrome/browser/ui/color_chooser_util.h File chrome/browser/ui/color_chooser_util.h (right): https://codereview.chromium.org/13150004/diff/103001/chrome/browser/ui/color_chooser_util.h#newcode15 chrome/browser/ui/color_chooser_util.h:15: content::ColorChooser* OpenColorChooser(content::WebContents* web_contents, On 2013/05/20 16:14:30, Ben Goodger (Google) ...
7 years, 7 months ago (2013-05-21 16:48:05 UTC) #19
Ben Goodger (Google)
lgtm
7 years, 7 months ago (2013-05-21 16:49:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/13150004/110001
7 years, 7 months ago (2013-05-21 18:09:00 UTC) #21
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-21 18:44:40 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/13150004/134001
7 years, 7 months ago (2013-05-21 23:38:18 UTC) #23
commit-bot: I haz the power
7 years, 7 months ago (2013-05-22 15:16:23 UTC) #24
Message was sent while issue was closed.
Change committed as 201522

Powered by Google App Engine
This is Rietveld 408576698