| 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 void set_in_inspect_element_mode(bool enabled) { | 444 void set_in_inspect_element_mode(bool enabled) { |
| 445 in_inspect_element_mode_ = enabled; | 445 in_inspect_element_mode_ = enabled; |
| 446 } | 446 } |
| 447 | 447 |
| 448 protected: | 448 protected: |
| 449 // RenderWidgetHost protected overrides. | 449 // RenderWidgetHost protected overrides. |
| 450 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); | 450 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 451 virtual void OnUserGesture(); | 451 virtual void OnUserGesture(); |
| 452 virtual void NotifyRendererUnresponsive(); | 452 virtual void NotifyRendererUnresponsive(); |
| 453 virtual void NotifyRendererResponsive(); | 453 virtual void NotifyRendererResponsive(); |
| 454 virtual void OnMsgFocusedNodeChanged(); |
| 454 | 455 |
| 455 // IPC message handlers. | 456 // IPC message handlers. |
| 456 void OnMsgShowView(int route_id, | 457 void OnMsgShowView(int route_id, |
| 457 WindowOpenDisposition disposition, | 458 WindowOpenDisposition disposition, |
| 458 const gfx::Rect& initial_pos, | 459 const gfx::Rect& initial_pos, |
| 459 bool user_gesture, | 460 bool user_gesture, |
| 460 const GURL& creator_url); | 461 const GURL& creator_url); |
| 461 void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos); | 462 void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos); |
| 462 void OnMsgRunModal(IPC::Message* reply_msg); | 463 void OnMsgRunModal(IPC::Message* reply_msg); |
| 463 void OnMsgRenderViewReady(); | 464 void OnMsgRenderViewReady(); |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 // While in this mode, mouse click is converted into InspectElement | 662 // While in this mode, mouse click is converted into InspectElement |
| 662 // command. | 663 // command. |
| 663 bool in_inspect_element_mode_; | 664 bool in_inspect_element_mode_; |
| 664 | 665 |
| 665 NotificationRegistrar registrar_; | 666 NotificationRegistrar registrar_; |
| 666 | 667 |
| 667 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 668 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 668 }; | 669 }; |
| 669 | 670 |
| 670 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 671 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |