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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
455 const std::string& target_lang); | 455 const std::string& target_lang); |
456 | 456 |
457 // Reverts the text of current page to its original (non-translated) contents. | 457 // Reverts the text of current page to its original (non-translated) contents. |
458 void RevertTranslation(int page_id); | 458 void RevertTranslation(int page_id); |
459 | 459 |
460 // Informs renderer of updated content settings. | 460 // Informs renderer of updated content settings. |
461 void SendContentSettings(const GURL& url, | 461 void SendContentSettings(const GURL& url, |
462 const ContentSettings& settings); | 462 const ContentSettings& settings); |
463 | 463 |
464 // Tells the renderer to notify us when the page contents preferred size | 464 // Tells the renderer to notify us when the page contents preferred size |
465 // changed. | 465 // changed. |
Jay Civelli
2010/05/24 17:17:56
Could you add a comment on where these flags are d
Nico
2010/05/24 17:25:16
Done.
| |
466 void EnablePreferredSizeChangedMode(); | 466 void EnablePreferredSizeChangedMode(int flags); |
467 | 467 |
468 protected: | 468 protected: |
469 // RenderWidgetHost protected overrides. | 469 // RenderWidgetHost protected overrides. |
470 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 470 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
471 bool* is_keyboard_shortcut); | 471 bool* is_keyboard_shortcut); |
472 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); | 472 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); |
473 virtual void OnUserGesture(); | 473 virtual void OnUserGesture(); |
474 virtual void NotifyRendererUnresponsive(); | 474 virtual void NotifyRendererUnresponsive(); |
475 virtual void NotifyRendererResponsive(); | 475 virtual void NotifyRendererResponsive(); |
476 virtual void OnMsgFocusedNodeChanged(); | 476 virtual void OnMsgFocusedNodeChanged(); |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
707 int64 session_storage_namespace_id_; | 707 int64 session_storage_namespace_id_; |
708 | 708 |
709 // Whether this render view will be used for extensions. This controls | 709 // Whether this render view will be used for extensions. This controls |
710 // what process type we use. | 710 // what process type we use. |
711 bool is_extension_process_; | 711 bool is_extension_process_; |
712 | 712 |
713 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 713 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
714 }; | 714 }; |
715 | 715 |
716 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 716 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |