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