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

Side by Side Diff: chrome/browser/automation/ui_controls_internal.cc

Issue 8212006: base::Bind: Cleanup in automation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mac build fixes. Created 9 years, 2 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) 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 8
9 ClickTask::ClickTask(MouseButton button, int state, Task* followup) 9 void ClickTask(MouseButton button, int state, const base::Closure& followup) {
10 : button_(button), state_(state), followup_(followup) { 10 if (!followup.is_null())
11 } 11 SendMouseEventsNotifyWhenDone(button, state, followup);
12
13 ClickTask::~ClickTask() {}
14
15 void ClickTask::Run() {
16 if (followup_)
17 SendMouseEventsNotifyWhenDone(button_, state_, followup_);
18 else 12 else
19 SendMouseEvents(button_, state_); 13 SendMouseEvents(button, state);
20 } 14 }
21 15
22 } // ui_controls 16 } // ui_controls
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698