| 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 void CreateNewWindow(int route_id, ModalDialogEvent modal_dialog_event); | 402 void CreateNewWindow(int route_id, ModalDialogEvent modal_dialog_event); |
| 403 | 403 |
| 404 // Creates a new RenderWidget with the given route id. | 404 // Creates a new RenderWidget with the given route id. |
| 405 void CreateNewWidget(int route_id, bool activatable); | 405 void CreateNewWidget(int route_id, bool activatable); |
| 406 | 406 |
| 407 // Senf the response to an extension api call. | 407 // Senf the response to an extension api call. |
| 408 void SendExtensionResponse(int request_id, bool success, | 408 void SendExtensionResponse(int request_id, bool success, |
| 409 const std::string& response, | 409 const std::string& response, |
| 410 const std::string& error); | 410 const std::string& error); |
| 411 | 411 |
| 412 void SignalModalDialogEvent(); |
| 413 void ResetModalDialogEvent(); |
| 414 |
| 412 protected: | 415 protected: |
| 413 // RenderWidgetHost protected overrides. | 416 // RenderWidgetHost protected overrides. |
| 414 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); | 417 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 415 virtual void OnUserGesture(); | 418 virtual void OnUserGesture(); |
| 416 virtual void NotifyRendererUnresponsive(); | 419 virtual void NotifyRendererUnresponsive(); |
| 417 virtual void NotifyRendererResponsive(); | 420 virtual void NotifyRendererResponsive(); |
| 418 | 421 |
| 419 // IPC message handlers. | 422 // IPC message handlers. |
| 420 void OnMsgShowView(int route_id, | 423 void OnMsgShowView(int route_id, |
| 421 WindowOpenDisposition disposition, | 424 WindowOpenDisposition disposition, |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 | 609 |
| 607 // True if the render view can be shut down suddenly. | 610 // True if the render view can be shut down suddenly. |
| 608 bool sudden_termination_allowed_; | 611 bool sudden_termination_allowed_; |
| 609 | 612 |
| 610 NotificationRegistrar registrar_; | 613 NotificationRegistrar registrar_; |
| 611 | 614 |
| 612 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 615 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 613 }; | 616 }; |
| 614 | 617 |
| 615 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 618 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |