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

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

Issue 5120002: TestShell: Backported EventSender.contextClick() improvement (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed feedback Created 10 years, 1 month 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "webkit/tools/test_shell/mock_spellcheck.h" 5 #include "webkit/tools/test_shell/mock_spellcheck.h"
6 6
7 #include <map> 7 #include <map>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 } 118 }
119 119
120 // Mark as initialized to prevent this object from being initialized twice 120 // Mark as initialized to prevent this object from being initialized twice
121 // or more. 121 // or more.
122 initialized_ = true; 122 initialized_ = true;
123 123
124 // Since this MockSpellCheck class doesn't download dictionaries, this 124 // Since this MockSpellCheck class doesn't download dictionaries, this
125 // function always returns false. 125 // function always returns false.
126 return false; 126 return false;
127 } 127 }
128
129 void MockSpellCheck::FillSuggestions(const string16& word,
130 std::vector<string16>* suggestions) {
131 if (word == ASCIIToUTF16("wellcome"))
132 suggestions->push_back(ASCIIToUTF16("welcome"));
133 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/mock_spellcheck.h ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698