Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: content/renderer/render_view_impl.h

Issue 145283003: Switch AccessibilityMode to be a bitmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src@enable
Patch Set: Address dtseng's comments Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1368 // MediaStreamClient attached to this view; lazily initialized. 1368 // MediaStreamClient attached to this view; lazily initialized.
1369 MediaStreamClient* media_stream_client_; 1369 MediaStreamClient* media_stream_client_;
1370 blink::WebUserMediaClient* web_user_media_client_; 1370 blink::WebUserMediaClient* web_user_media_client_;
1371 1371
1372 // MIDIClient attached to this view; lazily initialized. 1372 // MIDIClient attached to this view; lazily initialized.
1373 MIDIDispatcher* midi_dispatcher_; 1373 MIDIDispatcher* midi_dispatcher_;
1374 1374
1375 DevToolsAgent* devtools_agent_; 1375 DevToolsAgent* devtools_agent_;
1376 1376
1377 // The current accessibility mode. 1377 // The current accessibility mode.
1378 AccessibilityMode accessibility_mode_; 1378 unsigned int accessibility_mode_;
1379 1379
1380 // Only valid if |accessibility_mode_| is anything other than 1380 // Only valid if |accessibility_mode_| has the AccessibilityModeFlagRenderer
1381 // AccessibilityModeOff. 1381 // bit set.
1382 RendererAccessibility* renderer_accessibility_; 1382 RendererAccessibility* renderer_accessibility_;
1383 1383
1384 // Mouse Lock dispatcher attached to this view. 1384 // Mouse Lock dispatcher attached to this view.
1385 MouseLockDispatcher* mouse_lock_dispatcher_; 1385 MouseLockDispatcher* mouse_lock_dispatcher_;
1386 1386
1387 #if defined(OS_ANDROID) 1387 #if defined(OS_ANDROID)
1388 // Android Specific --------------------------------------------------------- 1388 // Android Specific ---------------------------------------------------------
1389 1389
1390 // The background color of the document body element. This is used as the 1390 // The background color of the document body element. This is used as the
1391 // default background color for filling the screen areas for which we don't 1391 // 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
1510 // use the Observer interface to filter IPC messages and receive frame change 1510 // use the Observer interface to filter IPC messages and receive frame change
1511 // notifications. 1511 // notifications.
1512 // --------------------------------------------------------------------------- 1512 // ---------------------------------------------------------------------------
1513 1513
1514 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1514 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1515 }; 1515 };
1516 1516
1517 } // namespace content 1517 } // namespace content
1518 1518
1519 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1519 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698