| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
| 6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "chrome/common/navigation_gesture.h" | 27 #include "chrome/common/navigation_gesture.h" |
| 28 #include "chrome/common/notification_type.h" | 28 #include "chrome/common/notification_type.h" |
| 29 #include "chrome/common/page_zoom.h" | 29 #include "chrome/common/page_zoom.h" |
| 30 #include "chrome/common/render_messages.h" | 30 #include "chrome/common/render_messages.h" |
| 31 #include "chrome/common/renderer_preferences.h" | 31 #include "chrome/common/renderer_preferences.h" |
| 32 #include "chrome/common/view_types.h" | 32 #include "chrome/common/view_types.h" |
| 33 #include "chrome/renderer/automation/dom_automation_controller.h" | 33 #include "chrome/renderer/automation/dom_automation_controller.h" |
| 34 #include "chrome/renderer/dom_ui_bindings.h" | 34 #include "chrome/renderer/dom_ui_bindings.h" |
| 35 #include "chrome/renderer/extensions/extension_process_bindings.h" | 35 #include "chrome/renderer/extensions/extension_process_bindings.h" |
| 36 #include "chrome/renderer/external_host_bindings.h" | 36 #include "chrome/renderer/external_host_bindings.h" |
| 37 #include "chrome/renderer/form_manager.h" |
| 37 #include "chrome/renderer/notification_provider.h" | 38 #include "chrome/renderer/notification_provider.h" |
| 38 #include "chrome/renderer/render_widget.h" | 39 #include "chrome/renderer/render_widget.h" |
| 39 #include "chrome/renderer/render_view_visitor.h" | 40 #include "chrome/renderer/render_view_visitor.h" |
| 40 #include "chrome/renderer/translate/page_translator.h" | 41 #include "chrome/renderer/translate/page_translator.h" |
| 41 #include "chrome/renderer/translate/text_translator_impl.h" | 42 #include "chrome/renderer/translate/text_translator_impl.h" |
| 42 #include "third_party/skia/include/core/SkBitmap.h" | 43 #include "third_party/skia/include/core/SkBitmap.h" |
| 43 #include "testing/gtest/include/gtest/gtest_prod.h" | 44 #include "testing/gtest/include/gtest/gtest_prod.h" |
| 44 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h" | 45 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h" |
| 45 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h" | 46 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h" |
| 46 #include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h" | 47 #include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h" |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 virtual int historyForwardListCount(); | 253 virtual int historyForwardListCount(); |
| 253 virtual void didAddHistoryItem(); | 254 virtual void didAddHistoryItem(); |
| 254 virtual void focusAccessibilityObject( | 255 virtual void focusAccessibilityObject( |
| 255 const WebKit::WebAccessibilityObject& acc_obj); | 256 const WebKit::WebAccessibilityObject& acc_obj); |
| 256 virtual void didUpdateInspectorSettings(); | 257 virtual void didUpdateInspectorSettings(); |
| 257 virtual void queryAutofillSuggestions( | 258 virtual void queryAutofillSuggestions( |
| 258 const WebKit::WebNode& node, const WebKit::WebString& name, | 259 const WebKit::WebNode& node, const WebKit::WebString& name, |
| 259 const WebKit::WebString& value); | 260 const WebKit::WebString& value); |
| 260 virtual void removeAutofillSuggestions( | 261 virtual void removeAutofillSuggestions( |
| 261 const WebKit::WebString& name, const WebKit::WebString& value); | 262 const WebKit::WebString& name, const WebKit::WebString& value); |
| 263 virtual void didAcceptAutoFillSuggestion( |
| 264 const WebKit::WebNode& node, |
| 265 const WebKit::WebString& name, |
| 266 const WebKit::WebString& label); |
| 262 | 267 |
| 263 virtual WebKit::WebNotificationPresenter* GetNotificationPresenter() { | 268 virtual WebKit::WebNotificationPresenter* GetNotificationPresenter() { |
| 264 return notification_provider_.get(); | 269 return notification_provider_.get(); |
| 265 } | 270 } |
| 266 | 271 |
| 267 // Sets the content settings that back allowScripts(), allowImages(), and | 272 // Sets the content settings that back allowScripts(), allowImages(), and |
| 268 // allowPlugins(). | 273 // allowPlugins(). |
| 269 void SetContentSettings(const ContentSettings& settings); | 274 void SetContentSettings(const ContentSettings& settings); |
| 270 | 275 |
| 271 // WebKit::WebWidgetClient | 276 // WebKit::WebWidgetClient |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 const std::vector<string16>& names, | 709 const std::vector<string16>& names, |
| 705 const std::vector<string16>& labels, | 710 const std::vector<string16>& labels, |
| 706 int default_suggestions_index); | 711 int default_suggestions_index); |
| 707 | 712 |
| 708 // Notification that we have received Autocomplete suggestions. | 713 // Notification that we have received Autocomplete suggestions. |
| 709 void OnAutocompleteSuggestionsReturned( | 714 void OnAutocompleteSuggestionsReturned( |
| 710 int query_id, | 715 int query_id, |
| 711 const std::vector<string16>& suggestions, | 716 const std::vector<string16>& suggestions, |
| 712 int default_suggestions_index); | 717 int default_suggestions_index); |
| 713 | 718 |
| 719 // Notification that we have received AutoFill form data. |
| 720 void OnAutoFillFormDataFilled(int query_id, const FormData& form); |
| 721 |
| 714 // Message that the popup notification has been shown or hidden. | 722 // Message that the popup notification has been shown or hidden. |
| 715 void OnPopupNotificationVisibilityChanged(bool visible); | 723 void OnPopupNotificationVisibilityChanged(bool visible); |
| 716 | 724 |
| 717 // Handles messages posted from automation. | 725 // Handles messages posted from automation. |
| 718 void OnMessageFromExternalHost(const std::string& message, | 726 void OnMessageFromExternalHost(const std::string& message, |
| 719 const std::string& origin, | 727 const std::string& origin, |
| 720 const std::string& target); | 728 const std::string& target); |
| 721 | 729 |
| 722 // Message that we should no longer be part of the current popup window | 730 // Message that we should no longer be part of the current popup window |
| 723 // grouping, and should form our own grouping. | 731 // grouping, and should form our own grouping. |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 | 1109 |
| 1102 // The SessionStorage namespace that we're assigned to has an ID, and that ID | 1110 // The SessionStorage namespace that we're assigned to has an ID, and that ID |
| 1103 // is passed to us upon creation. WebKit asks for this ID upon first use and | 1111 // is passed to us upon creation. WebKit asks for this ID upon first use and |
| 1104 // uses it whenever asking the browser process to allocate new storage areas. | 1112 // uses it whenever asking the browser process to allocate new storage areas. |
| 1105 int64 session_storage_namespace_id_; | 1113 int64 session_storage_namespace_id_; |
| 1106 | 1114 |
| 1107 // Page translation related objects. | 1115 // Page translation related objects. |
| 1108 TextTranslatorImpl text_translator_; | 1116 TextTranslatorImpl text_translator_; |
| 1109 scoped_ptr<PageTranslator> page_translator_; | 1117 scoped_ptr<PageTranslator> page_translator_; |
| 1110 | 1118 |
| 1119 // The FormManager for this RenderView. |
| 1120 FormManager form_manager_; |
| 1121 |
| 1111 #if defined(OS_MACOSX) | 1122 #if defined(OS_MACOSX) |
| 1112 // All the currently active plugin delegates for this RenderView; kept so that | 1123 // All the currently active plugin delegates for this RenderView; kept so that |
| 1113 // we can enumerate them to send updates about things like window location | 1124 // we can enumerate them to send updates about things like window location |
| 1114 // or tab focus and visibily. These are non-owning references. | 1125 // or tab focus and visibily. These are non-owning references. |
| 1115 std::set<WebPluginDelegateProxy*> plugin_delegates_; | 1126 std::set<WebPluginDelegateProxy*> plugin_delegates_; |
| 1116 #endif | 1127 #endif |
| 1117 | 1128 |
| 1118 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1129 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1119 }; | 1130 }; |
| 1120 | 1131 |
| 1121 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1132 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |