OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/automation/automation_browser_tracker.h" | 13 #include "chrome/browser/automation/automation_browser_tracker.h" |
14 #include "chrome/browser/automation/automation_window_tracker.h" | 14 #include "chrome/browser/automation/automation_window_tracker.h" |
15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
16 #include "chrome/browser/ui/gtk/browser_window_gtk.h" | 16 #include "chrome/browser/ui/gtk/browser_window_gtk.h" |
17 #include "chrome/browser/ui/gtk/view_id_util.h" | |
18 #include "chrome/common/automation_messages.h" | 17 #include "chrome/common/automation_messages.h" |
19 #include "ui/gfx/point.h" | 18 #include "ui/gfx/point.h" |
20 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
21 #include "ui/ui_controls/ui_controls.h" | 20 #include "ui/ui_controls/ui_controls.h" |
22 | 21 |
23 namespace { | 22 namespace { |
24 | 23 |
25 // This function sends a WindowDragResponse message with the appropriate routing | 24 // This function sends a WindowDragResponse message with the appropriate routing |
26 // ID to the automation proxy. | 25 // ID to the automation proxy. |
27 void SendWindowDragResponse(AutomationProvider* provider, | 26 void SendWindowDragResponse(AutomationProvider* provider, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 ui_controls::LEFT, ui_controls::DOWN, move_chain_cb); | 77 ui_controls::LEFT, ui_controls::DOWN, move_chain_cb); |
79 | 78 |
80 ui_controls::SendMouseMoveNotifyWhenDone(x + drag_path[0].x(), | 79 ui_controls::SendMouseMoveNotifyWhenDone(x + drag_path[0].x(), |
81 y + drag_path[0].y(), | 80 y + drag_path[0].y(), |
82 move_chain_cb); | 81 move_chain_cb); |
83 } else { | 82 } else { |
84 AutomationMsg_WindowDrag::WriteReplyParams(reply_message, false); | 83 AutomationMsg_WindowDrag::WriteReplyParams(reply_message, false); |
85 Send(reply_message); | 84 Send(reply_message); |
86 } | 85 } |
87 } | 86 } |
OLD | NEW |