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

Unified Diff: content/browser/tab_contents/tab_contents.h

Issue 9203001: Implement input type=color UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed 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: content/browser/tab_contents/tab_contents.h
diff --git a/content/browser/tab_contents/tab_contents.h b/content/browser/tab_contents/tab_contents.h
index ce8dda557000870875bca7daa0df9356cbd65954..788860d27221cec23a4a55a7641022fdaa000ee9 100644
--- a/content/browser/tab_contents/tab_contents.h
+++ b/content/browser/tab_contents/tab_contents.h
@@ -38,6 +38,7 @@ class SessionStorageNamespaceImpl;
struct ViewHostMsg_DidFailProvisionalLoadWithError_Params;
namespace content {
+class ColorChooser;
class DownloadItem;
class SiteInstance;
class JavaScriptDialogCreator;
@@ -213,6 +214,9 @@ class CONTENT_EXPORT TabContents
virtual content::WebUI::TypeID GetWebUITypeForCurrentState() OVERRIDE;
virtual content::WebUI* GetWebUIForCurrentState() OVERRIDE;
virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE;
+ virtual void DidChooseColorInColorChooser(int color_chooser_id,
+ const SkColor&) OVERRIDE;
+ virtual void DidEndColorChooser(int color_chooser_id) OVERRIDE;
// Implementation of PageNavigator.
virtual content::WebContents* OpenURL(
@@ -429,6 +433,11 @@ class CONTENT_EXPORT TabContents
bool final_update);
void OnCrashedPlugin(const FilePath& plugin_path);
void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy);
+ void OnOpenColorChooser(int color_chooser_id,
+ const SkColor& color);
+ void OnEndColorChooser(int color_chooser_id);
+ void OnSetSelectedColorInColorChooser(int color_chooser_id,
+ const SkColor& color);
// Changes the IsLoading state and notifies delegate as needed
// |details| is used to provide details on the load that just finished
@@ -648,6 +657,8 @@ class CONTENT_EXPORT TabContents
// Our view type. Default is VIEW_TYPE_TAB_CONTENTS.
content::ViewType view_type_;
+ content::ColorChooser* color_chooser_;
+
DISALLOW_COPY_AND_ASSIGN(TabContents);
};

Powered by Google App Engine
This is Rietveld 408576698