| 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 namespace webkit_glue { | 40 namespace webkit_glue { |
| 41 struct WebIntentData; | 41 struct WebIntentData; |
| 42 struct WebIntentServiceData; | 42 struct WebIntentServiceData; |
| 43 } | 43 } |
| 44 | 44 |
| 45 namespace content { | 45 namespace content { |
| 46 class BrowserPluginEmbedder; | 46 class BrowserPluginEmbedder; |
| 47 class BrowserPluginGuest; | 47 class BrowserPluginGuest; |
| 48 class ColorChooser; | 48 class ColorChooser; |
| 49 class DateTimeChooser; |
| 49 class DownloadItem; | 50 class DownloadItem; |
| 50 class InterstitialPageImpl; | 51 class InterstitialPageImpl; |
| 51 class JavaScriptDialogCreator; | 52 class JavaScriptDialogCreator; |
| 52 class RenderViewHost; | 53 class RenderViewHost; |
| 53 class RenderViewHostDelegateView; | 54 class RenderViewHostDelegateView; |
| 54 class RenderViewHostImpl; | 55 class RenderViewHostImpl; |
| 55 class RenderWidgetHostImpl; | 56 class RenderWidgetHostImpl; |
| 56 class SavePackage; | 57 class SavePackage; |
| 57 class SessionStorageNamespaceImpl; | 58 class SessionStorageNamespaceImpl; |
| 58 class SiteInstance; | 59 class SiteInstance; |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 bool user_gesture); | 544 bool user_gesture); |
| 544 void OnFindReply(int request_id, | 545 void OnFindReply(int request_id, |
| 545 int number_of_matches, | 546 int number_of_matches, |
| 546 const gfx::Rect& selection_rect, | 547 const gfx::Rect& selection_rect, |
| 547 int active_match_ordinal, | 548 int active_match_ordinal, |
| 548 bool final_update); | 549 bool final_update); |
| 549 #if defined(OS_ANDROID) | 550 #if defined(OS_ANDROID) |
| 550 void OnFindMatchRectsReply(int version, | 551 void OnFindMatchRectsReply(int version, |
| 551 const std::vector<gfx::RectF>& rects, | 552 const std::vector<gfx::RectF>& rects, |
| 552 const gfx::RectF& active_rect); | 553 const gfx::RectF& active_rect); |
| 554 |
| 555 void OnOpenDateTimeDialog(int type, const std::string& value); |
| 553 #endif | 556 #endif |
| 554 void OnCrashedPlugin(const FilePath& plugin_path); | 557 void OnCrashedPlugin(const FilePath& plugin_path); |
| 555 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); | 558 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); |
| 556 void OnOpenColorChooser(int color_chooser_id, SkColor color); | 559 void OnOpenColorChooser(int color_chooser_id, SkColor color); |
| 557 void OnEndColorChooser(int color_chooser_id); | 560 void OnEndColorChooser(int color_chooser_id); |
| 558 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); | 561 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); |
| 559 void OnPepperPluginHung(int plugin_child_id, | 562 void OnPepperPluginHung(int plugin_child_id, |
| 560 const FilePath& path, | 563 const FilePath& path, |
| 561 bool is_hung); | 564 bool is_hung); |
| 562 void OnWebUISend(const GURL& source_url, | 565 void OnWebUISend(const GURL& source_url, |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 // remember it. | 836 // remember it. |
| 834 bool temporary_zoom_settings_; | 837 bool temporary_zoom_settings_; |
| 835 | 838 |
| 836 // The intrinsic size of the page. | 839 // The intrinsic size of the page. |
| 837 gfx::Size preferred_size_; | 840 gfx::Size preferred_size_; |
| 838 | 841 |
| 839 // Content restrictions, used to disable print/copy etc based on content's | 842 // Content restrictions, used to disable print/copy etc based on content's |
| 840 // (full-page plugins for now only) permissions. | 843 // (full-page plugins for now only) permissions. |
| 841 int content_restrictions_; | 844 int content_restrictions_; |
| 842 | 845 |
| 846 #if defined(OS_ANDROID) |
| 847 // Date time chooser opened by this tab. |
| 848 // Only used in Android since all other platforms use a multi field UI. |
| 849 scoped_ptr<DateTimeChooser> date_time_chooser_; |
| 850 #endif |
| 851 |
| 843 // Color chooser that was opened by this tab. | 852 // Color chooser that was opened by this tab. |
| 844 ColorChooser* color_chooser_; | 853 ColorChooser* color_chooser_; |
| 845 | 854 |
| 846 // Manages the embedder state for browser plugins, if this WebContents is an | 855 // Manages the embedder state for browser plugins, if this WebContents is an |
| 847 // embedder; NULL otherwise. | 856 // embedder; NULL otherwise. |
| 848 scoped_ptr<BrowserPluginEmbedder> browser_plugin_embedder_; | 857 scoped_ptr<BrowserPluginEmbedder> browser_plugin_embedder_; |
| 849 // Manages the guest state for browser plugin, if this WebContents is a guest; | 858 // Manages the guest state for browser plugin, if this WebContents is a guest; |
| 850 // NULL otherwise. | 859 // NULL otherwise. |
| 851 scoped_ptr<BrowserPluginGuest> browser_plugin_guest_; | 860 scoped_ptr<BrowserPluginGuest> browser_plugin_guest_; |
| 852 | 861 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 865 // Maps the ids of pending favicon downloads to their callbacks | 874 // Maps the ids of pending favicon downloads to their callbacks |
| 866 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; | 875 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; |
| 867 FaviconDownloadMap favicon_download_map_; | 876 FaviconDownloadMap favicon_download_map_; |
| 868 | 877 |
| 869 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 878 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 870 }; | 879 }; |
| 871 | 880 |
| 872 } // namespace content | 881 } // namespace content |
| 873 | 882 |
| 874 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 883 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |