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

Unified Diff: content/public/browser/color_chooser.h

Issue 9203001: Implement input type=color UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed 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: content/public/browser/color_chooser.h
diff --git a/content/public/browser/color_chooser.h b/content/public/browser/color_chooser.h
new file mode 100644
index 0000000000000000000000000000000000000000..153362ebfddf7c8bb2a84ecc19f60988fb9d38d6
--- /dev/null
+++ b/content/public/browser/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 CONTENT_PUBLIC_BROWSER_COLOR_CHOOSER_H_
+#define CONTENT_PUBLIC_BROWSER_COLOR_CHOOSER_H_
+#pragma once
+
+#include "third_party/skia/include/core/SkColor.h"
+
+class RenderViewHost;
+
+namespace content {
+
+// Abstraction object for color choosers for each platforms.
+class ColorChooser {
+ public:
+ virtual ~ColorChooser() {}
+
+ virtual int GetIdentifier() const = 0;
Peter Kasting 2012/02/29 01:40:07 Nit: Add comments about what these APIs mean.
keishi 2012/02/29 13:05:22 Done.
+
+ virtual void End() = 0;
+ virtual void SetSelectedColor(SkColor color) = 0;
+};
+
+}
+
+#endif // CONTENT_PUBLIC_BROWSER_COLOR_CHOOSER_H_

Powered by Google App Engine
This is Rietveld 408576698