| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/automation/ui_controls.h" | 5 #include "chrome/browser/automation/ui_controls.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "views/view.h" | 8 #include "views/view.h" |
| 9 | 9 |
| 10 namespace ui_controls { | 10 namespace ui_controls { |
| 11 | 11 |
| 12 bool SendKeyPress(gfx::NativeWindow window, | 12 bool SendKeyPress(gfx::NativeWindow window, |
| 13 ui::KeyboardCode key, | 13 ui::KeyboardCode key, |
| 14 bool control, | 14 bool control, |
| 15 bool shift, | 15 bool shift, |
| 16 bool alt, | 16 bool alt, |
| 17 bool command) { | 17 bool command) { |
| 18 // http://crbug.com/104396 |
| 18 NOTIMPLEMENTED(); | 19 NOTIMPLEMENTED(); |
| 19 return true; | 20 return true; |
| 20 } | 21 } |
| 21 | 22 |
| 22 bool SendKeyPressNotifyWhenDone(gfx::NativeWindow window, | 23 bool SendKeyPressNotifyWhenDone(gfx::NativeWindow window, |
| 23 ui::KeyboardCode key, | 24 ui::KeyboardCode key, |
| 24 bool control, | 25 bool control, |
| 25 bool shift, | 26 bool shift, |
| 26 bool alt, | 27 bool alt, |
| 27 bool command, | 28 bool command, |
| 28 const base::Closure& task) { | 29 const base::Closure& task) { |
| 30 // http://crbug.com/104396 |
| 29 NOTIMPLEMENTED(); | 31 NOTIMPLEMENTED(); |
| 30 return true; | 32 return true; |
| 31 } | 33 } |
| 32 | 34 |
| 33 bool SendMouseMove(long x, long y) { | 35 bool SendMouseMove(long x, long y) { |
| 36 // http://crbug.com/104396 |
| 34 NOTIMPLEMENTED(); | 37 NOTIMPLEMENTED(); |
| 35 return true; | 38 return true; |
| 36 } | 39 } |
| 37 | 40 |
| 38 bool SendMouseMoveNotifyWhenDone(long x, long y, const base::Closure& task) { | 41 bool SendMouseMoveNotifyWhenDone(long x, long y, const base::Closure& task) { |
| 42 // http://crbug.com/104396 |
| 39 NOTIMPLEMENTED(); | 43 NOTIMPLEMENTED(); |
| 40 return true; | 44 return true; |
| 41 } | 45 } |
| 42 | 46 |
| 43 bool SendMouseEvents(MouseButton type, int state) { | 47 bool SendMouseEvents(MouseButton type, int state) { |
| 48 // http://crbug.com/104396 |
| 44 NOTIMPLEMENTED(); | 49 NOTIMPLEMENTED(); |
| 45 return true; | 50 return true; |
| 46 } | 51 } |
| 47 | 52 |
| 48 bool SendMouseEventsNotifyWhenDone(MouseButton type, int state, | 53 bool SendMouseEventsNotifyWhenDone(MouseButton type, int state, |
| 49 const base::Closure& task) { | 54 const base::Closure& task) { |
| 55 // http://crbug.com/104396 |
| 50 NOTIMPLEMENTED(); | 56 NOTIMPLEMENTED(); |
| 51 return true; | 57 return true; |
| 52 } | 58 } |
| 53 | 59 |
| 54 bool SendMouseClick(MouseButton type) { | 60 bool SendMouseClick(MouseButton type) { |
| 55 return SendMouseEvents(type, UP | DOWN); | 61 return SendMouseEvents(type, UP | DOWN); |
| 56 } | 62 } |
| 57 | 63 |
| 58 void MoveMouseToCenterAndPress(views::View* view, MouseButton button, | 64 void MoveMouseToCenterAndPress(views::View* view, MouseButton button, |
| 59 int state, const base::Closure& task) { | 65 int state, const base::Closure& task) { |
| 66 // http://crbug.com/104396 |
| 60 NOTIMPLEMENTED(); | 67 NOTIMPLEMENTED(); |
| 61 } | 68 } |
| 62 | 69 |
| 63 } // namespace ui_controls | 70 } // namespace ui_controls |
| OLD | NEW |