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

Side by Side Diff: chrome/browser/ui/color_chooser_controller.h

Issue 13150004: Support color chooser inside extesions, apps, chrome frame, dev tool (Closed) Base URL: http://git.chromium.org/chromium/src.git@ngcolor
Patch Set: Created 7 years, 8 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 2013 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_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COLOR_CHOOSER_CONTROLLER_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "third_party/skia/include/core/SkColor.h"
11
12 namespace content {
13 class ColorChooser;
14 class WebContents;
15 }
16
17 // BookmarkPromptController is a kind of singleton object held by
18 // BrowserProcessImpl, and controls showing bookmark prompt for frequently
19 // visited URLs.
20 class ColorChooserController {
21 public:
22 ColorChooserController();
23 virtual ~ColorChooserController();
24
25 static ColorChooserController* GetInstance();
26
27 // Returns NULL on failure.
28 content::ColorChooser* OpenColorChooser(SkColor initial_color,
29 content::WebContents* web_contents,
30 int color_chooser_id);
31
32 void DidEndColorChooser();
33
34 private:
35 scoped_ptr<content::ColorChooser> color_chooser_;
36
37 DISALLOW_COPY_AND_ASSIGN(ColorChooserController);
38 };
39
40 #endif // CHROME_BROWSER_UI_COLOR_CHOOSER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698