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

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: rebased Created 8 years, 9 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0878483fca07c9b4f1f06bdd671c1ba937c008e4..557f0ce9ab0c192e9509d65e54b37bbb6faa8b46 100644
--- a/content/browser/tab_contents/tab_contents.h
+++ b/content/browser/tab_contents/tab_contents.h
@@ -36,6 +36,7 @@ class SessionStorageNamespaceImpl;
struct ViewHostMsg_DidFailProvisionalLoadWithError_Params;
namespace content {
+class ColorChooser;
class DownloadItem;
class JavaScriptDialogCreator;
class RenderViewHost;
@@ -223,6 +224,9 @@ class CONTENT_EXPORT TabContents
virtual content::WebUI* GetWebUIForCurrentState() OVERRIDE;
virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE;
virtual bool HasOpener() const 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(
@@ -446,6 +450,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
@@ -670,6 +679,9 @@ class CONTENT_EXPORT TabContents
// Is there an opener associated with this?
bool has_opener_;
+ // Color chooser that was opened by this tab.
+ content::ColorChooser* color_chooser_;
+
DISALLOW_COPY_AND_ASSIGN(TabContents);
};
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698