Index: chrome/browser/ui/color_chooser.h |
diff --git a/chrome/browser/ui/color_chooser.h b/chrome/browser/ui/color_chooser.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1b0ffc5d59eb830a581633c1f020cabf299f2b31 |
--- /dev/null |
+++ b/chrome/browser/ui/color_chooser.h |
@@ -0,0 +1,28 @@ |
+// Copyright (c) 2012 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 CHROME_BROWSER_UI_COLOR_CHOOSER_H_ |
+#define CHROME_BROWSER_UI_COLOR_CHOOSER_H_ |
+#pragma once |
+ |
+#include "third_party/skia/include/core/SkColor.h" |
+#include "ui/gfx/native_widget_types.h" |
+ |
+class RenderViewHost; |
+ |
+// Abstraction object for color choosers for each platforms. |
+class ColorChooser { |
+ public: |
+ static ColorChooser* Create( |
+ int identifier, RenderViewHost* rvh, SkColor initial_color); |
+ virtual ~ColorChooser() {} |
+ |
+ virtual RenderViewHost* render_view_host() const = 0; |
+ virtual int identifier() const = 0; |
Evan Stade
2012/02/21 20:16:54
these two should have C++ style names, not c style
keishi
2012/02/24 14:38:54
Done.
|
+ |
+ virtual void End() = 0; |
+ virtual void SetSelectedColor(SkColor color) = 0; |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_COLOR_CHOOSER_H_ |