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_ |