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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
187 int32 routing_id, | 187 int32 routing_id, |
188 int32 main_frame_routing_id, | 188 int32 main_frame_routing_id, |
189 int32 surface_id, | 189 int32 surface_id, |
190 int64 session_storage_namespace_id, | 190 int64 session_storage_namespace_id, |
191 const base::string16& frame_name, | 191 const base::string16& frame_name, |
192 bool is_renderer_created, | 192 bool is_renderer_created, |
193 bool swapped_out, | 193 bool swapped_out, |
194 bool hidden, | 194 bool hidden, |
195 int32 next_page_id, | 195 int32 next_page_id, |
196 const blink::WebScreenInfo& screen_info, | 196 const blink::WebScreenInfo& screen_info, |
197 AccessibilityMode accessibility_mode, | 197 unsigned int accessibility_mode, |
198 bool allow_partial_swap); | 198 bool allow_partial_swap); |
199 | 199 |
200 // Used by content_layouttest_support to hook into the creation of | 200 // Used by content_layouttest_support to hook into the creation of |
201 // RenderViewImpls. | 201 // RenderViewImpls. |
202 static void InstallCreateHook( | 202 static void InstallCreateHook( |
203 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); | 203 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); |
204 | 204 |
205 // Returns the RenderViewImpl containing the given WebView. | 205 // Returns the RenderViewImpl containing the given WebView. |
206 static RenderViewImpl* FromWebView(blink::WebView* webview); | 206 static RenderViewImpl* FromWebView(blink::WebView* webview); |
207 | 207 |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
950 void OnMoveOrResizeStarted(); | 950 void OnMoveOrResizeStarted(); |
951 void OnNavigate(const ViewMsg_Navigate_Params& params); | 951 void OnNavigate(const ViewMsg_Navigate_Params& params); |
952 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); | 952 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); |
953 void OnReleaseDisambiguationPopupDIB(TransportDIB::Handle dib_handle); | 953 void OnReleaseDisambiguationPopupDIB(TransportDIB::Handle dib_handle); |
954 void OnReloadFrame(); | 954 void OnReloadFrame(); |
955 void OnResetPageEncodingToDefault(); | 955 void OnResetPageEncodingToDefault(); |
956 void OnScriptEvalRequest(const base::string16& frame_xpath, | 956 void OnScriptEvalRequest(const base::string16& frame_xpath, |
957 const base::string16& jscript, | 957 const base::string16& jscript, |
958 int id, | 958 int id, |
959 bool notify_result); | 959 bool notify_result); |
960 void OnSetAccessibilityMode(AccessibilityMode new_mode); | 960 void OnSetAccessibilityMode(unsigned int new_mode); |
961 void OnSetActive(bool active); | 961 void OnSetActive(bool active); |
962 void OnSetBackground(const SkBitmap& background); | 962 void OnSetBackground(const SkBitmap& background); |
963 void OnSetCompositionFromExistingText( | 963 void OnSetCompositionFromExistingText( |
964 int start, int end, | 964 int start, int end, |
965 const std::vector<blink::WebCompositionUnderline>& underlines); | 965 const std::vector<blink::WebCompositionUnderline>& underlines); |
966 void OnExitFullscreen(); | 966 void OnExitFullscreen(); |
967 void OnSetEditableSelectionOffsets(int start, int end); | 967 void OnSetEditableSelectionOffsets(int start, int end); |
968 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); | 968 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); |
969 void OnSetInitialFocus(bool reverse); | 969 void OnSetInitialFocus(bool reverse); |
970 void OnSetPageEncoding(const std::string& encoding_name); | 970 void OnSetPageEncoding(const std::string& encoding_name); |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1365 // MediaStreamClient attached to this view; lazily initialized. | 1365 // MediaStreamClient attached to this view; lazily initialized. |
1366 MediaStreamClient* media_stream_client_; | 1366 MediaStreamClient* media_stream_client_; |
1367 blink::WebUserMediaClient* web_user_media_client_; | 1367 blink::WebUserMediaClient* web_user_media_client_; |
1368 | 1368 |
1369 // MIDIClient attached to this view; lazily initialized. | 1369 // MIDIClient attached to this view; lazily initialized. |
1370 MIDIDispatcher* midi_dispatcher_; | 1370 MIDIDispatcher* midi_dispatcher_; |
1371 | 1371 |
1372 DevToolsAgent* devtools_agent_; | 1372 DevToolsAgent* devtools_agent_; |
1373 | 1373 |
1374 // The current accessibility mode. | 1374 // The current accessibility mode. |
1375 AccessibilityMode accessibility_mode_; | 1375 unsigned int accessibility_mode_; |
1376 | 1376 |
1377 // Only valid if |accessibility_mode_| is anything other than | 1377 // Only valid if |accessibility_mode_| has the AccessibilityModeFlagRenderer |
David Tseng
2014/02/04 20:25:51
What about text only?
aboxhall
2014/02/05 16:02:47
Depends whether text only includes renderer.
| |
1378 // AccessibilityModeOff. | 1378 // bit set. |
1379 RendererAccessibility* renderer_accessibility_; | 1379 RendererAccessibility* renderer_accessibility_; |
1380 | 1380 |
1381 // Mouse Lock dispatcher attached to this view. | 1381 // Mouse Lock dispatcher attached to this view. |
1382 MouseLockDispatcher* mouse_lock_dispatcher_; | 1382 MouseLockDispatcher* mouse_lock_dispatcher_; |
1383 | 1383 |
1384 #if defined(OS_ANDROID) | 1384 #if defined(OS_ANDROID) |
1385 // Android Specific --------------------------------------------------------- | 1385 // Android Specific --------------------------------------------------------- |
1386 | 1386 |
1387 // The background color of the document body element. This is used as the | 1387 // The background color of the document body element. This is used as the |
1388 // default background color for filling the screen areas for which we don't | 1388 // default background color for filling the screen areas for which we don't |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1507 // use the Observer interface to filter IPC messages and receive frame change | 1507 // use the Observer interface to filter IPC messages and receive frame change |
1508 // notifications. | 1508 // notifications. |
1509 // --------------------------------------------------------------------------- | 1509 // --------------------------------------------------------------------------- |
1510 | 1510 |
1511 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1511 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1512 }; | 1512 }; |
1513 | 1513 |
1514 } // namespace content | 1514 } // namespace content |
1515 | 1515 |
1516 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1516 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |