OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_internal.h" | 5 #include "chrome/browser/automation/ui_controls_internal.h" |
6 | 6 |
7 namespace ui_controls { | 7 namespace ui_controls { |
| 8 namespace internal { |
8 | 9 |
9 void ClickTask(MouseButton button, int state, const base::Closure& followup) { | 10 void ClickTask(MouseButton button, int state, const base::Closure& followup) { |
10 if (!followup.is_null()) | 11 if (!followup.is_null()) |
11 SendMouseEventsNotifyWhenDone(button, state, followup); | 12 SendMouseEventsNotifyWhenDone(button, state, followup); |
12 else | 13 else |
13 SendMouseEvents(button, state); | 14 SendMouseEvents(button, state); |
14 } | 15 } |
15 | 16 |
16 } // ui_controls | 17 } // namespace internal |
| 18 } // namespace ui_controls |
OLD | NEW |