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

Side by Side Diff: chrome/test/automation/autocomplete_edit_proxy.cc

Issue 4200007: Refactor automation messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome_frame no longer depends on tab_contents.h 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
« no previous file with comments | « chrome/common/security_style.h ('k') | chrome/test/automation/automation_constants.h » ('j') | 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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 "chrome/test/automation/autocomplete_edit_proxy.h" 5 #include "chrome/test/automation/autocomplete_edit_proxy.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "chrome/test/automation/automation_constants.h" 9 #include "chrome/common/automation_constants.h"
10 #include "chrome/test/automation/automation_messages.h" 10 #include "chrome/common/automation_messages.h"
11 #include "chrome/test/automation/automation_proxy.h" 11 #include "chrome/test/automation/automation_proxy.h"
12 12
13 using base::TimeDelta; 13 using base::TimeDelta;
14 using base::TimeTicks; 14 using base::TimeTicks;
15 15
16 bool AutocompleteEditProxy::GetText(std::wstring* text) const { 16 bool AutocompleteEditProxy::GetText(std::wstring* text) const {
17 if (!is_valid()) 17 if (!is_valid())
18 return false; 18 return false;
19 if (!text) { 19 if (!text) {
20 NOTREACHED(); 20 NOTREACHED();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 return false; 77 return false;
78 if (!matches) { 78 if (!matches) {
79 NOTREACHED(); 79 NOTREACHED();
80 return false; 80 return false;
81 } 81 }
82 bool edit_exists = false; 82 bool edit_exists = false;
83 sender_->Send(new AutomationMsg_AutocompleteEditGetMatches( 83 sender_->Send(new AutomationMsg_AutocompleteEditGetMatches(
84 0, handle_, &edit_exists, matches)); 84 0, handle_, &edit_exists, matches));
85 return edit_exists; 85 return edit_exists;
86 } 86 }
OLDNEW
« no previous file with comments | « chrome/common/security_style.h ('k') | chrome/test/automation/automation_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698