| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 | 429 |
| 430 // Tell renderer which browser window it is being attached to. | 430 // Tell renderer which browser window it is being attached to. |
| 431 void UpdateBrowserWindowId(int window_id); | 431 void UpdateBrowserWindowId(int window_id); |
| 432 | 432 |
| 433 void set_in_inspect_element_mode(bool enabled) { | 433 void set_in_inspect_element_mode(bool enabled) { |
| 434 in_inspect_element_mode_ = enabled; | 434 in_inspect_element_mode_ = enabled; |
| 435 } | 435 } |
| 436 | 436 |
| 437 protected: | 437 protected: |
| 438 // RenderWidgetHost protected overrides. | 438 // RenderWidgetHost protected overrides. |
| 439 virtual bool ShouldSendToRenderer(const NativeWebKeyboardEvent& event); |
| 439 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); | 440 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 440 virtual void OnUserGesture(); | 441 virtual void OnUserGesture(); |
| 441 virtual void NotifyRendererUnresponsive(); | 442 virtual void NotifyRendererUnresponsive(); |
| 442 virtual void NotifyRendererResponsive(); | 443 virtual void NotifyRendererResponsive(); |
| 443 virtual void OnMsgFocusedNodeChanged(); | 444 virtual void OnMsgFocusedNodeChanged(); |
| 444 | 445 |
| 445 // IPC message handlers. | 446 // IPC message handlers. |
| 446 void OnMsgShowView(int route_id, | 447 void OnMsgShowView(int route_id, |
| 447 WindowOpenDisposition disposition, | 448 WindowOpenDisposition disposition, |
| 448 const gfx::Rect& initial_pos, | 449 const gfx::Rect& initial_pos, |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 // While in this mode, mouse click is converted into InspectElement | 651 // While in this mode, mouse click is converted into InspectElement |
| 651 // command. | 652 // command. |
| 652 bool in_inspect_element_mode_; | 653 bool in_inspect_element_mode_; |
| 653 | 654 |
| 654 NotificationRegistrar registrar_; | 655 NotificationRegistrar registrar_; |
| 655 | 656 |
| 656 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 657 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 657 }; | 658 }; |
| 658 | 659 |
| 659 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 660 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |