| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 bool* enable_decrement) const OVERRIDE; | 254 bool* enable_decrement) const OVERRIDE; |
| 255 virtual void ViewSource() OVERRIDE; | 255 virtual void ViewSource() OVERRIDE; |
| 256 virtual void ViewFrameSource(const GURL& url, | 256 virtual void ViewFrameSource(const GURL& url, |
| 257 const std::string& content_state) OVERRIDE; | 257 const std::string& content_state) OVERRIDE; |
| 258 virtual int GetMinimumZoomPercent() const OVERRIDE; | 258 virtual int GetMinimumZoomPercent() const OVERRIDE; |
| 259 virtual int GetMaximumZoomPercent() const OVERRIDE; | 259 virtual int GetMaximumZoomPercent() const OVERRIDE; |
| 260 virtual gfx::Size GetPreferredSize() const OVERRIDE; | 260 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
| 261 virtual int GetContentRestrictions() const OVERRIDE; | 261 virtual int GetContentRestrictions() const OVERRIDE; |
| 262 virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE; | 262 virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE; |
| 263 virtual bool HasOpener() const OVERRIDE; | 263 virtual bool HasOpener() const OVERRIDE; |
| 264 virtual void DidChooseColorInColorChooser(int color_chooser_id, | 264 virtual void DidChooseColorInColorChooser(SkColor color) OVERRIDE; |
| 265 SkColor color) OVERRIDE; | 265 virtual void DidEndColorChooser() OVERRIDE; |
| 266 virtual void DidEndColorChooser(int color_chooser_id) OVERRIDE; | |
| 267 virtual int DownloadImage(const GURL& url, | 266 virtual int DownloadImage(const GURL& url, |
| 268 bool is_favicon, | 267 bool is_favicon, |
| 269 int image_size, | 268 int image_size, |
| 270 const ImageDownloadCallback& callback) OVERRIDE; | 269 const ImageDownloadCallback& callback) OVERRIDE; |
| 271 | 270 |
| 272 // Implementation of PageNavigator. | 271 // Implementation of PageNavigator. |
| 273 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; | 272 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; |
| 274 | 273 |
| 275 // Implementation of IPC::Sender. | 274 // Implementation of IPC::Sender. |
| 276 virtual bool Send(IPC::Message* message) OVERRIDE; | 275 virtual bool Send(IPC::Message* message) OVERRIDE; |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 // (full-page plugins for now only) permissions. | 839 // (full-page plugins for now only) permissions. |
| 841 int content_restrictions_; | 840 int content_restrictions_; |
| 842 | 841 |
| 843 #if defined(OS_ANDROID) | 842 #if defined(OS_ANDROID) |
| 844 // Date time chooser opened by this tab. | 843 // Date time chooser opened by this tab. |
| 845 // Only used in Android since all other platforms use a multi field UI. | 844 // Only used in Android since all other platforms use a multi field UI. |
| 846 scoped_ptr<DateTimeChooserAndroid> date_time_chooser_; | 845 scoped_ptr<DateTimeChooserAndroid> date_time_chooser_; |
| 847 #endif | 846 #endif |
| 848 | 847 |
| 849 // Color chooser that was opened by this tab. | 848 // Color chooser that was opened by this tab. |
| 850 ColorChooser* color_chooser_; | 849 scoped_ptr<ColorChooser> color_chooser_; |
| 850 |
| 851 // A unique identifier for the current color chooser. Identifiers are unique |
| 852 // across a renderer process. This avoids race conditions in synchronizing |
| 853 // the browser and renderer processes. For example, if a renderer closes one |
| 854 // chooser and opens another, and simultaneously the user picks a color in the |
| 855 // first chooser, the IDs can be used to drop the "chose a color" message |
| 856 // rather than erroneously tell the renderer that the user picked a color in |
| 857 // the second chooser. |
| 858 int color_chooser_identifier_; |
| 851 | 859 |
| 852 // Manages the embedder state for browser plugins, if this WebContents is an | 860 // Manages the embedder state for browser plugins, if this WebContents is an |
| 853 // embedder; NULL otherwise. | 861 // embedder; NULL otherwise. |
| 854 scoped_ptr<BrowserPluginEmbedder> browser_plugin_embedder_; | 862 scoped_ptr<BrowserPluginEmbedder> browser_plugin_embedder_; |
| 855 // Manages the guest state for browser plugin, if this WebContents is a guest; | 863 // Manages the guest state for browser plugin, if this WebContents is a guest; |
| 856 // NULL otherwise. | 864 // NULL otherwise. |
| 857 scoped_ptr<BrowserPluginGuest> browser_plugin_guest_; | 865 scoped_ptr<BrowserPluginGuest> browser_plugin_guest_; |
| 858 | 866 |
| 859 // This must be at the end, or else we might get notifications and use other | 867 // This must be at the end, or else we might get notifications and use other |
| 860 // member variables that are gone. | 868 // member variables that are gone. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 874 // Maps the ids of pending image downloads to their callbacks | 882 // Maps the ids of pending image downloads to their callbacks |
| 875 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 883 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
| 876 ImageDownloadMap image_download_map_; | 884 ImageDownloadMap image_download_map_; |
| 877 | 885 |
| 878 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 886 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 879 }; | 887 }; |
| 880 | 888 |
| 881 } // namespace content | 889 } // namespace content |
| 882 | 890 |
| 883 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 891 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |