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

Unified Diff: content/public/browser/color_chooser.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: Removed chrome/browser/ui/color_chooser.cc 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/color_chooser.h
diff --git a/content/public/browser/color_chooser.h b/content/public/browser/color_chooser.h
index 9b0bf40f22bb22fdd248180c1c0c1027dd59026f..f6b64006bab1288734587fd0809e488951051064 100644
--- a/content/public/browser/color_chooser.h
+++ b/content/public/browser/color_chooser.h
@@ -11,24 +11,13 @@ namespace content {
class WebContents;
-// Abstraction object for color choosers for each platform.
+// Interface for a color chooser.
class ColorChooser {
public:
- static ColorChooser* Create(int identifier,
- WebContents* web_contents,
- SkColor initial_color);
-
- explicit ColorChooser(int identifier) : identifier_(identifier) {}
- virtual ~ColorChooser() {}
-
- // Returns a unique identifier for this chooser. Identifiers are unique
- // across a renderer process. This avoids race conditions in synchronizing
- // the browser and renderer processes. For example, if a renderer closes one
- // chooser and opens another, and simultaneously the user picks a color in the
- // first chooser, the IDs can be used to drop the "chose a color" message
- // rather than erroneously tell the renderer that the user picked a color in
- // the second chooser.
- int identifier() const { return identifier_; }
+ static ColorChooser* Open(content::WebContents* web_contents,
Ben Goodger (Google) 2013/04/19 16:24:54 you shouldn't put this method on content api. sinc
keishi 2013/04/22 01:54:29 I moved it to chrome/browser/ui/color_chooser_util
+ SkColor initial_color);
+
+ virtual ~ColorChooser() {};
// Ends connection with color chooser. Closes color chooser depending on the
// platform.
@@ -36,9 +25,6 @@ class ColorChooser {
// Sets the selected color.
virtual void SetSelectedColor(SkColor color) = 0;
-
- private:
- int identifier_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698