summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/ui_controls_win.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-25 18:24:34 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-25 18:24:34 +0000
commit2ce9c8975a27ac994c7bcf4260033f4bbc9da46a (patch)
tree599f74bf63e0b63e1112bb0ebc80bebb374584c6 /chrome/browser/automation/ui_controls_win.cc
parentfc8b5531f7e994b2016f2684a2998b5a53439916 (diff)
downloadchromium_src-2ce9c8975a27ac994c7bcf4260033f4bbc9da46a.zip
chromium_src-2ce9c8975a27ac994c7bcf4260033f4bbc9da46a.tar.gz
chromium_src-2ce9c8975a27ac994c7bcf4260033f4bbc9da46a.tar.bz2
Fix changes from r75314 to preserve the prevailing pattern of "(expected, actual)" in DCHECK_EQ/NE().
Also cleans up a couple other misc. style issues. BUG=58409 TEST=none Review URL: http://codereview.chromium.org/6578035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76071 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/ui_controls_win.cc')
-rw-r--r--chrome/browser/automation/ui_controls_win.cc24
1 files changed, 16 insertions, 8 deletions
diff --git a/chrome/browser/automation/ui_controls_win.cc b/chrome/browser/automation/ui_controls_win.cc
index 662ff63..0544f0e 100644
--- a/chrome/browser/automation/ui_controls_win.cc
+++ b/chrome/browser/automation/ui_controls_win.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -325,18 +325,24 @@ bool SendMouseEventsImpl(MouseButton type, int state, Task* task) {
// public functions -----------------------------------------------------------
-bool SendKeyPress(gfx::NativeWindow window, ui::KeyboardCode key,
- bool control, bool shift, bool alt, bool command) {
- DCHECK_EQ(command, false); // No command key on Windows
+bool SendKeyPress(gfx::NativeWindow window,
+ ui::KeyboardCode key,
+ bool control,
+ bool shift,
+ bool alt,
+ bool command) {
+ DCHECK(!command); // No command key on Windows
return SendKeyPressImpl(key, control, shift, alt, NULL);
}
bool SendKeyPressNotifyWhenDone(gfx::NativeWindow window,
ui::KeyboardCode key,
- bool control, bool shift, bool alt,
+ bool control,
+ bool shift,
+ bool alt,
bool command,
Task* task) {
- DCHECK_EQ(command, false); // No command key on Windows
+ DCHECK(!command); // No command key on Windows
return SendKeyPressImpl(key, control, shift, alt, task);
}
@@ -360,8 +366,10 @@ bool SendMouseClick(MouseButton type) {
return SendMouseEventsImpl(type, UP | DOWN, NULL);
}
-void MoveMouseToCenterAndPress(views::View* view, MouseButton button,
- int state, Task* task) {
+void MoveMouseToCenterAndPress(views::View* view,
+ MouseButton button,
+ int state,
+ Task* task) {
DCHECK(view);
DCHECK(view->GetWidget());
gfx::Point view_center(view->width() / 2, view->height() / 2);