| 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 void ViewTypeChanged(ViewType::Type type); | 436 void ViewTypeChanged(ViewType::Type type); |
| 437 | 437 |
| 438 // Tell renderer which browser window it is being attached to. | 438 // Tell renderer which browser window it is being attached to. |
| 439 void UpdateBrowserWindowId(int window_id); | 439 void UpdateBrowserWindowId(int window_id); |
| 440 | 440 |
| 441 // Tell render view that custom context action has been selected. | 441 // Tell render view that custom context action has been selected. |
| 442 void PerformCustomContextMenuAction(unsigned action); | 442 void PerformCustomContextMenuAction(unsigned action); |
| 443 | 443 |
| 444 protected: | 444 protected: |
| 445 // RenderWidgetHost protected overrides. | 445 // RenderWidgetHost protected overrides. |
| 446 virtual bool ShouldSendToRenderer(const NativeWebKeyboardEvent& event); | 446 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 447 virtual bool UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); | 447 bool* is_keyboard_shortcut); |
| 448 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 448 virtual void OnUserGesture(); | 449 virtual void OnUserGesture(); |
| 449 virtual void NotifyRendererUnresponsive(); | 450 virtual void NotifyRendererUnresponsive(); |
| 450 virtual void NotifyRendererResponsive(); | 451 virtual void NotifyRendererResponsive(); |
| 451 virtual void OnMsgFocusedNodeChanged(); | 452 virtual void OnMsgFocusedNodeChanged(); |
| 452 | 453 |
| 453 // IPC message handlers. | 454 // IPC message handlers. |
| 454 void OnMsgShowView(int route_id, | 455 void OnMsgShowView(int route_id, |
| 455 WindowOpenDisposition disposition, | 456 WindowOpenDisposition disposition, |
| 456 const gfx::Rect& initial_pos, | 457 const gfx::Rect& initial_pos, |
| 457 bool user_gesture, | 458 bool user_gesture, |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 | 664 |
| 664 // True if the render view can be shut down suddenly. | 665 // True if the render view can be shut down suddenly. |
| 665 bool sudden_termination_allowed_; | 666 bool sudden_termination_allowed_; |
| 666 | 667 |
| 667 NotificationRegistrar registrar_; | 668 NotificationRegistrar registrar_; |
| 668 | 669 |
| 669 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 670 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 670 }; | 671 }; |
| 671 | 672 |
| 672 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 673 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |