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