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

Unified Diff: chrome/browser/ui/color_chooser.h

Issue 9203001: Implement input type=color UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed issues/removed color_select_helper/added color_chooser_id Created 8 years, 10 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
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..1284215a77e95e62045643e8741006550e95f491
--- /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 of each platforms.
Peter Kasting 2012/02/07 01:46:24 Nit: "of each platforms" -> "for each platform"
keishi 2012/02/17 11:31:05 Done.
+class ColorChooser {
+ public:
+ static ColorChooser* Create(unsigned identifier, RenderViewHost*);
Peter Kasting 2012/02/07 01:46:24 Nit: "unsigned" is banned by the style guide. Use
keishi 2012/02/17 11:31:05 Done.
+ virtual ~ColorChooser() {}
+
+ virtual RenderViewHost* render_view_host() = 0;
+ virtual unsigned identifier() = 0;
+
+ virtual void Open(SkColor initial_color) = 0;
Peter Kasting 2012/02/07 01:46:24 Nit: Why isn't this an arg to the constructor inst
keishi 2012/02/17 11:31:05 Done.
+ virtual void End() = 0;
+ virtual void SetSelectedColor(SkColor color) = 0;
+};
+
+#endif // CHROME_BROWSER_UI_COLOR_CHOOSER_H_

Powered by Google App Engine
This is Rietveld 408576698