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

Side by Side Diff: content/test/render_view_test.cc

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 #include "content/test/render_view_test.h" 5 #include "content/test/render_view_test.h"
6 6
7 #include "content/common/dom_storage_common.h" 7 #include "content/common/dom_storage_common.h"
8 #include "content/common/view_messages.h" 8 #include "content/common/view_messages.h"
9 #include "content/public/browser/native_web_keyboard_event.h" 9 #include "content/public/browser/native_web_keyboard_event.h"
10 #include "content/public/common/renderer_preferences.h" 10 #include "content/public/common/renderer_preferences.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 kOpenerId, 159 kOpenerId,
160 content::RendererPreferences(), 160 content::RendererPreferences(),
161 WebPreferences(), 161 WebPreferences(),
162 new SharedRenderViewCounter(0), 162 new SharedRenderViewCounter(0),
163 kRouteId, 163 kRouteId,
164 kSurfaceId, 164 kSurfaceId,
165 kInvalidSessionStorageNamespaceId, 165 kInvalidSessionStorageNamespaceId,
166 string16(), 166 string16(),
167 1, 167 1,
168 WebKit::WebScreenInfo(), 168 WebKit::WebScreenInfo(),
169 false); 169 false,
170 AccessibilityModeOff);
170 view->AddRef(); 171 view->AddRef();
171 view_ = view; 172 view_ = view;
172 173
173 // Attach a pseudo keyboard device to this object. 174 // Attach a pseudo keyboard device to this object.
174 mock_keyboard_.reset(new MockKeyboard()); 175 mock_keyboard_.reset(new MockKeyboard());
175 } 176 }
176 177
177 void RenderViewTest::TearDown() { 178 void RenderViewTest::TearDown() {
178 // Try very hard to collect garbage before shutting down. 179 // Try very hard to collect garbage before shutting down.
179 GetMainFrame()->collectGarbage(); 180 GetMainFrame()->collectGarbage();
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 455 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
455 impl->set_send_content_state_immediately(true); 456 impl->set_send_content_state_immediately(true);
456 } 457 }
457 458
458 WebKit::WebWidget* RenderViewTest::GetWebWidget() { 459 WebKit::WebWidget* RenderViewTest::GetWebWidget() {
459 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 460 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
460 return impl->webwidget(); 461 return impl->webwidget();
461 } 462 }
462 463
463 } // namespace content 464 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698