| 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 |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 12 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| 13 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 13 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
| 14 #include "chrome/browser/renderer_host/render_widget_host.h" | 14 #include "chrome/browser/renderer_host/render_widget_host.h" |
| 15 #include "chrome/common/modal_dialog_event.h" | 15 #include "chrome/common/modal_dialog_event.h" |
| 16 #include "chrome/common/notification_registrar.h" | 16 #include "chrome/common/notification_registrar.h" |
| 17 #include "chrome/common/page_zoom.h" | 17 #include "chrome/common/page_zoom.h" |
| 18 #include "webkit/api/public/WebConsoleMessage.h" | 18 #include "webkit/api/public/WebConsoleMessage.h" |
| 19 #include "webkit/glue/autofill_form.h" | 19 #include "webkit/glue/autofill_form.h" |
| 20 #include "webkit/glue/password_form_dom_manager.h" | 20 #include "webkit/glue/password_form_dom_manager.h" |
| 21 #include "webkit/glue/window_open_disposition.h" | 21 #include "webkit/glue/window_open_disposition.h" |
| 22 | 22 |
| 23 class RenderViewHostDelegate; | 23 class RenderViewHostDelegate; |
| 24 class SiteInstance; | 24 class SiteInstance; |
| 25 class SkBitmap; | 25 class SkBitmap; |
| 26 class ViewMsg_Navigate; | 26 class ViewMsg_Navigate; |
| 27 struct ContextMenuParams; | 27 struct ContextMenuParams; |
| 28 struct MediaPlayerAction; |
| 28 struct ViewHostMsg_DidPrintPage_Params; | 29 struct ViewHostMsg_DidPrintPage_Params; |
| 29 struct ViewMsg_Navigate_Params; | 30 struct ViewMsg_Navigate_Params; |
| 30 struct WebDropData; | 31 struct WebDropData; |
| 31 struct WebPreferences; | 32 struct WebPreferences; |
| 32 | 33 |
| 33 namespace base { | 34 namespace base { |
| 34 class WaitableEvent; | 35 class WaitableEvent; |
| 35 } | 36 } |
| 36 | 37 |
| 37 namespace gfx { | 38 namespace gfx { |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 const std::wstring& prompt); | 289 const std::wstring& prompt); |
| 289 | 290 |
| 290 // This function is called when the JavaScript message box window has been | 291 // This function is called when the JavaScript message box window has been |
| 291 // destroyed. | 292 // destroyed. |
| 292 void JavaScriptMessageBoxWindowDestroyed(); | 293 void JavaScriptMessageBoxWindowDestroyed(); |
| 293 | 294 |
| 294 // Notifies the RenderView that the modal html dialog has been closed. | 295 // Notifies the RenderView that the modal html dialog has been closed. |
| 295 void ModalHTMLDialogClosed(IPC::Message* reply_msg, | 296 void ModalHTMLDialogClosed(IPC::Message* reply_msg, |
| 296 const std::string& json_retval); | 297 const std::string& json_retval); |
| 297 | 298 |
| 299 // Send an action to the media player element located at |x|, |y|. |
| 300 void MediaPlayerActionAt(int x, int y, const MediaPlayerAction& action); |
| 301 |
| 298 // Copies the image at the specified point. | 302 // Copies the image at the specified point. |
| 299 void CopyImageAt(int x, int y); | 303 void CopyImageAt(int x, int y); |
| 300 | 304 |
| 301 // Notifies the renderer that a drag and drop was cancelled. This is | 305 // Notifies the renderer that a drag and drop was cancelled. This is |
| 302 // necessary because the render may be the one that started the drag. | 306 // necessary because the render may be the one that started the drag. |
| 303 void DragSourceCancelledAt( | 307 void DragSourceCancelledAt( |
| 304 int client_x, int client_y, int screen_x, int screen_y); | 308 int client_x, int client_y, int screen_x, int screen_y); |
| 305 | 309 |
| 306 // Notifies the renderer that a drop occurred. This is necessary because the | 310 // Notifies the renderer that a drop occurred. This is necessary because the |
| 307 // render may be the one that started the drag. | 311 // render may be the one that started the drag. |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 // While in this mode, mouse click is converted into InspectElement | 631 // While in this mode, mouse click is converted into InspectElement |
| 628 // command. | 632 // command. |
| 629 bool in_inspect_element_mode_; | 633 bool in_inspect_element_mode_; |
| 630 | 634 |
| 631 NotificationRegistrar registrar_; | 635 NotificationRegistrar registrar_; |
| 632 | 636 |
| 633 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 637 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 634 }; | 638 }; |
| 635 | 639 |
| 636 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 640 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |