| OLD | NEW |
| (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_ |
| OLD | NEW |