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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 void CreateNewWidget(int route_id, bool activatable); | 419 void CreateNewWidget(int route_id, bool activatable); |
420 | 420 |
421 // Senf the response to an extension api call. | 421 // Senf the response to an extension api call. |
422 void SendExtensionResponse(int request_id, bool success, | 422 void SendExtensionResponse(int request_id, bool success, |
423 const std::string& response, | 423 const std::string& response, |
424 const std::string& error); | 424 const std::string& error); |
425 | 425 |
426 void SignalModalDialogEvent(); | 426 void SignalModalDialogEvent(); |
427 void ResetModalDialogEvent(); | 427 void ResetModalDialogEvent(); |
428 | 428 |
| 429 // Tell renderer which browser window it is being attached to. |
| 430 void UpdateBrowserWindowId(int window_id); |
| 431 |
429 void set_in_inspect_element_mode(bool enabled) { | 432 void set_in_inspect_element_mode(bool enabled) { |
430 in_inspect_element_mode_ = enabled; | 433 in_inspect_element_mode_ = enabled; |
431 } | 434 } |
432 | 435 |
433 protected: | 436 protected: |
434 // RenderWidgetHost protected overrides. | 437 // RenderWidgetHost protected overrides. |
435 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); | 438 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); |
436 virtual void OnUserGesture(); | 439 virtual void OnUserGesture(); |
437 virtual void NotifyRendererUnresponsive(); | 440 virtual void NotifyRendererUnresponsive(); |
438 virtual void NotifyRendererResponsive(); | 441 virtual void NotifyRendererResponsive(); |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 // While in this mode, mouse click is converted into InspectElement | 648 // While in this mode, mouse click is converted into InspectElement |
646 // command. | 649 // command. |
647 bool in_inspect_element_mode_; | 650 bool in_inspect_element_mode_; |
648 | 651 |
649 NotificationRegistrar registrar_; | 652 NotificationRegistrar registrar_; |
650 | 653 |
651 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 654 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
652 }; | 655 }; |
653 | 656 |
654 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 657 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |