OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "chrome/renderer/form_manager.h" | 38 #include "chrome/renderer/form_manager.h" |
39 #include "chrome/renderer/notification_provider.h" | 39 #include "chrome/renderer/notification_provider.h" |
40 #include "chrome/renderer/render_widget.h" | 40 #include "chrome/renderer/render_widget.h" |
41 #include "chrome/renderer/render_view_visitor.h" | 41 #include "chrome/renderer/render_view_visitor.h" |
42 #include "chrome/renderer/renderer_webcookiejar_impl.h" | 42 #include "chrome/renderer/renderer_webcookiejar_impl.h" |
43 #include "chrome/renderer/translate_helper.h" | 43 #include "chrome/renderer/translate_helper.h" |
44 #include "gfx/point.h" | 44 #include "gfx/point.h" |
45 #include "gfx/rect.h" | 45 #include "gfx/rect.h" |
46 #include "third_party/skia/include/core/SkBitmap.h" | 46 #include "third_party/skia/include/core/SkBitmap.h" |
47 #include "testing/gtest/include/gtest/gtest_prod.h" | 47 #include "testing/gtest/include/gtest/gtest_prod.h" |
48 #include "third_party/WebKit/WebKit/chromium/public/WebAccessibilityObject.h" | |
49 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h" | 48 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h" |
50 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h" | 49 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h" |
51 #include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h" | 50 #include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h" |
52 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerAction.h" | 51 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerAction.h" |
53 #include "third_party/WebKit/WebKit/chromium/public/WebNode.h" | 52 #include "third_party/WebKit/WebKit/chromium/public/WebNode.h" |
54 #include "third_party/WebKit/WebKit/chromium/public/WebPageSerializerClient.h" | 53 #include "third_party/WebKit/WebKit/chromium/public/WebPageSerializerClient.h" |
55 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" | 54 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" |
56 #include "third_party/WebKit/WebKit/chromium/public/WebView.h" | 55 #include "third_party/WebKit/WebKit/chromium/public/WebView.h" |
57 #include "third_party/WebKit/WebKit/chromium/public/WebViewClient.h" | 56 #include "third_party/WebKit/WebKit/chromium/public/WebViewClient.h" |
58 #include "third_party/WebKit/WebKit/chromium/public/WebNavigationType.h" | 57 #include "third_party/WebKit/WebKit/chromium/public/WebNavigationType.h" |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 void OnSetExtensionViewMode(const std::string& mode); | 489 void OnSetExtensionViewMode(const std::string& mode); |
491 | 490 |
492 const WebPreferences& webkit_preferences() const { | 491 const WebPreferences& webkit_preferences() const { |
493 return webkit_preferences_; | 492 return webkit_preferences_; |
494 } | 493 } |
495 | 494 |
496 // Called when the "idle" user script state has been reached. See | 495 // Called when the "idle" user script state has been reached. See |
497 // UserScript::DOCUMENT_IDLE. | 496 // UserScript::DOCUMENT_IDLE. |
498 void OnUserScriptIdleTriggered(WebKit::WebFrame* frame); | 497 void OnUserScriptIdleTriggered(WebKit::WebFrame* frame); |
499 | 498 |
500 void OnGetAccessibilityTree(); | |
501 | |
502 #if defined(OS_MACOSX) | 499 #if defined(OS_MACOSX) |
503 // Helper routines for GPU plugin support. Used by the | 500 // Helper routines for GPU plugin support. Used by the |
504 // WebPluginDelegateProxy, which has a pointer to the RenderView. | 501 // WebPluginDelegateProxy, which has a pointer to the RenderView. |
505 gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque); | 502 gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque); |
506 void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); | 503 void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); |
507 void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, | 504 void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, |
508 int32 width, | 505 int32 width, |
509 int32 height, | 506 int32 height, |
510 uint64 io_surface_identifier); | 507 uint64 io_surface_identifier); |
511 TransportDIB::Handle AcceleratedSurfaceAllocTransportDIB(size_t size); | 508 TransportDIB::Handle AcceleratedSurfaceAllocTransportDIB(size_t size); |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 void OnDisableScrollbarsForSmallWindows( | 722 void OnDisableScrollbarsForSmallWindows( |
726 const gfx::Size& disable_scrollbars_size_limit); | 723 const gfx::Size& disable_scrollbars_size_limit); |
727 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 724 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
728 void OnMediaPlayerActionAt(const gfx::Point& location, | 725 void OnMediaPlayerActionAt(const gfx::Point& location, |
729 const WebKit::WebMediaPlayerAction& action); | 726 const WebKit::WebMediaPlayerAction& action); |
730 void OnNotifyRendererViewType(ViewType::Type view_type); | 727 void OnNotifyRendererViewType(ViewType::Type view_type); |
731 void OnUpdateBrowserWindowId(int window_id); | 728 void OnUpdateBrowserWindowId(int window_id); |
732 void OnExecuteCode(const ViewMsg_ExecuteCode_Params& params); | 729 void OnExecuteCode(const ViewMsg_ExecuteCode_Params& params); |
733 void ExecuteCodeImpl(WebKit::WebFrame* frame, | 730 void ExecuteCodeImpl(WebKit::WebFrame* frame, |
734 const ViewMsg_ExecuteCode_Params& params); | 731 const ViewMsg_ExecuteCode_Params& params); |
| 732 void OnGetAccessibilityInfo( |
| 733 const webkit_glue::WebAccessibility::InParams& in_params, |
| 734 webkit_glue::WebAccessibility::OutParams* out_params); |
| 735 void OnClearAccessibilityInfo(int acc_obj_id, bool clear_all); |
735 | 736 |
736 void OnExtensionMessageInvoke(const std::string& function_name, | 737 void OnExtensionMessageInvoke(const std::string& function_name, |
737 const ListValue& args, | 738 const ListValue& args, |
738 bool requires_incognito_access, | 739 bool requires_incognito_access, |
739 const GURL& event_url); | 740 const GURL& event_url); |
740 | 741 |
741 void OnMoveOrResizeStarted(); | 742 void OnMoveOrResizeStarted(); |
742 | 743 |
743 // Checks if the RenderView should close, runs the beforeunload handler and | 744 // Checks if the RenderView should close, runs the beforeunload handler and |
744 // sends ViewMsg_ShouldClose to the browser. | 745 // sends ViewMsg_ShouldClose to the browser. |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 // to a common opener. This count is shared among all RenderViews created | 1056 // to a common opener. This count is shared among all RenderViews created |
1056 // with createView(). All popups are treated as unrequested until | 1057 // with createView(). All popups are treated as unrequested until |
1057 // specifically instructed otherwise by the Browser process. | 1058 // specifically instructed otherwise by the Browser process. |
1058 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_; | 1059 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_; |
1059 | 1060 |
1060 // Whether this is a top level window (instead of a popup). Top level windows | 1061 // Whether this is a top level window (instead of a popup). Top level windows |
1061 // shouldn't count against their own |shared_popup_counter_|. | 1062 // shouldn't count against their own |shared_popup_counter_|. |
1062 bool decrement_shared_popup_at_destruction_; | 1063 bool decrement_shared_popup_at_destruction_; |
1063 | 1064 |
1064 // TODO(port): revisit once we have accessibility | 1065 // TODO(port): revisit once we have accessibility |
1065 | 1066 #if defined(OS_WIN) |
1066 // Handles accessibility requests into the renderer side, as well as | 1067 // Handles accessibility requests into the renderer side, as well as |
1067 // maintains the cache and other features of the accessibility tree. | 1068 // maintains the cache and other features of the accessibility tree. |
1068 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_; | 1069 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_; |
| 1070 #endif |
1069 | 1071 |
1070 // Resource message queue. Used to queue up resource IPCs if we need | 1072 // Resource message queue. Used to queue up resource IPCs if we need |
1071 // to wait for an ACK from the browser before proceeding. | 1073 // to wait for an ACK from the browser before proceeding. |
1072 std::queue<IPC::Message*> queued_resource_messages_; | 1074 std::queue<IPC::Message*> queued_resource_messages_; |
1073 | 1075 |
1074 // The id of the last request sent for form field autofill. Used to ignore | 1076 // The id of the last request sent for form field autofill. Used to ignore |
1075 // out of date responses. | 1077 // out of date responses. |
1076 int autofill_query_id_; | 1078 int autofill_query_id_; |
1077 | 1079 |
1078 // The id of the node corresponding to the last request sent for form field | 1080 // The id of the node corresponding to the last request sent for form field |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1214 | 1216 |
1215 // Site isolation metrics flags. These are per-page-load counts, reset to 0 | 1217 // Site isolation metrics flags. These are per-page-load counts, reset to 0 |
1216 // in OnClosePage. | 1218 // in OnClosePage. |
1217 int cross_origin_access_count_; | 1219 int cross_origin_access_count_; |
1218 int same_origin_access_count_; | 1220 int same_origin_access_count_; |
1219 | 1221 |
1220 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1222 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1221 }; | 1223 }; |
1222 | 1224 |
1223 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1225 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |