OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 int32 routing_id, | 193 int32 routing_id, |
194 int32 main_frame_routing_id, | 194 int32 main_frame_routing_id, |
195 int32 surface_id, | 195 int32 surface_id, |
196 int64 session_storage_namespace_id, | 196 int64 session_storage_namespace_id, |
197 const base::string16& frame_name, | 197 const base::string16& frame_name, |
198 bool is_renderer_created, | 198 bool is_renderer_created, |
199 bool swapped_out, | 199 bool swapped_out, |
200 bool hidden, | 200 bool hidden, |
201 int32 next_page_id, | 201 int32 next_page_id, |
202 const blink::WebScreenInfo& screen_info, | 202 const blink::WebScreenInfo& screen_info, |
203 AccessibilityMode accessibility_mode, | 203 unsigned int accessibility_mode, |
204 bool allow_partial_swap); | 204 bool allow_partial_swap); |
205 | 205 |
206 // Used by content_layouttest_support to hook into the creation of | 206 // Used by content_layouttest_support to hook into the creation of |
207 // RenderViewImpls. | 207 // RenderViewImpls. |
208 static void InstallCreateHook( | 208 static void InstallCreateHook( |
209 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); | 209 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); |
210 | 210 |
211 // Returns the RenderViewImpl containing the given WebView. | 211 // Returns the RenderViewImpl containing the given WebView. |
212 static RenderViewImpl* FromWebView(blink::WebView* webview); | 212 static RenderViewImpl* FromWebView(blink::WebView* webview); |
213 | 213 |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 void OnMoveOrResizeStarted(); | 944 void OnMoveOrResizeStarted(); |
945 void OnNavigate(const ViewMsg_Navigate_Params& params); | 945 void OnNavigate(const ViewMsg_Navigate_Params& params); |
946 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); | 946 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); |
947 void OnReleaseDisambiguationPopupDIB(TransportDIB::Handle dib_handle); | 947 void OnReleaseDisambiguationPopupDIB(TransportDIB::Handle dib_handle); |
948 void OnReloadFrame(); | 948 void OnReloadFrame(); |
949 void OnResetPageEncodingToDefault(); | 949 void OnResetPageEncodingToDefault(); |
950 void OnScriptEvalRequest(const base::string16& frame_xpath, | 950 void OnScriptEvalRequest(const base::string16& frame_xpath, |
951 const base::string16& jscript, | 951 const base::string16& jscript, |
952 int id, | 952 int id, |
953 bool notify_result); | 953 bool notify_result); |
954 void OnSetAccessibilityMode(AccessibilityMode new_mode); | 954 void OnSetAccessibilityMode(unsigned int new_mode); |
955 void OnSetActive(bool active); | 955 void OnSetActive(bool active); |
956 void OnSetBackground(const SkBitmap& background); | 956 void OnSetBackground(const SkBitmap& background); |
957 void OnSetCompositionFromExistingText( | 957 void OnSetCompositionFromExistingText( |
958 int start, int end, | 958 int start, int end, |
959 const std::vector<blink::WebCompositionUnderline>& underlines); | 959 const std::vector<blink::WebCompositionUnderline>& underlines); |
960 void OnExitFullscreen(); | 960 void OnExitFullscreen(); |
961 void OnSetEditableSelectionOffsets(int start, int end); | 961 void OnSetEditableSelectionOffsets(int start, int end); |
962 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); | 962 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); |
963 void OnSetInitialFocus(bool reverse); | 963 void OnSetInitialFocus(bool reverse); |
964 void OnSetPageEncoding(const std::string& encoding_name); | 964 void OnSetPageEncoding(const std::string& encoding_name); |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1338 // MediaStreamClient attached to this view; lazily initialized. | 1338 // MediaStreamClient attached to this view; lazily initialized. |
1339 MediaStreamClient* media_stream_client_; | 1339 MediaStreamClient* media_stream_client_; |
1340 blink::WebUserMediaClient* web_user_media_client_; | 1340 blink::WebUserMediaClient* web_user_media_client_; |
1341 | 1341 |
1342 // MidiClient attached to this view; lazily initialized. | 1342 // MidiClient attached to this view; lazily initialized. |
1343 MidiDispatcher* midi_dispatcher_; | 1343 MidiDispatcher* midi_dispatcher_; |
1344 | 1344 |
1345 DevToolsAgent* devtools_agent_; | 1345 DevToolsAgent* devtools_agent_; |
1346 | 1346 |
1347 // The current accessibility mode. | 1347 // The current accessibility mode. |
1348 AccessibilityMode accessibility_mode_; | 1348 unsigned int accessibility_mode_; |
1349 | 1349 |
1350 // Only valid if |accessibility_mode_| is anything other than | 1350 // Only valid if |accessibility_mode_| is anything other than |
1351 // AccessibilityModeOff. | 1351 // AccessibilityModeOff. |
1352 RendererAccessibility* renderer_accessibility_; | 1352 RendererAccessibility* renderer_accessibility_; |
1353 | 1353 |
1354 // Mouse Lock dispatcher attached to this view. | 1354 // Mouse Lock dispatcher attached to this view. |
1355 MouseLockDispatcher* mouse_lock_dispatcher_; | 1355 MouseLockDispatcher* mouse_lock_dispatcher_; |
1356 | 1356 |
1357 #if defined(OS_ANDROID) | 1357 #if defined(OS_ANDROID) |
1358 // Android Specific --------------------------------------------------------- | 1358 // Android Specific --------------------------------------------------------- |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1477 // use the Observer interface to filter IPC messages and receive frame change | 1477 // use the Observer interface to filter IPC messages and receive frame change |
1478 // notifications. | 1478 // notifications. |
1479 // --------------------------------------------------------------------------- | 1479 // --------------------------------------------------------------------------- |
1480 | 1480 |
1481 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1481 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1482 }; | 1482 }; |
1483 | 1483 |
1484 } // namespace content | 1484 } // namespace content |
1485 | 1485 |
1486 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1486 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |