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

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

Issue 2986004: [Mac]Port browser_keyevents_browsertest.cc and browser_focus_uitest.cc to Mac. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Enable BrowserFocusTest and BrowserKeyEventsTests on Mac. Created 10 years, 5 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
« no previous file with comments | « chrome/browser/automation/ui_controls.h ('k') | chrome/browser/automation/ui_controls_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_
6 #define CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_
7
8 #include "base/message_loop.h"
9 #include "chrome/browser/automation/ui_controls.h"
10
11 namespace ui_controls {
12
13 // A utility class to send a mouse click event in a task.
14 // It's shared by ui_controls_linux.cc and ui_controls_mac.cc
15 class ClickTask : public Task {
16 public:
17 // A |followup| Task can be specified to notify the caller when the mouse
18 // click event is sent. If can be NULL if the caller does not care about it.
19 ClickTask(MouseButton button, int state, Task* followup)
20 : button_(button), state_(state), followup_(followup) {
21 }
22
23 virtual ~ClickTask() {}
24
25 virtual void Run() {
26 if (followup_)
27 SendMouseEventsNotifyWhenDone(button_, state_, followup_);
28 else
29 SendMouseEvents(button_, state_);
30 }
31
32 private:
33 MouseButton button_;
34 int state_;
35 Task* followup_;
36 };
37
38 } // ui_controls
39
40 #endif // CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/ui_controls.h ('k') | chrome/browser/automation/ui_controls_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698