| OLD | NEW |
| 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 Loading... |
| 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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 // (full-page plugins for now only) permissions. | 874 // (full-page plugins for now only) permissions. |
| 876 int content_restrictions_; | 875 int content_restrictions_; |
| 877 | 876 |
| 878 #if defined(OS_ANDROID) | 877 #if defined(OS_ANDROID) |
| 879 // Date time chooser opened by this tab. | 878 // Date time chooser opened by this tab. |
| 880 // Only used in Android since all other platforms use a multi field UI. | 879 // Only used in Android since all other platforms use a multi field UI. |
| 881 scoped_ptr<DateTimeChooserAndroid> date_time_chooser_; | 880 scoped_ptr<DateTimeChooserAndroid> date_time_chooser_; |
| 882 #endif | 881 #endif |
| 883 | 882 |
| 884 // Color chooser that was opened by this tab. | 883 // Color chooser that was opened by this tab. |
| 885 ColorChooser* color_chooser_; | 884 scoped_ptr<ColorChooser> color_chooser_; |
| 885 |
| 886 // A unique identifier for the current color chooser. Identifiers are unique |
| 887 // across a renderer process. This avoids race conditions in synchronizing |
| 888 // the browser and renderer processes. For example, if a renderer closes one |
| 889 // chooser and opens another, and simultaneously the user picks a color in the |
| 890 // first chooser, the IDs can be used to drop the "chose a color" message |
| 891 // rather than erroneously tell the renderer that the user picked a color in |
| 892 // the second chooser. |
| 893 int color_chooser_identifier_; |
| 886 | 894 |
| 887 // Manages the embedder state for browser plugins, if this WebContents is an | 895 // Manages the embedder state for browser plugins, if this WebContents is an |
| 888 // embedder; NULL otherwise. | 896 // embedder; NULL otherwise. |
| 889 scoped_ptr<BrowserPluginEmbedder> browser_plugin_embedder_; | 897 scoped_ptr<BrowserPluginEmbedder> browser_plugin_embedder_; |
| 890 // Manages the guest state for browser plugin, if this WebContents is a guest; | 898 // Manages the guest state for browser plugin, if this WebContents is a guest; |
| 891 // NULL otherwise. | 899 // NULL otherwise. |
| 892 scoped_ptr<BrowserPluginGuest> browser_plugin_guest_; | 900 scoped_ptr<BrowserPluginGuest> browser_plugin_guest_; |
| 893 | 901 |
| 894 // This must be at the end, or else we might get notifications and use other | 902 // This must be at the end, or else we might get notifications and use other |
| 895 // member variables that are gone. | 903 // member variables that are gone. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 909 // Maps the ids of pending image downloads to their callbacks | 917 // Maps the ids of pending image downloads to their callbacks |
| 910 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 918 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
| 911 ImageDownloadMap image_download_map_; | 919 ImageDownloadMap image_download_map_; |
| 912 | 920 |
| 913 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 921 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 914 }; | 922 }; |
| 915 | 923 |
| 916 } // namespace content | 924 } // namespace content |
| 917 | 925 |
| 918 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 926 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |