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

Side by Side Diff: content/browser/web_contents/web_contents_impl.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: Fixed android build Created 7 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 bool* enable_decrement) const OVERRIDE; 275 bool* enable_decrement) const OVERRIDE;
276 virtual void ViewSource() OVERRIDE; 276 virtual void ViewSource() OVERRIDE;
277 virtual void ViewFrameSource(const GURL& url, 277 virtual void ViewFrameSource(const GURL& url,
278 const std::string& content_state) OVERRIDE; 278 const std::string& content_state) OVERRIDE;
279 virtual int GetMinimumZoomPercent() const OVERRIDE; 279 virtual int GetMinimumZoomPercent() const OVERRIDE;
280 virtual int GetMaximumZoomPercent() const OVERRIDE; 280 virtual int GetMaximumZoomPercent() const OVERRIDE;
281 virtual gfx::Size GetPreferredSize() const OVERRIDE; 281 virtual gfx::Size GetPreferredSize() const OVERRIDE;
282 virtual int GetContentRestrictions() const OVERRIDE; 282 virtual int GetContentRestrictions() const OVERRIDE;
283 virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE; 283 virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE;
284 virtual bool HasOpener() const OVERRIDE; 284 virtual bool HasOpener() const OVERRIDE;
285 virtual void DidChooseColorInColorChooser(int color_chooser_id, 285 virtual void DidChooseColorInColorChooser(SkColor color) OVERRIDE;
286 SkColor color) OVERRIDE; 286 virtual void DidEndColorChooser() OVERRIDE;
287 virtual void DidEndColorChooser(int color_chooser_id) OVERRIDE;
288 virtual int DownloadImage(const GURL& url, 287 virtual int DownloadImage(const GURL& url,
289 bool is_favicon, 288 bool is_favicon,
290 int image_size, 289 int image_size,
291 const ImageDownloadCallback& callback) OVERRIDE; 290 const ImageDownloadCallback& callback) OVERRIDE;
292 291
293 // Implementation of PageNavigator. 292 // Implementation of PageNavigator.
294 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; 293 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE;
295 294
296 // Implementation of IPC::Sender. 295 // Implementation of IPC::Sender.
297 virtual bool Send(IPC::Message* message) OVERRIDE; 296 virtual bool Send(IPC::Message* message) OVERRIDE;
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 // (full-page plugins for now only) permissions. 876 // (full-page plugins for now only) permissions.
878 int content_restrictions_; 877 int content_restrictions_;
879 878
880 #if defined(OS_ANDROID) 879 #if defined(OS_ANDROID)
881 // Date time chooser opened by this tab. 880 // Date time chooser opened by this tab.
882 // Only used in Android since all other platforms use a multi field UI. 881 // Only used in Android since all other platforms use a multi field UI.
883 scoped_ptr<DateTimeChooserAndroid> date_time_chooser_; 882 scoped_ptr<DateTimeChooserAndroid> date_time_chooser_;
884 #endif 883 #endif
885 884
886 // Color chooser that was opened by this tab. 885 // Color chooser that was opened by this tab.
887 ColorChooser* color_chooser_; 886 scoped_ptr<ColorChooser> color_chooser_;
887
888 // A unique identifier for the current color chooser. Identifiers are unique
889 // across a renderer process. This avoids race conditions in synchronizing
890 // the browser and renderer processes. For example, if a renderer closes one
891 // chooser and opens another, and simultaneously the user picks a color in the
892 // first chooser, the IDs can be used to drop the "chose a color" message
893 // rather than erroneously tell the renderer that the user picked a color in
894 // the second chooser.
895 int color_chooser_identifier_;
888 896
889 // Manages the embedder state for browser plugins, if this WebContents is an 897 // Manages the embedder state for browser plugins, if this WebContents is an
890 // embedder; NULL otherwise. 898 // embedder; NULL otherwise.
891 scoped_ptr<BrowserPluginEmbedder> browser_plugin_embedder_; 899 scoped_ptr<BrowserPluginEmbedder> browser_plugin_embedder_;
892 // Manages the guest state for browser plugin, if this WebContents is a guest; 900 // Manages the guest state for browser plugin, if this WebContents is a guest;
893 // NULL otherwise. 901 // NULL otherwise.
894 scoped_ptr<BrowserPluginGuest> browser_plugin_guest_; 902 scoped_ptr<BrowserPluginGuest> browser_plugin_guest_;
895 903
896 // This must be at the end, or else we might get notifications and use other 904 // This must be at the end, or else we might get notifications and use other
897 // member variables that are gone. 905 // member variables that are gone.
(...skipping 13 matching lines...) Expand all
911 // Maps the ids of pending image downloads to their callbacks 919 // Maps the ids of pending image downloads to their callbacks
912 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; 920 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
913 ImageDownloadMap image_download_map_; 921 ImageDownloadMap image_download_map_;
914 922
915 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 923 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
916 }; 924 };
917 925
918 } // namespace content 926 } // namespace content
919 927
920 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 928 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698