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

Side by Side 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, 9 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 CONTENT_PUBLIC_BROWSER_COLOR_CHOOSER_H_
6 #define CONTENT_PUBLIC_BROWSER_COLOR_CHOOSER_H_
7 #pragma once
8
9 #include "third_party/skia/include/core/SkColor.h"
10
11 class RenderViewHost;
12
13 namespace content {
14
15 class WebContents;
16
17 // Abstraction object for color choosers for each platforms.
Peter Kasting 2012/03/01 20:44:18 Nit: platforms -> platform
keishi 2012/03/02 06:12:13 Done.
18 class ColorChooser {
19 public:
20 static ColorChooser* Create(
21 int identifier, WebContents* tab, SkColor initial_color);
Peter Kasting 2012/03/01 20:44:18 Nit: One arg per line, first arg on above line, ot
keishi 2012/03/02 06:12:13 Done.
22
23 virtual ~ColorChooser() {}
24
25 // Returns the color chooser id that is unique per renderer process.
Peter Kasting 2012/03/01 20:44:18 Nit: How about providing more motivation for this
keishi 2012/03/02 06:12:13 Done.
26 virtual int GetIdentifier() const = 0;
Peter Kasting 2012/03/01 20:44:18 This doesn't need to be virtual. All three subcla
keishi 2012/03/02 06:12:13 Done.
27
28 // Ends connection with color chooser. Closes color chooser depending on the
29 // platform.
30 virtual void End() = 0;
31
32 // Sets the selected color.
33 virtual void SetSelectedColor(SkColor color) = 0;
34 };
35
36 }
37
38 #endif // CONTENT_PUBLIC_BROWSER_COLOR_CHOOSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698