| 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 // Tell renderer which browser window it is being attached to. | 437 // Tell renderer which browser window it is being attached to. |
| 438 void UpdateBrowserWindowId(int window_id); | 438 void UpdateBrowserWindowId(int window_id); |
| 439 | 439 |
| 440 void set_in_inspect_element_mode(bool enabled) { | 440 void set_in_inspect_element_mode(bool enabled) { |
| 441 in_inspect_element_mode_ = enabled; | 441 in_inspect_element_mode_ = enabled; |
| 442 } | 442 } |
| 443 | 443 |
| 444 protected: | 444 protected: |
| 445 // RenderWidgetHost protected overrides. | 445 // RenderWidgetHost protected overrides. |
| 446 virtual bool ShouldSendToRenderer(const NativeWebKeyboardEvent& event); | 446 virtual bool ShouldSendToRenderer(const NativeWebKeyboardEvent& event); |
| 447 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); | 447 virtual bool UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 448 virtual void OnUserGesture(); | 448 virtual void OnUserGesture(); |
| 449 virtual void NotifyRendererUnresponsive(); | 449 virtual void NotifyRendererUnresponsive(); |
| 450 virtual void NotifyRendererResponsive(); | 450 virtual void NotifyRendererResponsive(); |
| 451 virtual void OnMsgFocusedNodeChanged(); | 451 virtual void OnMsgFocusedNodeChanged(); |
| 452 | 452 |
| 453 // IPC message handlers. | 453 // IPC message handlers. |
| 454 void OnMsgShowView(int route_id, | 454 void OnMsgShowView(int route_id, |
| 455 WindowOpenDisposition disposition, | 455 WindowOpenDisposition disposition, |
| 456 const gfx::Rect& initial_pos, | 456 const gfx::Rect& initial_pos, |
| 457 bool user_gesture, | 457 bool user_gesture, |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 // While in this mode, mouse click is converted into InspectElement | 660 // While in this mode, mouse click is converted into InspectElement |
| 661 // command. | 661 // command. |
| 662 bool in_inspect_element_mode_; | 662 bool in_inspect_element_mode_; |
| 663 | 663 |
| 664 NotificationRegistrar registrar_; | 664 NotificationRegistrar registrar_; |
| 665 | 665 |
| 666 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 666 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 667 }; | 667 }; |
| 668 | 668 |
| 669 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 669 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |