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

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

Issue 6246001: Move app/key* to ui/base/keycodes/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/window_proxy.h" 5 #include "chrome/test/automation/window_proxy.h"
6 6
7 #include <vector> 7 #include <vector>
8 #include <algorithm> 8 #include <algorithm>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 22 matching lines...) Expand all
33 if (!is_valid()) return false; 33 if (!is_valid()) return false;
34 34
35 if (!text) { 35 if (!text) {
36 NOTREACHED(); 36 NOTREACHED();
37 return false; 37 return false;
38 } 38 }
39 39
40 return sender_->Send(new AutomationMsg_WindowTitle(handle_, text)); 40 return sender_->Send(new AutomationMsg_WindowTitle(handle_, text));
41 } 41 }
42 42
43 bool WindowProxy::SimulateOSKeyPress(app::KeyboardCode key, int flags) { 43 bool WindowProxy::SimulateOSKeyPress(ui::KeyboardCode key, int flags) {
44 if (!is_valid()) return false; 44 if (!is_valid()) return false;
45 45
46 return sender_->Send( 46 return sender_->Send(
47 new AutomationMsg_WindowKeyPress(handle_, key, flags)); 47 new AutomationMsg_WindowKeyPress(handle_, key, flags));
48 } 48 }
49 49
50 bool WindowProxy::SetVisible(bool visible) { 50 bool WindowProxy::SetVisible(bool visible) {
51 if (!is_valid()) return false; 51 if (!is_valid()) return false;
52 52
53 bool result = false; 53 bool result = false;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 bool WindowProxy::IsMaximized(bool* maximized) { 160 bool WindowProxy::IsMaximized(bool* maximized) {
161 if (!is_valid()) 161 if (!is_valid())
162 return false; 162 return false;
163 163
164 bool result = false; 164 bool result = false;
165 165
166 sender_->Send(new AutomationMsg_IsWindowMaximized(handle_, maximized, 166 sender_->Send(new AutomationMsg_IsWindowMaximized(handle_, maximized,
167 &result)); 167 &result));
168 return result; 168 return result;
169 } 169 }
OLDNEW
« no previous file with comments | « chrome/test/automation/window_proxy.h ('k') | chrome/test/interactive_ui/keyboard_access_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698