| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/automation_provider.h" | 5 #include "chrome/browser/automation/automation_provider.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/automation/ui_controls.h" | 10 #include "chrome/browser/automation/ui_controls.h" |
| 11 #include "chrome/browser/automation/automation_browser_tracker.h" | 11 #include "chrome/browser/automation/automation_browser_tracker.h" |
| 12 #include "chrome/browser/automation/automation_window_tracker.h" | 12 #include "chrome/browser/automation/automation_window_tracker.h" |
| 13 #include "chrome/browser/gtk/browser_window_gtk.h" | 13 #include "chrome/browser/gtk/browser_window_gtk.h" |
| 14 #include "chrome/browser/gtk/gtk_util.h" | 14 #include "chrome/browser/gtk/gtk_util.h" |
| 15 #include "chrome/browser/gtk/view_id_util.h" | 15 #include "chrome/browser/gtk/view_id_util.h" |
| 16 #include "chrome/common/automation_messages.h" | 16 #include "chrome/test/automation/automation_messages.h" |
| 17 #include "gfx/point.h" | 17 #include "gfx/point.h" |
| 18 #include "gfx/rect.h" | 18 #include "gfx/rect.h" |
| 19 | 19 |
| 20 void AutomationProvider::PrintAsync(int tab_handle) { | 20 void AutomationProvider::PrintAsync(int tab_handle) { |
| 21 NOTIMPLEMENTED(); | 21 NOTIMPLEMENTED(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 // This task sends a WindowDragResponse message with the appropriate | 24 // This task sends a WindowDragResponse message with the appropriate |
| 25 // routing ID to the automation proxy. This is implemented as a task so that | 25 // routing ID to the automation proxy. This is implemented as a task so that |
| 26 // we know that the mouse events (and any tasks that they spawn on the message | 26 // we know that the mouse events (and any tasks that they spawn on the message |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 next_task = new MouseEventTask(next_task, ui_controls::DOWN); | 132 next_task = new MouseEventTask(next_task, ui_controls::DOWN); |
| 133 | 133 |
| 134 ui_controls::SendMouseMoveNotifyWhenDone(x + drag_path[0].x(), | 134 ui_controls::SendMouseMoveNotifyWhenDone(x + drag_path[0].x(), |
| 135 y + drag_path[0].y(), | 135 y + drag_path[0].y(), |
| 136 next_task); | 136 next_task); |
| 137 } else { | 137 } else { |
| 138 AutomationMsg_WindowDrag::WriteReplyParams(reply_message, false); | 138 AutomationMsg_WindowDrag::WriteReplyParams(reply_message, false); |
| 139 Send(reply_message); | 139 Send(reply_message); |
| 140 } | 140 } |
| 141 } | 141 } |
| OLD | NEW |