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

Unified Diff: chrome/browser/ui/browser.h

Issue 9203001: Implement input type=color UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed issues/removed color_select_helper/added color_chooser_id Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser.h
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
index edff49067b3713f4a9e39881045ed008dc5c0885..3175c8ac4554047dde68d0f0b77f41de6c2b1f56 100644
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -69,6 +69,7 @@ class StatusBubble;
class TabNavigation;
class TabStripModel;
struct WebApplicationInfo;
+class ColorChooser;
Peter Kasting 2012/02/07 01:46:24 Nit: Declare in alphabetical order
keishi 2012/02/17 11:31:05 Done.
namespace content {
class NavigationController;
@@ -998,6 +999,15 @@ class Browser : public TabHandlerDelegate,
virtual void DidNavigateToPendingEntry(content::WebContents* tab) OVERRIDE;
virtual content::JavaScriptDialogCreator*
GetJavaScriptDialogCreator() OVERRIDE;
+ virtual void OpenColorChooser(content::WebContents* tab,
+ unsigned color_chooser_id,
+ const SkColor& color) OVERRIDE;
+ virtual void EndColorChooser(content::WebContents* tab,
+ unsigned color_chooser_id) OVERRIDE;
+ virtual void SetSelectedColorInColorChooser(content::WebContents* tab,
+ unsigned color_chooser_id,
+ const SkColor& color) OVERRIDE;
+ virtual void DidEndColorChooser(content::WebContents* tab) OVERRIDE;
virtual void RunFileChooser(
content::WebContents* tab,
const content::FileChooserParams& params) OVERRIDE;
@@ -1448,6 +1458,8 @@ class Browser : public TabHandlerDelegate,
// True if the browser window has been shown at least once.
bool window_has_shown_;
+ scoped_ptr<ColorChooser> color_chooser_;
+
DISALLOW_COPY_AND_ASSIGN(Browser);
};

Powered by Google App Engine
This is Rietveld 408576698