| 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/notification_registrar.h" | 15 #include "chrome/common/notification_registrar.h" |
| 16 #include "chrome/common/notification_type.h" | 16 #include "chrome/common/notification_type.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/api/public/WebDragOperation.h" | 19 #include "webkit/api/public/WebDragOperation.h" |
| 20 #include "webkit/api/public/WebTextDirection.h" | 20 #include "webkit/api/public/WebTextDirection.h" |
| 21 #include "webkit/glue/autofill_form.h" | 21 #include "webkit/glue/autofill_form.h" |
| 22 #include "webkit/glue/password_form_dom_manager.h" | 22 #include "webkit/glue/password_form_dom_manager.h" |
| 23 #include "webkit/glue/window_open_disposition.h" | 23 #include "webkit/glue/window_open_disposition.h" |
| 24 | 24 |
| 25 class ListValue; |
| 25 class RenderViewHostDelegate; | 26 class RenderViewHostDelegate; |
| 26 class SiteInstance; | 27 class SiteInstance; |
| 27 class SkBitmap; | 28 class SkBitmap; |
| 28 class ViewMsg_Navigate; | 29 class ViewMsg_Navigate; |
| 29 struct ContextMenuParams; | 30 struct ContextMenuParams; |
| 30 struct MediaPlayerAction; | 31 struct MediaPlayerAction; |
| 31 struct ViewHostMsg_DidPrintPage_Params; | 32 struct ViewHostMsg_DidPrintPage_Params; |
| 32 struct ViewMsg_Navigate_Params; | 33 struct ViewMsg_Navigate_Params; |
| 33 struct WebDropData; | 34 struct WebDropData; |
| 34 struct WebPreferences; | 35 struct WebPreferences; |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 void OnDidGetApplicationInfo(int32 page_id, | 565 void OnDidGetApplicationInfo(int32 page_id, |
| 565 const webkit_glue::WebApplicationInfo& info); | 566 const webkit_glue::WebApplicationInfo& info); |
| 566 void OnMsgShouldCloseACK(bool proceed); | 567 void OnMsgShouldCloseACK(bool proceed); |
| 567 void OnQueryFormFieldAutofill(const std::wstring& field_name, | 568 void OnQueryFormFieldAutofill(const std::wstring& field_name, |
| 568 const std::wstring& user_text, | 569 const std::wstring& user_text, |
| 569 int64 node_id, | 570 int64 node_id, |
| 570 int request_id); | 571 int request_id); |
| 571 void OnRemoveAutofillEntry(const std::wstring& field_name, | 572 void OnRemoveAutofillEntry(const std::wstring& field_name, |
| 572 const std::wstring& value); | 573 const std::wstring& value); |
| 573 | 574 |
| 574 void OnExtensionRequest(const std::string& name, const std::string& args, | 575 void OnExtensionRequest(const std::string& name, const ListValue& args, |
| 575 int request_id, bool has_callback); | 576 int request_id, bool has_callback); |
| 576 void OnExtensionPostMessage(int port_id, const std::string& message); | 577 void OnExtensionPostMessage(int port_id, const std::string& message); |
| 577 void OnAccessibilityFocusChange(int acc_obj_id); | 578 void OnAccessibilityFocusChange(int acc_obj_id); |
| 578 void OnCSSInserted(); | 579 void OnCSSInserted(); |
| 579 | 580 |
| 580 private: | 581 private: |
| 581 friend class TestRenderViewHost; | 582 friend class TestRenderViewHost; |
| 582 | 583 |
| 583 void UpdateBackForwardListCount(); | 584 void UpdateBackForwardListCount(); |
| 584 | 585 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 // While in this mode, mouse click is converted into InspectElement | 652 // While in this mode, mouse click is converted into InspectElement |
| 652 // command. | 653 // command. |
| 653 bool in_inspect_element_mode_; | 654 bool in_inspect_element_mode_; |
| 654 | 655 |
| 655 NotificationRegistrar registrar_; | 656 NotificationRegistrar registrar_; |
| 656 | 657 |
| 657 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 658 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 658 }; | 659 }; |
| 659 | 660 |
| 660 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 661 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |