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

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

Issue 9939011: Add an accessibility mode for editable text fields only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments and rebased. Created 8 years, 8 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 | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "base/gtest_prod_util.h" 16 #include "base/gtest_prod_util.h"
17 #include "base/id_map.h" 17 #include "base/id_map.h"
18 #include "base/memory/linked_ptr.h" 18 #include "base/memory/linked_ptr.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/observer_list.h" 20 #include "base/observer_list.h"
21 #include "base/timer.h" 21 #include "base/timer.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "content/common/content_export.h" 23 #include "content/common/content_export.h"
24 #include "content/common/edit_command.h" 24 #include "content/common/edit_command.h"
25 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 25 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
26 #include "content/common/navigation_gesture.h" 26 #include "content/common/navigation_gesture.h"
27 #include "content/common/view_message_enums.h"
27 #include "content/public/common/page_zoom.h" 28 #include "content/public/common/page_zoom.h"
28 #include "content/public/common/referrer.h" 29 #include "content/public/common/referrer.h"
29 #include "content/public/common/renderer_preferences.h" 30 #include "content/public/common/renderer_preferences.h"
30 #include "content/public/common/stop_find_action.h" 31 #include "content/public/common/stop_find_action.h"
31 #include "content/public/renderer/render_view.h" 32 #include "content/public/renderer/render_view.h"
32 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" 33 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
33 #include "content/renderer/renderer_webcookiejar_impl.h" 34 #include "content/renderer/renderer_webcookiejar_impl.h"
34 #include "content/renderer/render_view_selection.h" 35 #include "content/renderer/render_view_selection.h"
35 #include "content/renderer/render_widget.h" 36 #include "content/renderer/render_widget.h"
36 #include "ipc/ipc_platform_file.h" 37 #include "ipc/ipc_platform_file.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 int32 opener_id, 185 int32 opener_id,
185 const content::RendererPreferences& renderer_prefs, 186 const content::RendererPreferences& renderer_prefs,
186 const WebPreferences& webkit_prefs, 187 const WebPreferences& webkit_prefs,
187 SharedRenderViewCounter* counter, 188 SharedRenderViewCounter* counter,
188 int32 routing_id, 189 int32 routing_id,
189 int32 surface_id, 190 int32 surface_id,
190 int64 session_storage_namespace_id, 191 int64 session_storage_namespace_id,
191 const string16& frame_name, 192 const string16& frame_name,
192 int32 next_page_id, 193 int32 next_page_id,
193 const WebKit::WebScreenInfo& screen_info, 194 const WebKit::WebScreenInfo& screen_info,
194 bool guest); 195 bool guest,
196 AccessibilityMode accessibility_mode);
195 197
196 // Returns the RenderViewImpl containing the given WebView. 198 // Returns the RenderViewImpl containing the given WebView.
197 CONTENT_EXPORT static RenderViewImpl* FromWebView(WebKit::WebView* webview); 199 CONTENT_EXPORT static RenderViewImpl* FromWebView(WebKit::WebView* webview);
198 200
199 // May return NULL when the view is closing. 201 // May return NULL when the view is closing.
200 CONTENT_EXPORT WebKit::WebView* webview() const; 202 CONTENT_EXPORT WebKit::WebView* webview() const;
201 203
202 // WebGraphicsContext3DSwapBuffersClient implementation. 204 // WebGraphicsContext3DSwapBuffersClient implementation.
203 205
204 // Called by a GraphicsContext associated with this view when swapbuffers 206 // Called by a GraphicsContext associated with this view when swapbuffers
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 int32 opener_id, 732 int32 opener_id,
731 const content::RendererPreferences& renderer_prefs, 733 const content::RendererPreferences& renderer_prefs,
732 const WebPreferences& webkit_prefs, 734 const WebPreferences& webkit_prefs,
733 SharedRenderViewCounter* counter, 735 SharedRenderViewCounter* counter,
734 int32 routing_id, 736 int32 routing_id,
735 int32 surface_id, 737 int32 surface_id,
736 int64 session_storage_namespace_id, 738 int64 session_storage_namespace_id,
737 const string16& frame_name, 739 const string16& frame_name,
738 int32 next_page_id, 740 int32 next_page_id,
739 const WebKit::WebScreenInfo& screen_info, 741 const WebKit::WebScreenInfo& screen_info,
740 bool guest); 742 bool guest,
743 AccessibilityMode accessibility_mode);
741 744
742 // Do not delete directly. This class is reference counted. 745 // Do not delete directly. This class is reference counted.
743 virtual ~RenderViewImpl(); 746 virtual ~RenderViewImpl();
744 747
745 void UpdateURL(WebKit::WebFrame* frame); 748 void UpdateURL(WebKit::WebFrame* frame);
746 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, 749 void UpdateTitle(WebKit::WebFrame* frame, const string16& title,
747 WebKit::WebTextDirection title_direction); 750 WebKit::WebTextDirection title_direction);
748 void UpdateSessionHistory(WebKit::WebFrame* frame); 751 void UpdateSessionHistory(WebKit::WebFrame* frame);
749 void SendUpdateState(const WebKit::WebHistoryItem& item); 752 void SendUpdateState(const WebKit::WebHistoryItem& item);
750 753
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 int focused_plugin_id_; 1303 int focused_plugin_id_;
1301 #endif 1304 #endif
1302 1305
1303 // Allows JS to access DOM automation. The JS object is only exposed when the 1306 // Allows JS to access DOM automation. The JS object is only exposed when the
1304 // DOM automation bindings are enabled. 1307 // DOM automation bindings are enabled.
1305 scoped_ptr<DomAutomationController> dom_automation_controller_; 1308 scoped_ptr<DomAutomationController> dom_automation_controller_;
1306 1309
1307 // Indicates whether this RenderView is a guest of another RenderView. 1310 // Indicates whether this RenderView is a guest of another RenderView.
1308 bool guest_; 1311 bool guest_;
1309 1312
1313 // The accessibility mode.
1314 AccessibilityMode accessibility_mode_;
1315
1310 // NOTE: pepper_delegate_ should be last member because its constructor calls 1316 // NOTE: pepper_delegate_ should be last member because its constructor calls
1311 // AddObservers method of RenderViewImpl from c-tor. 1317 // AddObservers method of RenderViewImpl from c-tor.
1312 content::PepperPluginDelegateImpl pepper_delegate_; 1318 content::PepperPluginDelegateImpl pepper_delegate_;
1313 1319
1314 // --------------------------------------------------------------------------- 1320 // ---------------------------------------------------------------------------
1315 // ADDING NEW DATA? Please see if it fits appropriately in one of the above 1321 // ADDING NEW DATA? Please see if it fits appropriately in one of the above
1316 // sections rather than throwing it randomly at the end. If you're adding a 1322 // sections rather than throwing it randomly at the end. If you're adding a
1317 // bunch of stuff, you should probably create a helper class and put your 1323 // bunch of stuff, you should probably create a helper class and put your
1318 // data and methods on that to avoid bloating RenderView more. You can 1324 // data and methods on that to avoid bloating RenderView more. You can
1319 // use the Observer interface to filter IPC messages and receive frame change 1325 // use the Observer interface to filter IPC messages and receive frame change
1320 // notifications. 1326 // notifications.
1321 // --------------------------------------------------------------------------- 1327 // ---------------------------------------------------------------------------
1322 1328
1323 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1329 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1324 }; 1330 };
1325 1331
1326 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1332 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698