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

Side by Side 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 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_COLOR_CHOOSER_H_
6 #define CHROME_BROWSER_UI_COLOR_CHOOSER_H_
7 #pragma once
8
9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/gfx/native_widget_types.h"
11
12 class RenderViewHost;
13
14 // Abstraction object for color choosers for each platforms.
15 class ColorChooser {
16 public:
17 static ColorChooser* Create(
18 int identifier, RenderViewHost* rvh, SkColor initial_color);
19 virtual ~ColorChooser() {}
20
21 virtual RenderViewHost* render_view_host() const = 0;
22 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.
23
24 virtual void End() = 0;
25 virtual void SetSelectedColor(SkColor color) = 0;
26 };
27
28 #endif // CHROME_BROWSER_UI_COLOR_CHOOSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698