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

Unified Diff: content/renderer/render_view_impl.h

Issue 9203001: Implement input type=color UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed flag Created 8 years, 11 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 | « content/content_renderer.gypi ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index be94611045cf11fa2a33c508dced23a6031e192a..accfe544b9b27e1fd56fd035a015b7b833030181 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -71,6 +71,9 @@ class PepperDeviceTest;
struct PP_NetAddress_Private;
class RenderWidgetFullscreenPepper;
class RendererAccessibility;
+#if defined(ENABLE_INPUT_COLOR)
+class RendererWebColorChooserImpl;
+#endif // defined(ENABLE_INPUT_COLOR)
class SkBitmap;
class SpeechInputDispatcher;
struct ViewMsg_Navigate_Params;
@@ -349,6 +352,11 @@ class RenderViewImpl : public RenderWidget,
virtual void didChangeSelection(bool is_selection_empty);
virtual void didExecuteCommand(const WebKit::WebString& command_name);
virtual bool handleCurrentKeyboardEvent();
+#if defined(ENABLE_INPUT_COLOR)
+ virtual WebKit::WebColorChooser* createColorChooser(
+ WebKit::WebColorChooserClient*, const WebKit::WebColor& initial_color);
+ void detachColorChooser(WebKit::WebColorChooser*);
+#endif // defined(ENABLE_INPUT_COLOR)
virtual bool runFileChooser(
const WebKit::WebFileChooserParams& params,
WebKit::WebFileChooserCompletion* chooser_completion);
@@ -1164,6 +1172,10 @@ class RenderViewImpl : public RenderWidget,
// Misc ----------------------------------------------------------------------
+#if defined(ENABLE_INPUT_COLOR)
+ RendererWebColorChooserImpl* color_chooser_;
+#endif
+
// The current and pending file chooser completion objects. If the queue is
// nonempty, the first item represents the currently running file chooser
// callback, and the remaining elements are the other file chooser completion
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698