Chromium Code Reviews| Index: content/public/browser/color_chooser.h |
| diff --git a/content/public/browser/color_chooser.h b/content/public/browser/color_chooser.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2c34f640e0de0c5288b1d932899784803b2dbfdc |
| --- /dev/null |
| +++ b/content/public/browser/color_chooser.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_PUBLIC_BROWSER_COLOR_CHOOSER_H_ |
| +#define CONTENT_PUBLIC_BROWSER_COLOR_CHOOSER_H_ |
| +#pragma once |
| + |
| +#include "third_party/skia/include/core/SkColor.h" |
| + |
| +class RenderViewHost; |
| + |
| +namespace content { |
| + |
| +class WebContents; |
| + |
| +// 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.
|
| +class ColorChooser { |
| + public: |
| + static ColorChooser* Create( |
| + 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.
|
| + |
| + virtual ~ColorChooser() {} |
| + |
| + // 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.
|
| + 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.
|
| + |
| + // Ends connection with color chooser. Closes color chooser depending on the |
| + // platform. |
| + virtual void End() = 0; |
| + |
| + // Sets the selected color. |
| + virtual void SetSelectedColor(SkColor color) = 0; |
| +}; |
| + |
| +} |
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_COLOR_CHOOSER_H_ |