| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } | 54 } |
| 55 | 55 |
| 56 namespace webkit_glue { | 56 namespace webkit_glue { |
| 57 struct WebAccessibility; | 57 struct WebAccessibility; |
| 58 } | 58 } |
| 59 | 59 |
| 60 namespace content { | 60 namespace content { |
| 61 | 61 |
| 62 class SessionStorageNamespace; | 62 class SessionStorageNamespace; |
| 63 class RenderViewHostObserver; | 63 class RenderViewHostObserver; |
| 64 class RenderWidgetHostDelegate; |
| 64 struct FileChooserParams; | 65 struct FileChooserParams; |
| 65 struct ContextMenuParams; | 66 struct ContextMenuParams; |
| 66 struct Referrer; | 67 struct Referrer; |
| 67 struct SelectedFileInfo; | 68 struct SelectedFileInfo; |
| 68 struct ShowDesktopNotificationHostMsgParams; | 69 struct ShowDesktopNotificationHostMsgParams; |
| 69 | 70 |
| 70 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT | 71 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT |
| 71 // notifications. | 72 // notifications. |
| 72 class ExecuteNotificationObserver : public NotificationObserver { | 73 class ExecuteNotificationObserver : public NotificationObserver { |
| 73 public: | 74 public: |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // frame being rendered by another process). | 128 // frame being rendered by another process). |
| 128 // | 129 // |
| 129 // The |session_storage_namespace| parameter allows multiple render views and | 130 // The |session_storage_namespace| parameter allows multiple render views and |
| 130 // WebContentses to share the same session storage (part of the WebStorage | 131 // WebContentses to share the same session storage (part of the WebStorage |
| 131 // spec) space. This is useful when restoring contentses, but most callers | 132 // spec) space. This is useful when restoring contentses, but most callers |
| 132 // should pass in NULL which will cause a new SessionStorageNamespace to be | 133 // should pass in NULL which will cause a new SessionStorageNamespace to be |
| 133 // created. | 134 // created. |
| 134 RenderViewHostImpl( | 135 RenderViewHostImpl( |
| 135 SiteInstance* instance, | 136 SiteInstance* instance, |
| 136 RenderViewHostDelegate* delegate, | 137 RenderViewHostDelegate* delegate, |
| 138 RenderWidgetHostDelegate* widget_delegate, |
| 137 int routing_id, | 139 int routing_id, |
| 138 bool swapped_out, | 140 bool swapped_out, |
| 139 SessionStorageNamespace* session_storage_namespace); | 141 SessionStorageNamespace* session_storage_namespace); |
| 140 virtual ~RenderViewHostImpl(); | 142 virtual ~RenderViewHostImpl(); |
| 141 | 143 |
| 142 // RenderViewHost implementation. | 144 // RenderViewHost implementation. |
| 143 virtual void AllowBindings(int binding_flags) OVERRIDE; | 145 virtual void AllowBindings(int binding_flags) OVERRIDE; |
| 144 virtual void ClearFocusedNode() OVERRIDE; | 146 virtual void ClearFocusedNode() OVERRIDE; |
| 145 virtual void ClosePage() OVERRIDE; | 147 virtual void ClosePage() OVERRIDE; |
| 146 virtual void CopyImageAt(int x, int y) OVERRIDE; | 148 virtual void CopyImageAt(int x, int y) OVERRIDE; |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 | 420 |
| 419 protected: | 421 protected: |
| 420 friend class RenderViewHostObserver; | 422 friend class RenderViewHostObserver; |
| 421 | 423 |
| 422 // Add and remove observers for filtering IPC messages. Clients must be sure | 424 // Add and remove observers for filtering IPC messages. Clients must be sure |
| 423 // to remove the observer before they go away. | 425 // to remove the observer before they go away. |
| 424 void AddObserver(RenderViewHostObserver* observer); | 426 void AddObserver(RenderViewHostObserver* observer); |
| 425 void RemoveObserver(RenderViewHostObserver* observer); | 427 void RemoveObserver(RenderViewHostObserver* observer); |
| 426 | 428 |
| 427 // RenderWidgetHost protected overrides. | 429 // RenderWidgetHost protected overrides. |
| 428 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | |
| 429 bool* is_keyboard_shortcut) OVERRIDE; | |
| 430 virtual void UnhandledKeyboardEvent( | |
| 431 const NativeWebKeyboardEvent& event) OVERRIDE; | |
| 432 virtual void OnUserGesture() OVERRIDE; | 430 virtual void OnUserGesture() OVERRIDE; |
| 433 virtual void NotifyRendererUnresponsive() OVERRIDE; | 431 virtual void NotifyRendererUnresponsive() OVERRIDE; |
| 434 virtual void NotifyRendererResponsive() OVERRIDE; | 432 virtual void NotifyRendererResponsive() OVERRIDE; |
| 435 virtual void OnRenderAutoResized(const gfx::Size& size) OVERRIDE; | 433 virtual void OnRenderAutoResized(const gfx::Size& size) OVERRIDE; |
| 436 virtual void RequestToLockMouse(bool user_gesture) OVERRIDE; | 434 virtual void RequestToLockMouse(bool user_gesture) OVERRIDE; |
| 437 virtual bool IsFullscreen() const OVERRIDE; | 435 virtual bool IsFullscreen() const OVERRIDE; |
| 438 virtual void OnMsgFocus() OVERRIDE; | 436 virtual void OnMsgFocus() OVERRIDE; |
| 439 virtual void OnMsgBlur() OVERRIDE; | 437 virtual void OnMsgBlur() OVERRIDE; |
| 440 | 438 |
| 441 // IPC message handlers. | 439 // IPC message handlers. |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 649 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 652 }; | 650 }; |
| 653 | 651 |
| 654 #if defined(COMPILER_MSVC) | 652 #if defined(COMPILER_MSVC) |
| 655 #pragma warning(pop) | 653 #pragma warning(pop) |
| 656 #endif | 654 #endif |
| 657 | 655 |
| 658 } // namespace content | 656 } // namespace content |
| 659 | 657 |
| 660 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 658 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |