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

Unified Diff: chrome/browser/automation/ui_controls_linux.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/automation/ui_controls_internal.h ('k') | chrome/browser/automation/ui_controls_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/ui_controls_linux.cc
diff --git a/chrome/browser/automation/ui_controls_linux.cc b/chrome/browser/automation/ui_controls_linux.cc
index c9dca787a52e31a91fbaec43c0d5a7ea475e1711..4c19b7d606eba26c73994b163a2b95c1e3cfe75c 100644
--- a/chrome/browser/automation/ui_controls_linux.cc
+++ b/chrome/browser/automation/ui_controls_linux.cc
@@ -12,6 +12,7 @@
#include "base/keyboard_code_conversion_gtk.h"
#include "base/logging.h"
#include "base/message_loop.h"
+#include "chrome/browser/automation/ui_controls_internal.h"
#include "chrome/browser/gtk/gtk_util.h"
#include "chrome/test/automation/automation_constants.h"
@@ -62,27 +63,6 @@ class EventWaiter : public MessageLoopForUI::Observer {
int count_;
};
-class ClickTask : public Task {
- public:
- ClickTask(ui_controls::MouseButton button, int state, Task* followup)
- : button_(button), state_(state), followup_(followup) {
- }
-
- virtual ~ClickTask() {}
-
- virtual void Run() {
- if (followup_)
- ui_controls::SendMouseEventsNotifyWhenDone(button_, state_, followup_);
- else
- ui_controls::SendMouseEvents(button_, state_);
- }
-
- private:
- ui_controls::MouseButton button_;
- int state_;
- Task* followup_;
-};
-
void FakeAMouseMotionEvent(gint x, gint y) {
GdkEvent* event = gdk_event_new(GDK_MOTION_NOTIFY);
« no previous file with comments | « chrome/browser/automation/ui_controls_internal.h ('k') | chrome/browser/automation/ui_controls_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698