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

Unified Diff: content/renderer/renderer_webcolorchooser_impl.h

Issue 7685006: Implement input type=color UI (common part) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: forgot to turn off flag Created 9 years, 1 month 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/renderer/renderer_webcolorchooser_impl.h
diff --git a/content/renderer/renderer_webcolorchooser_impl.h b/content/renderer/renderer_webcolorchooser_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..fcceac10cfeeb98a4b030de1e56736b348c290fc
--- /dev/null
+++ b/content/renderer/renderer_webcolorchooser_impl.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_RENDERER_WEBCOLORCHOOSER_IMPL_H_
+#define CONTENT_RENDERER_RENDERER_WEBCOLORCHOOSER_IMPL_H_
+#pragma once
+
+#include "base/memory/scoped_ptr.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebColorChooser.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebColorChooserClient.h"
+
+#if defined(ENABLE_INPUT_COLOR)
+
+class RenderViewImpl;
+class WebColorChooserClient;
+
+class RendererWebColorChooserImpl : public WebKit::WebColorChooser {
+ public:
+ explicit RendererWebColorChooserImpl(RenderViewImpl* sender);
+ virtual ~RendererWebColorChooserImpl();
+
+ virtual void open(WebKit::WebColor);
yosin_UTC9 2011/12/06 07:11:17 Please insert OVERRIDE before semi-colon for overr
+ virtual void cleanup();
+ virtual void setSelectedColor(WebKit::WebColor);
+
+ virtual void didChooseColor(WebKit::WebColor);
+ virtual void didCleanup();
+
+ virtual WebKit::WebColorChooserClient* client();
+ virtual void setClient(WebKit::WebColorChooserClient*);
+
+ private:
+ RenderViewImpl* sender_;
+ scoped_ptr<WebKit::WebColorChooserClient> client_;
+};
yosin_UTC9 2011/12/06 07:11:17 Please add DISALLOW_COPY_AND_ASSIGN(RendererWebCo
+
+#endif // defined(ENABLE_INPUT_COLOR)
+
+#endif // CONTENT_RENDERER_RENDERER_WEBCOLORCHOOSER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698