| 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_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 namespace content { | 58 namespace content { |
| 59 | 59 |
| 60 class BrowserMediaPlayerManager; | 60 class BrowserMediaPlayerManager; |
| 61 class ChildProcessSecurityPolicyImpl; | 61 class ChildProcessSecurityPolicyImpl; |
| 62 class PageState; | 62 class PageState; |
| 63 class RenderWidgetHostDelegate; | 63 class RenderWidgetHostDelegate; |
| 64 class SessionStorageNamespace; | 64 class SessionStorageNamespace; |
| 65 class SessionStorageNamespaceImpl; | 65 class SessionStorageNamespaceImpl; |
| 66 class TestRenderViewHost; | 66 class TestRenderViewHost; |
| 67 struct ContextMenuParams; | |
| 68 struct FileChooserParams; | 67 struct FileChooserParams; |
| 69 struct Referrer; | 68 struct Referrer; |
| 70 struct ShowDesktopNotificationHostMsgParams; | 69 struct ShowDesktopNotificationHostMsgParams; |
| 71 | 70 |
| 72 #if defined(COMPILER_MSVC) | 71 #if defined(COMPILER_MSVC) |
| 73 // RenderViewHostImpl is the bottom of a diamond-shaped hierarchy, | 72 // RenderViewHostImpl is the bottom of a diamond-shaped hierarchy, |
| 74 // with RenderWidgetHost at the root. VS warns when methods from the | 73 // with RenderWidgetHost at the root. VS warns when methods from the |
| 75 // root are overridden in only one of the base classes and not both | 74 // root are overridden in only one of the base classes and not both |
| 76 // (in this case, RenderWidgetHostImpl provides implementations of | 75 // (in this case, RenderWidgetHostImpl provides implementations of |
| 77 // many of the methods). This is a silly warning when dealing with | 76 // many of the methods). This is a silly warning when dealing with |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 blink::WebDragOperationsMask operations_allowed, | 159 blink::WebDragOperationsMask operations_allowed, |
| 161 int key_modifiers) OVERRIDE; | 160 int key_modifiers) OVERRIDE; |
| 162 virtual void DragTargetDragLeave() OVERRIDE; | 161 virtual void DragTargetDragLeave() OVERRIDE; |
| 163 virtual void DragTargetDrop(const gfx::Point& client_pt, | 162 virtual void DragTargetDrop(const gfx::Point& client_pt, |
| 164 const gfx::Point& screen_pt, | 163 const gfx::Point& screen_pt, |
| 165 int key_modifiers) OVERRIDE; | 164 int key_modifiers) OVERRIDE; |
| 166 virtual void EnableAutoResize(const gfx::Size& min_size, | 165 virtual void EnableAutoResize(const gfx::Size& min_size, |
| 167 const gfx::Size& max_size) OVERRIDE; | 166 const gfx::Size& max_size) OVERRIDE; |
| 168 virtual void DisableAutoResize(const gfx::Size& new_size) OVERRIDE; | 167 virtual void DisableAutoResize(const gfx::Size& new_size) OVERRIDE; |
| 169 virtual void EnablePreferredSizeMode() OVERRIDE; | 168 virtual void EnablePreferredSizeMode() OVERRIDE; |
| 170 virtual void ExecuteCustomContextMenuCommand( | |
| 171 int action, const CustomContextMenuContext& context) OVERRIDE; | |
| 172 virtual void ExecuteMediaPlayerActionAtLocation( | 169 virtual void ExecuteMediaPlayerActionAtLocation( |
| 173 const gfx::Point& location, | 170 const gfx::Point& location, |
| 174 const blink::WebMediaPlayerAction& action) OVERRIDE; | 171 const blink::WebMediaPlayerAction& action) OVERRIDE; |
| 175 virtual void ExecuteJavascriptInWebFrame( | 172 virtual void ExecuteJavascriptInWebFrame( |
| 176 const base::string16& frame_xpath, | 173 const base::string16& frame_xpath, |
| 177 const base::string16& jscript) OVERRIDE; | 174 const base::string16& jscript) OVERRIDE; |
| 178 virtual void ExecuteJavascriptInWebFrameCallbackResult( | 175 virtual void ExecuteJavascriptInWebFrameCallbackResult( |
| 179 const base::string16& frame_xpath, | 176 const base::string16& frame_xpath, |
| 180 const base::string16& jscript, | 177 const base::string16& jscript, |
| 181 const JavascriptResultCallback& callback) OVERRIDE; | 178 const JavascriptResultCallback& callback) OVERRIDE; |
| 182 virtual void ExecutePluginActionAtLocation( | 179 virtual void ExecutePluginActionAtLocation( |
| 183 const gfx::Point& location, | 180 const gfx::Point& location, |
| 184 const blink::WebPluginAction& action) OVERRIDE; | 181 const blink::WebPluginAction& action) OVERRIDE; |
| 185 virtual void ExitFullscreen() OVERRIDE; | 182 virtual void ExitFullscreen() OVERRIDE; |
| 186 virtual void FirePageBeforeUnload(bool for_cross_site_transition) OVERRIDE; | 183 virtual void FirePageBeforeUnload(bool for_cross_site_transition) OVERRIDE; |
| 187 virtual void FilesSelectedInChooser( | 184 virtual void FilesSelectedInChooser( |
| 188 const std::vector<ui::SelectedFileInfo>& files, | 185 const std::vector<ui::SelectedFileInfo>& files, |
| 189 FileChooserParams::Mode permissions) OVERRIDE; | 186 FileChooserParams::Mode permissions) OVERRIDE; |
| 190 virtual RenderViewHostDelegate* GetDelegate() const OVERRIDE; | 187 virtual RenderViewHostDelegate* GetDelegate() const OVERRIDE; |
| 191 virtual int GetEnabledBindings() const OVERRIDE; | 188 virtual int GetEnabledBindings() const OVERRIDE; |
| 192 virtual SiteInstance* GetSiteInstance() const OVERRIDE; | 189 virtual SiteInstance* GetSiteInstance() const OVERRIDE; |
| 193 virtual void InsertCSS(const base::string16& frame_xpath, | 190 virtual void InsertCSS(const base::string16& frame_xpath, |
| 194 const std::string& css) OVERRIDE; | 191 const std::string& css) OVERRIDE; |
| 195 virtual bool IsRenderViewLive() const OVERRIDE; | 192 virtual bool IsRenderViewLive() const OVERRIDE; |
| 196 virtual void NotifyContextMenuClosed( | |
| 197 const CustomContextMenuContext& context) OVERRIDE; | |
| 198 virtual void NotifyMoveOrResizeStarted() OVERRIDE; | 193 virtual void NotifyMoveOrResizeStarted() OVERRIDE; |
| 199 virtual void ReloadFrame() OVERRIDE; | 194 virtual void ReloadFrame() OVERRIDE; |
| 200 virtual void SetWebUIProperty(const std::string& name, | 195 virtual void SetWebUIProperty(const std::string& name, |
| 201 const std::string& value) OVERRIDE; | 196 const std::string& value) OVERRIDE; |
| 202 virtual void Zoom(PageZoom zoom) OVERRIDE; | 197 virtual void Zoom(PageZoom zoom) OVERRIDE; |
| 203 virtual void SyncRendererPrefs() OVERRIDE; | 198 virtual void SyncRendererPrefs() OVERRIDE; |
| 204 virtual void ToggleSpeechInput() OVERRIDE; | 199 virtual void ToggleSpeechInput() OVERRIDE; |
| 205 virtual WebPreferences GetWebkitPreferences() OVERRIDE; | 200 virtual WebPreferences GetWebkitPreferences() OVERRIDE; |
| 206 virtual void UpdateWebkitPreferences( | 201 virtual void UpdateWebkitPreferences( |
| 207 const WebPreferences& prefs) OVERRIDE; | 202 const WebPreferences& prefs) OVERRIDE; |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 void OnUpdateEncoding(const std::string& encoding); | 511 void OnUpdateEncoding(const std::string& encoding); |
| 517 void OnUpdateTargetURL(int32 page_id, const GURL& url); | 512 void OnUpdateTargetURL(int32 page_id, const GURL& url); |
| 518 void OnClose(); | 513 void OnClose(); |
| 519 void OnRequestMove(const gfx::Rect& pos); | 514 void OnRequestMove(const gfx::Rect& pos); |
| 520 void OnDidStartLoading(); | 515 void OnDidStartLoading(); |
| 521 void OnDidStopLoading(); | 516 void OnDidStopLoading(); |
| 522 void OnDidChangeLoadProgress(double load_progress); | 517 void OnDidChangeLoadProgress(double load_progress); |
| 523 void OnDidDisownOpener(); | 518 void OnDidDisownOpener(); |
| 524 void OnDocumentAvailableInMainFrame(); | 519 void OnDocumentAvailableInMainFrame(); |
| 525 void OnDocumentOnLoadCompletedInMainFrame(int32 page_id); | 520 void OnDocumentOnLoadCompletedInMainFrame(int32 page_id); |
| 526 void OnContextMenu(const ContextMenuParams& params); | |
| 527 void OnToggleFullscreen(bool enter_fullscreen); | 521 void OnToggleFullscreen(bool enter_fullscreen); |
| 528 void OnOpenURL(const ViewHostMsg_OpenURL_Params& params); | 522 void OnOpenURL(const ViewHostMsg_OpenURL_Params& params); |
| 529 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); | 523 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); |
| 530 void OnDidChangeScrollOffset(); | 524 void OnDidChangeScrollOffset(); |
| 531 void OnDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar, | 525 void OnDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar, |
| 532 bool has_vertical_scrollbar); | 526 bool has_vertical_scrollbar); |
| 533 void OnDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left, | 527 void OnDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left, |
| 534 bool is_pinned_to_right); | 528 bool is_pinned_to_right); |
| 535 void OnDidChangeNumWheelEvents(int count); | 529 void OnDidChangeNumWheelEvents(int count); |
| 536 void OnSelectionChanged(const base::string16& text, | 530 void OnSelectionChanged(const base::string16& text, |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 703 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 710 }; | 704 }; |
| 711 | 705 |
| 712 #if defined(COMPILER_MSVC) | 706 #if defined(COMPILER_MSVC) |
| 713 #pragma warning(pop) | 707 #pragma warning(pop) |
| 714 #endif | 708 #endif |
| 715 | 709 |
| 716 } // namespace content | 710 } // namespace content |
| 717 | 711 |
| 718 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 712 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |