| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 | 431 |
| 432 // Notifies the renderer that its view type has changed. | 432 // Notifies the renderer that its view type has changed. |
| 433 void ViewTypeChanged(ViewType::Type type); | 433 void ViewTypeChanged(ViewType::Type type); |
| 434 | 434 |
| 435 // Tells the renderer which browser window it is being attached to. | 435 // Tells the renderer which browser window it is being attached to. |
| 436 void UpdateBrowserWindowId(int window_id); | 436 void UpdateBrowserWindowId(int window_id); |
| 437 | 437 |
| 438 // Tells the render view that a custom context action has been selected. | 438 // Tells the render view that a custom context action has been selected. |
| 439 void PerformCustomContextMenuAction(unsigned action); | 439 void PerformCustomContextMenuAction(unsigned action); |
| 440 | 440 |
| 441 // Tells the renderer to translate the current page from one language to |
| 442 // another. If the current page id is not |page_id|, the request is ignored. |
| 443 void TranslatePage(int page_id, |
| 444 const std::string& source_lang, |
| 445 const std::string& target_lang); |
| 446 |
| 441 protected: | 447 protected: |
| 442 // RenderWidgetHost protected overrides. | 448 // RenderWidgetHost protected overrides. |
| 443 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 449 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 444 bool* is_keyboard_shortcut); | 450 bool* is_keyboard_shortcut); |
| 445 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); | 451 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 446 virtual void OnUserGesture(); | 452 virtual void OnUserGesture(); |
| 447 virtual void NotifyRendererUnresponsive(); | 453 virtual void NotifyRendererUnresponsive(); |
| 448 virtual void NotifyRendererResponsive(); | 454 virtual void NotifyRendererResponsive(); |
| 449 virtual void OnMsgFocusedNodeChanged(); | 455 virtual void OnMsgFocusedNodeChanged(); |
| 450 | 456 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 // True if the render view can be shut down suddenly. | 666 // True if the render view can be shut down suddenly. |
| 661 bool sudden_termination_allowed_; | 667 bool sudden_termination_allowed_; |
| 662 | 668 |
| 663 // The session storage namespace id to be used by the associated render view. | 669 // The session storage namespace id to be used by the associated render view. |
| 664 int64 session_storage_namespace_id_; | 670 int64 session_storage_namespace_id_; |
| 665 | 671 |
| 666 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 672 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 667 }; | 673 }; |
| 668 | 674 |
| 669 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 675 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |