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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 class NotificationProvider; | 153 class NotificationProvider; |
154 class RenderViewObserver; | 154 class RenderViewObserver; |
155 class RenderViewTest; | 155 class RenderViewTest; |
156 class RendererAccessibility; | 156 class RendererAccessibility; |
157 class RendererPpapiHost; | 157 class RendererPpapiHost; |
158 class RendererWebColorChooserImpl; | 158 class RendererWebColorChooserImpl; |
159 class RenderWidgetFullscreenPepper; | 159 class RenderWidgetFullscreenPepper; |
160 class SpeechRecognitionDispatcher; | 160 class SpeechRecognitionDispatcher; |
161 class WebIntentsHost; | 161 class WebIntentsHost; |
162 class WebPluginDelegateProxy; | 162 class WebPluginDelegateProxy; |
163 class WebUIBindings; | |
164 struct CustomContextMenuContext; | 163 struct CustomContextMenuContext; |
165 struct FileChooserParams; | 164 struct FileChooserParams; |
166 | 165 |
167 #if defined(OS_ANDROID) | 166 #if defined(OS_ANDROID) |
168 class WebMediaPlayerProxyImplAndroid; | 167 class WebMediaPlayerProxyImplAndroid; |
169 #endif | 168 #endif |
170 | 169 |
171 // We need to prevent a page from trying to create infinite popups. It is not | 170 // We need to prevent a page from trying to create infinite popups. It is not |
172 // as simple as keeping a count of the number of immediate children | 171 // as simple as keeping a count of the number of immediate children |
173 // popups. Having an html file that window.open()s itself would create | 172 // popups. Having an html file that window.open()s itself would create |
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
959 CONTENT_EXPORT void OnSetAccessibilityMode(AccessibilityMode new_mode); | 958 CONTENT_EXPORT void OnSetAccessibilityMode(AccessibilityMode new_mode); |
960 void OnSetActive(bool active); | 959 void OnSetActive(bool active); |
961 void OnSetAltErrorPageURL(const GURL& gurl); | 960 void OnSetAltErrorPageURL(const GURL& gurl); |
962 void OnSetBackground(const SkBitmap& background); | 961 void OnSetBackground(const SkBitmap& background); |
963 CONTENT_EXPORT void OnSetCompositionFromExistingText( | 962 CONTENT_EXPORT void OnSetCompositionFromExistingText( |
964 int start, int end, | 963 int start, int end, |
965 const std::vector<WebKit::WebCompositionUnderline>& underlines); | 964 const std::vector<WebKit::WebCompositionUnderline>& underlines); |
966 CONTENT_EXPORT void OnSetEditableSelectionOffsets(int start, int end); | 965 CONTENT_EXPORT void OnSetEditableSelectionOffsets(int start, int end); |
967 void OnSetNavigationStartTime( | 966 void OnSetNavigationStartTime( |
968 const base::TimeTicks& browser_navigation_start); | 967 const base::TimeTicks& browser_navigation_start); |
969 void OnSetWebUIProperty(const std::string& name, const std::string& value); | |
970 CONTENT_EXPORT void OnSetEditCommandsForNextKeyEvent( | 968 CONTENT_EXPORT void OnSetEditCommandsForNextKeyEvent( |
971 const EditCommands& edit_commands); | 969 const EditCommands& edit_commands); |
972 CONTENT_EXPORT void OnSetHistoryLengthAndPrune(int history_length, | 970 CONTENT_EXPORT void OnSetHistoryLengthAndPrune(int history_length, |
973 int32 minimum_page_id); | 971 int32 minimum_page_id); |
974 void OnSetInitialFocus(bool reverse); | 972 void OnSetInitialFocus(bool reverse); |
975 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); | 973 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); |
976 void OnSetPageEncoding(const std::string& encoding_name); | 974 void OnSetPageEncoding(const std::string& encoding_name); |
977 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 975 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
978 void OnSetZoomLevel(double zoom_level); | 976 void OnSetZoomLevel(double zoom_level); |
979 CONTENT_EXPORT void OnSetZoomLevelForLoadingURL(const GURL& url, | 977 CONTENT_EXPORT void OnSetZoomLevelForLoadingURL(const GURL& url, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 | 1085 |
1088 // Locates a sub frame with given xpath | 1086 // Locates a sub frame with given xpath |
1089 WebKit::WebFrame* GetChildFrame(const string16& frame_xpath) const; | 1087 WebKit::WebFrame* GetChildFrame(const string16& frame_xpath) const; |
1090 | 1088 |
1091 // Returns the opener url if present, else an empty url. | 1089 // Returns the opener url if present, else an empty url. |
1092 GURL GetOpenerUrl() const; | 1090 GURL GetOpenerUrl() const; |
1093 | 1091 |
1094 // Returns the URL being loaded by the given frame's request. | 1092 // Returns the URL being loaded by the given frame's request. |
1095 GURL GetLoadingUrl(WebKit::WebFrame* frame) const; | 1093 GURL GetLoadingUrl(WebKit::WebFrame* frame) const; |
1096 | 1094 |
1097 WebUIBindings* GetWebUIBindings(); | |
1098 | |
1099 // Should only be called if this object wraps a PluginDocument. | 1095 // Should only be called if this object wraps a PluginDocument. |
1100 WebKit::WebPlugin* GetWebPluginFromPluginDocument(); | 1096 WebKit::WebPlugin* GetWebPluginFromPluginDocument(); |
1101 | 1097 |
1102 // Returns true if the |params| navigation is to an entry that has been | 1098 // Returns true if the |params| navigation is to an entry that has been |
1103 // cropped due to a recent navigation the browser did not know about. | 1099 // cropped due to a recent navigation the browser did not know about. |
1104 bool IsBackForwardToStaleEntry(const ViewMsg_Navigate_Params& params, | 1100 bool IsBackForwardToStaleEntry(const ViewMsg_Navigate_Params& params, |
1105 bool is_reload); | 1101 bool is_reload); |
1106 | 1102 |
1107 bool MaybeLoadAlternateErrorPage(WebKit::WebFrame* frame, | 1103 bool MaybeLoadAlternateErrorPage(WebKit::WebFrame* frame, |
1108 const WebKit::WebURLError& error, | 1104 const WebKit::WebURLError& error, |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1466 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_; | 1462 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_; |
1467 | 1463 |
1468 // Whether this is a top level window (instead of a popup). Top level windows | 1464 // Whether this is a top level window (instead of a popup). Top level windows |
1469 // shouldn't count against their own |shared_popup_counter_|. | 1465 // shouldn't count against their own |shared_popup_counter_|. |
1470 bool decrement_shared_popup_at_destruction_; | 1466 bool decrement_shared_popup_at_destruction_; |
1471 | 1467 |
1472 // Stores edit commands associated to the next key event. | 1468 // Stores edit commands associated to the next key event. |
1473 // Shall be cleared as soon as the next key event is processed. | 1469 // Shall be cleared as soon as the next key event is processed. |
1474 EditCommands edit_commands_; | 1470 EditCommands edit_commands_; |
1475 | 1471 |
1476 // Allows Web UI pages (new tab page, etc.) to talk to the browser. The JS | |
1477 // object is only exposed when Web UI bindings are enabled. | |
1478 scoped_ptr<WebUIBindings> web_ui_bindings_; | |
1479 | |
1480 // The external popup for the currently showing select popup. | 1472 // The external popup for the currently showing select popup. |
1481 scoped_ptr<ExternalPopupMenu> external_popup_menu_; | 1473 scoped_ptr<ExternalPopupMenu> external_popup_menu_; |
1482 | 1474 |
1483 // The node that the context menu was pressed over. | 1475 // The node that the context menu was pressed over. |
1484 WebKit::WebNode context_menu_node_; | 1476 WebKit::WebNode context_menu_node_; |
1485 | 1477 |
1486 // All the registered observers. We expect this list to be small, so vector | 1478 // All the registered observers. We expect this list to be small, so vector |
1487 // is fine. | 1479 // is fine. |
1488 ObserverList<RenderViewObserver> observers_; | 1480 ObserverList<RenderViewObserver> observers_; |
1489 | 1481 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1555 // use the Observer interface to filter IPC messages and receive frame change | 1547 // use the Observer interface to filter IPC messages and receive frame change |
1556 // notifications. | 1548 // notifications. |
1557 // --------------------------------------------------------------------------- | 1549 // --------------------------------------------------------------------------- |
1558 | 1550 |
1559 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1551 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1560 }; | 1552 }; |
1561 | 1553 |
1562 } // namespace content | 1554 } // namespace content |
1563 | 1555 |
1564 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1556 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |