Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 of each platforms. | |
|
Peter Kasting
2012/02/07 01:46:24
Nit: "of each platforms" -> "for each platform"
keishi
2012/02/17 11:31:05
Done.
| |
| 15 class ColorChooser { | |
| 16 public: | |
| 17 static ColorChooser* Create(unsigned identifier, RenderViewHost*); | |
|
Peter Kasting
2012/02/07 01:46:24
Nit: "unsigned" is banned by the style guide. Use
keishi
2012/02/17 11:31:05
Done.
| |
| 18 virtual ~ColorChooser() {} | |
| 19 | |
| 20 virtual RenderViewHost* render_view_host() = 0; | |
| 21 virtual unsigned identifier() = 0; | |
| 22 | |
| 23 virtual void Open(SkColor initial_color) = 0; | |
|
Peter Kasting
2012/02/07 01:46:24
Nit: Why isn't this an arg to the constructor inst
keishi
2012/02/17 11:31:05
Done.
| |
| 24 virtual void End() = 0; | |
| 25 virtual void SetSelectedColor(SkColor color) = 0; | |
| 26 }; | |
| 27 | |
| 28 #endif // CHROME_BROWSER_UI_COLOR_CHOOSER_H_ | |
| OLD | NEW |