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

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 flag Created 8 years, 11 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
« no previous file with comments | « chrome/browser/color_select_observer.cc ('k') | chrome/browser/ui/color_chooser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 #if defined(ENABLE_INPUT_COLOR)
10
11 #include "base/memory/singleton.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebColor.h"
13 #include "ui/gfx/native_widget_types.h"
14
15 // Abstraction object for color choosers of each platforms.
16 class ColorChooser {
17 public:
18 // An interface implemented by a Listener object wishing to know about the
19 // the results from the color chooser.
20 class Listener {
21 public:
22 virtual void DidChooseColor(WebKit::WebColor color) = 0;
23 virtual void DidDetach() = 0;
24 };
25
26 // Returns singleton instance of ColorChooser.
27 static ColorChooser* GetInstance();
28
29 virtual void open(Listener* listener, WebKit::WebColor initial_color) = 0;
30 virtual void detach(Listener* listener) = 0;
31 virtual void setSelectedColor(WebKit::WebColor color) = 0;
32
33 protected:
34 virtual ~ColorChooser() {}
35 };
36
37 #endif // defined(ENABLE_INPUT_COLOR)
38
39 #endif // CHROME_BROWSER_UI_COLOR_CHOOSER_H_
OLDNEW
« no previous file with comments | « chrome/browser/color_select_observer.cc ('k') | chrome/browser/ui/color_chooser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698