| 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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 839 // (full-page plugins for now only) permissions. | 838 // (full-page plugins for now only) permissions. |
| 840 int content_restrictions_; | 839 int content_restrictions_; |
| 841 | 840 |
| 842 #if defined(OS_ANDROID) | 841 #if defined(OS_ANDROID) |
| 843 // Date time chooser opened by this tab. | 842 // Date time chooser opened by this tab. |
| 844 // Only used in Android since all other platforms use a multi field UI. | 843 // Only used in Android since all other platforms use a multi field UI. |
| 845 scoped_ptr<DateTimeChooserAndroid> date_time_chooser_; | 844 scoped_ptr<DateTimeChooserAndroid> date_time_chooser_; |
| 846 #endif | 845 #endif |
| 847 | 846 |
| 848 // Color chooser that was opened by this tab. | 847 // Color chooser that was opened by this tab. |
| 849 ColorChooser* color_chooser_; | 848 scoped_ptr<ColorChooser> color_chooser_; |
| 849 |
| 850 // A unique identifier for the current color chooser. Identifiers are unique |
| 851 // across a renderer process. This avoids race conditions in synchronizing |
| 852 // the browser and renderer processes. For example, if a renderer closes one |
| 853 // chooser and opens another, and simultaneously the user picks a color in the |
| 854 // first chooser, the IDs can be used to drop the "chose a color" message |
| 855 // rather than erroneously tell the renderer that the user picked a color in |
| 856 // the second chooser. |
| 857 int color_chooser_identifier_; |
| 850 | 858 |
| 851 // Manages the embedder state for browser plugins, if this WebContents is an | 859 // Manages the embedder state for browser plugins, if this WebContents is an |
| 852 // embedder; NULL otherwise. | 860 // embedder; NULL otherwise. |
| 853 scoped_ptr<BrowserPluginEmbedder> browser_plugin_embedder_; | 861 scoped_ptr<BrowserPluginEmbedder> browser_plugin_embedder_; |
| 854 // Manages the guest state for browser plugin, if this WebContents is a guest; | 862 // Manages the guest state for browser plugin, if this WebContents is a guest; |
| 855 // NULL otherwise. | 863 // NULL otherwise. |
| 856 scoped_ptr<BrowserPluginGuest> browser_plugin_guest_; | 864 scoped_ptr<BrowserPluginGuest> browser_plugin_guest_; |
| 857 | 865 |
| 858 // This must be at the end, or else we might get notifications and use other | 866 // This must be at the end, or else we might get notifications and use other |
| 859 // member variables that are gone. | 867 // member variables that are gone. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 873 // Maps the ids of pending image downloads to their callbacks | 881 // Maps the ids of pending image downloads to their callbacks |
| 874 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 882 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
| 875 ImageDownloadMap image_download_map_; | 883 ImageDownloadMap image_download_map_; |
| 876 | 884 |
| 877 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 885 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 878 }; | 886 }; |
| 879 | 887 |
| 880 } // namespace content | 888 } // namespace content |
| 881 | 889 |
| 882 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 890 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |