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

Side by Side Diff: webkit/tools/test_shell/test_webview_delegate.cc

Issue 5333001: TestShell changes to support multiple speech input results. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
« no previous file with comments | « webkit/tools/test_shell/layout_test_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This file contains the implementation of TestWebViewDelegate, which serves 5 // This file contains the implementation of TestWebViewDelegate, which serves
6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to 6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to
7 // have initialized a MessageLoop before these methods are called. 7 // have initialized a MessageLoop before these methods are called.
8 8
9 #include "webkit/tools/test_shell/test_webview_delegate.h" 9 #include "webkit/tools/test_shell/test_webview_delegate.h"
10 10
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 } 1168 }
1169 1169
1170 TestWebViewDelegate::~TestWebViewDelegate() { 1170 TestWebViewDelegate::~TestWebViewDelegate() {
1171 } 1171 }
1172 1172
1173 void TestWebViewDelegate::Reset() { 1173 void TestWebViewDelegate::Reset() {
1174 // Do a little placement new dance... 1174 // Do a little placement new dance...
1175 TestShell* shell = shell_; 1175 TestShell* shell = shell_;
1176 this->~TestWebViewDelegate(); 1176 this->~TestWebViewDelegate();
1177 new (this) TestWebViewDelegate(shell); 1177 new (this) TestWebViewDelegate(shell);
1178 if (shell->speech_input_controller_mock())
1179 shell->speech_input_controller_mock()->clearResults();
1178 } 1180 }
1179 1181
1180 void TestWebViewDelegate::SetSmartInsertDeleteEnabled(bool enabled) { 1182 void TestWebViewDelegate::SetSmartInsertDeleteEnabled(bool enabled) {
1181 smart_insert_delete_enabled_ = enabled; 1183 smart_insert_delete_enabled_ = enabled;
1182 // In upstream WebKit, smart insert/delete is mutually exclusive with select 1184 // In upstream WebKit, smart insert/delete is mutually exclusive with select
1183 // trailing whitespace, however, we allow both because Chromium on Windows 1185 // trailing whitespace, however, we allow both because Chromium on Windows
1184 // allows both. 1186 // allows both.
1185 } 1187 }
1186 1188
1187 void TestWebViewDelegate::SetSelectTrailingWhitespaceEnabled(bool enabled) { 1189 void TestWebViewDelegate::SetSelectTrailingWhitespaceEnabled(bool enabled) {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1348 } 1350 }
1349 1351
1350 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { 1352 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) {
1351 fake_rect_ = rect; 1353 fake_rect_ = rect;
1352 using_fake_rect_ = true; 1354 using_fake_rect_ = true;
1353 } 1355 }
1354 1356
1355 WebRect TestWebViewDelegate::fake_window_rect() { 1357 WebRect TestWebViewDelegate::fake_window_rect() {
1356 return fake_rect_; 1358 return fake_rect_;
1357 } 1359 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/layout_test_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698