| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 namespace net { | 41 namespace net { |
| 42 enum LoadState; | 42 enum LoadState; |
| 43 } | 43 } |
| 44 | 44 |
| 45 namespace webkit_glue { | 45 namespace webkit_glue { |
| 46 class AutofillForm; | 46 class AutofillForm; |
| 47 struct WebApplicationInfo; | 47 struct WebApplicationInfo; |
| 48 } | 48 } |
| 49 | 49 |
| 50 namespace WebKit { |
| 51 struct WebMediaPlayerAction; |
| 52 } |
| 53 |
| 50 // | 54 // |
| 51 // RenderViewHost | 55 // RenderViewHost |
| 52 // | 56 // |
| 53 // A RenderViewHost is responsible for creating and talking to a RenderView | 57 // A RenderViewHost is responsible for creating and talking to a RenderView |
| 54 // object in a child process. It exposes a high level API to users, for things | 58 // object in a child process. It exposes a high level API to users, for things |
| 55 // like loading pages, adjusting the display and other browser functionality, | 59 // like loading pages, adjusting the display and other browser functionality, |
| 56 // which it translates into IPC messages sent over the IPC channel with the | 60 // which it translates into IPC messages sent over the IPC channel with the |
| 57 // RenderView. It responds to all IPC messages sent by that RenderView and | 61 // RenderView. It responds to all IPC messages sent by that RenderView and |
| 58 // cracks them, calling a delegate object back with higher level types where | 62 // cracks them, calling a delegate object back with higher level types where |
| 59 // possible. | 63 // possible. |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 // Notifies the RenderView that the JavaScript message that was shown was | 296 // Notifies the RenderView that the JavaScript message that was shown was |
| 293 // closed by the user. | 297 // closed by the user. |
| 294 void JavaScriptMessageBoxClosed(IPC::Message* reply_msg, | 298 void JavaScriptMessageBoxClosed(IPC::Message* reply_msg, |
| 295 bool success, | 299 bool success, |
| 296 const std::wstring& prompt); | 300 const std::wstring& prompt); |
| 297 | 301 |
| 298 // Notifies the RenderView that the modal html dialog has been closed. | 302 // Notifies the RenderView that the modal html dialog has been closed. |
| 299 void ModalHTMLDialogClosed(IPC::Message* reply_msg, | 303 void ModalHTMLDialogClosed(IPC::Message* reply_msg, |
| 300 const std::string& json_retval); | 304 const std::string& json_retval); |
| 301 | 305 |
| 302 // Send an action to the media player element located at |x|, |y|. | 306 // Send an action to the media player element located at |location|. |
| 303 void MediaPlayerActionAt(int x, int y, const MediaPlayerAction& action); | 307 void MediaPlayerActionAt(const gfx::Point& location, |
| 308 const WebKit::WebMediaPlayerAction& action); |
| 304 | 309 |
| 305 // Copies the image at the specified point. | 310 // Copies the image at the specified point. |
| 306 void CopyImageAt(int x, int y); | 311 void CopyImageAt(int x, int y); |
| 307 | 312 |
| 308 // Notifies the renderer that a a drag operation that it started has ended, | 313 // Notifies the renderer that a a drag operation that it started has ended, |
| 309 // either in a drop or by being cancelled. | 314 // either in a drop or by being cancelled. |
| 310 void DragSourceEndedAt( | 315 void DragSourceEndedAt( |
| 311 int client_x, int client_y, int screen_x, int screen_y, | 316 int client_x, int client_y, int screen_x, int screen_y, |
| 312 WebKit::WebDragOperation operation); | 317 WebKit::WebDragOperation operation); |
| 313 | 318 |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 // While in this mode, mouse click is converted into InspectElement | 657 // While in this mode, mouse click is converted into InspectElement |
| 653 // command. | 658 // command. |
| 654 bool in_inspect_element_mode_; | 659 bool in_inspect_element_mode_; |
| 655 | 660 |
| 656 NotificationRegistrar registrar_; | 661 NotificationRegistrar registrar_; |
| 657 | 662 |
| 658 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 663 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 659 }; | 664 }; |
| 660 | 665 |
| 661 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 666 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |