blob: 9765b1ba204a05752531904bb7d27c321fe05a9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// 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.
#include "chrome/browser/automation/ui_controls_internal.h"
#include "base/callback.h"
namespace ui_controls {
namespace internal {
void ClickTask(MouseButton button, int state, const base::Closure& followup) {
if (!followup.is_null())
SendMouseEventsNotifyWhenDone(button, state, followup);
else
SendMouseEvents(button, state);
}
} // namespace internal
} // namespace ui_controls
|