| 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 void CreateNewWidget(int route_id, bool activatable); | 417 void CreateNewWidget(int route_id, bool activatable); |
| 418 | 418 |
| 419 // Senf the response to an extension api call. | 419 // Senf the response to an extension api call. |
| 420 void SendExtensionResponse(int request_id, bool success, | 420 void SendExtensionResponse(int request_id, bool success, |
| 421 const std::string& response, | 421 const std::string& response, |
| 422 const std::string& error); | 422 const std::string& error); |
| 423 | 423 |
| 424 protected: | 424 protected: |
| 425 // RenderWidgetHost protected overrides. | 425 // RenderWidgetHost protected overrides. |
| 426 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); | 426 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 427 virtual void UnhandledMouseButtonEvent(const WebKit::WebMouseEvent* event); |
| 427 virtual void OnUserGesture(); | 428 virtual void OnUserGesture(); |
| 428 virtual void NotifyRendererUnresponsive(); | 429 virtual void NotifyRendererUnresponsive(); |
| 429 virtual void NotifyRendererResponsive(); | 430 virtual void NotifyRendererResponsive(); |
| 430 | 431 |
| 431 // IPC message handlers. | 432 // IPC message handlers. |
| 432 void OnMsgShowView(int route_id, | 433 void OnMsgShowView(int route_id, |
| 433 WindowOpenDisposition disposition, | 434 WindowOpenDisposition disposition, |
| 434 const gfx::Rect& initial_pos, | 435 const gfx::Rect& initial_pos, |
| 435 bool user_gesture, | 436 bool user_gesture, |
| 436 const GURL& creator_url); | 437 const GURL& creator_url); |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 // not an extension. | 610 // not an extension. |
| 610 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 611 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
| 611 | 612 |
| 612 // True if the render view can be shut down suddenly. | 613 // True if the render view can be shut down suddenly. |
| 613 bool sudden_termination_allowed_; | 614 bool sudden_termination_allowed_; |
| 614 | 615 |
| 615 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 616 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 616 }; | 617 }; |
| 617 | 618 |
| 618 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 619 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |