Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Side by Side Diff: content/renderer/render_view_impl.h

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

Powered by Google App Engine
This is Rietveld 408576698