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

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: Using typeof == "function" Created 8 years 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
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 class NotificationProvider; 154 class NotificationProvider;
155 class RenderViewObserver; 155 class RenderViewObserver;
156 class RenderViewTest; 156 class RenderViewTest;
157 class RendererAccessibility; 157 class RendererAccessibility;
158 class RendererPpapiHost; 158 class RendererPpapiHost;
159 class RendererWebColorChooserImpl; 159 class RendererWebColorChooserImpl;
160 class RenderWidgetFullscreenPepper; 160 class RenderWidgetFullscreenPepper;
161 class SpeechRecognitionDispatcher; 161 class SpeechRecognitionDispatcher;
162 class WebIntentsHost; 162 class WebIntentsHost;
163 class WebPluginDelegateProxy; 163 class WebPluginDelegateProxy;
164 class WebUIBindings;
165 struct CustomContextMenuContext; 164 struct CustomContextMenuContext;
166 struct FileChooserParams; 165 struct FileChooserParams;
167 struct RenderViewImplParams; 166 struct RenderViewImplParams;
168 167
169 #if defined(OS_ANDROID) 168 #if defined(OS_ANDROID)
170 class WebMediaPlayerProxyImplAndroid; 169 class WebMediaPlayerProxyImplAndroid;
171 #endif 170 #endif
172 171
173 // We need to prevent a page from trying to create infinite popups. It is not 172 // We need to prevent a page from trying to create infinite popups. It is not
174 // as simple as keeping a count of the number of immediate children 173 // as simple as keeping a count of the number of immediate children
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 void OnSetActive(bool active); 963 void OnSetActive(bool active);
965 void OnSetAltErrorPageURL(const GURL& gurl); 964 void OnSetAltErrorPageURL(const GURL& gurl);
966 void OnSetBackground(const SkBitmap& background); 965 void OnSetBackground(const SkBitmap& background);
967 void OnSetCompositionFromExistingText( 966 void OnSetCompositionFromExistingText(
968 int start, int end, 967 int start, int end,
969 const std::vector<WebKit::WebCompositionUnderline>& underlines); 968 const std::vector<WebKit::WebCompositionUnderline>& underlines);
970 void OnSetEditableSelectionOffsets(int start, int end); 969 void OnSetEditableSelectionOffsets(int start, int end);
971 void OnSetNavigationStartTime( 970 void OnSetNavigationStartTime(
972 const base::TimeTicks& browser_navigation_start); 971 const base::TimeTicks& browser_navigation_start);
973 void OnSetWebUIProperty(const std::string& name, const std::string& value); 972 void OnSetWebUIProperty(const std::string& name, const std::string& value);
974 void OnSetEditCommandsForNextKeyEvent( 973 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands);
975 const EditCommands& edit_commands);
976 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); 974 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id);
977 void OnSetInitialFocus(bool reverse); 975 void OnSetInitialFocus(bool reverse);
978 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); 976 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect);
979 void OnSetPageEncoding(const std::string& encoding_name); 977 void OnSetPageEncoding(const std::string& encoding_name);
980 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); 978 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs);
981 void OnSetZoomLevel(double zoom_level); 979 void OnSetZoomLevel(double zoom_level);
982 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); 980 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level);
983 void OnExitFullscreen(); 981 void OnExitFullscreen();
984 void OnShouldClose(); 982 void OnShouldClose();
985 void OnStop(); 983 void OnStop();
(...skipping 102 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1470 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_; 1466 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_;
1471 1467
1472 // Whether this is a top level window (instead of a popup). Top level windows 1468 // Whether this is a top level window (instead of a popup). Top level windows
1473 // shouldn't count against their own |shared_popup_counter_|. 1469 // shouldn't count against their own |shared_popup_counter_|.
1474 bool decrement_shared_popup_at_destruction_; 1470 bool decrement_shared_popup_at_destruction_;
1475 1471
1476 // Stores edit commands associated to the next key event. 1472 // Stores edit commands associated to the next key event.
1477 // Shall be cleared as soon as the next key event is processed. 1473 // Shall be cleared as soon as the next key event is processed.
1478 EditCommands edit_commands_; 1474 EditCommands edit_commands_;
1479 1475
1480 // Allows Web UI pages (new tab page, etc.) to talk to the browser. The JS
1481 // object is only exposed when Web UI bindings are enabled.
1482 scoped_ptr<WebUIBindings> web_ui_bindings_;
1483
1484 // The external popup for the currently showing select popup. 1476 // The external popup for the currently showing select popup.
1485 scoped_ptr<ExternalPopupMenu> external_popup_menu_; 1477 scoped_ptr<ExternalPopupMenu> external_popup_menu_;
1486 1478
1487 // The node that the context menu was pressed over. 1479 // The node that the context menu was pressed over.
1488 WebKit::WebNode context_menu_node_; 1480 WebKit::WebNode context_menu_node_;
1489 1481
1490 // All the registered observers. We expect this list to be small, so vector 1482 // All the registered observers. We expect this list to be small, so vector
1491 // is fine. 1483 // is fine.
1492 ObserverList<RenderViewObserver> observers_; 1484 ObserverList<RenderViewObserver> observers_;
1493 1485
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
1559 // use the Observer interface to filter IPC messages and receive frame change 1551 // use the Observer interface to filter IPC messages and receive frame change
1560 // notifications. 1552 // notifications.
1561 // --------------------------------------------------------------------------- 1553 // ---------------------------------------------------------------------------
1562 1554
1563 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1555 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1564 }; 1556 };
1565 1557
1566 } // namespace content 1558 } // namespace content
1567 1559
1568 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1560 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698