| Index: chrome/browser/automation/ui_controls_internal.cc
|
| diff --git a/chrome/browser/automation/ui_controls_internal.cc b/chrome/browser/automation/ui_controls_internal.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..25598e850797a69058afabd7f34caa97fd187814
|
| --- /dev/null
|
| +++ b/chrome/browser/automation/ui_controls_internal.cc
|
| @@ -0,0 +1,22 @@
|
| +// Copyright (c) 2010 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.
|
| +
|
| +#include "chrome/browser/automation/ui_controls_internal.h"
|
| +
|
| +namespace ui_controls {
|
| +
|
| +ClickTask::ClickTask(MouseButton button, int state, Task* followup)
|
| + : button_(button), state_(state), followup_(followup) {
|
| +}
|
| +
|
| +ClickTask::~ClickTask() {}
|
| +
|
| +void ClickTask::Run() {
|
| + if (followup_)
|
| + SendMouseEventsNotifyWhenDone(button_, state_, followup_);
|
| + else
|
| + SendMouseEvents(button_, state_);
|
| +}
|
| +
|
| +} // ui_controls
|
|
|