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

Side by Side Diff: chrome/browser/automation/automation_provider_gtk.cc

Issue 9390038: Move automation/ui_controls to ui/ui_controls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win_aura fix, sync Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
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/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/automation/ui_controls.h"
16 #include "chrome/browser/ui/browser.h" 15 #include "chrome/browser/ui/browser.h"
17 #include "chrome/browser/ui/gtk/browser_window_gtk.h" 16 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
18 #include "chrome/browser/ui/gtk/gtk_util.h" 17 #include "chrome/browser/ui/gtk/gtk_util.h"
19 #include "chrome/browser/ui/gtk/view_id_util.h" 18 #include "chrome/browser/ui/gtk/view_id_util.h"
20 #include "chrome/common/automation_messages.h" 19 #include "chrome/common/automation_messages.h"
21 #include "ui/gfx/point.h" 20 #include "ui/gfx/point.h"
22 #include "ui/gfx/rect.h" 21 #include "ui/gfx/rect.h"
22 #include "ui/ui_controls/ui_controls.h"
23 23
24 namespace { 24 namespace {
25 25
26 // This function sends a WindowDragResponse message with the appropriate routing 26 // This function sends a WindowDragResponse message with the appropriate routing
27 // ID to the automation proxy. 27 // ID to the automation proxy.
28 void SendWindowDragResponse(AutomationProvider* provider, 28 void SendWindowDragResponse(AutomationProvider* provider,
29 IPC::Message* reply_message) { 29 IPC::Message* reply_message) {
30 AutomationMsg_WindowDrag::WriteReplyParams(reply_message, true); 30 AutomationMsg_WindowDrag::WriteReplyParams(reply_message, true);
31 provider->Send(reply_message); 31 provider->Send(reply_message);
32 } 32 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 dest_x, dest_y, move_chain_cb); 72 dest_x, dest_y, move_chain_cb);
73 move_chain_cb = base::Bind( 73 move_chain_cb = base::Bind(
74 base::IgnoreResult(&ui_controls::SendMouseMoveNotifyWhenDone), 74 base::IgnoreResult(&ui_controls::SendMouseMoveNotifyWhenDone),
75 half_step_x, half_step_y, move_chain_cb); 75 half_step_x, half_step_y, move_chain_cb);
76 } 76 }
77 move_chain_cb = base::Bind( 77 move_chain_cb = base::Bind(
78 base::IgnoreResult(&ui_controls::SendMouseEventsNotifyWhenDone), 78 base::IgnoreResult(&ui_controls::SendMouseEventsNotifyWhenDone),
79 ui_controls::LEFT, ui_controls::DOWN, move_chain_cb); 79 ui_controls::LEFT, ui_controls::DOWN, move_chain_cb);
80 80
81 ui_controls::SendMouseMoveNotifyWhenDone(x + drag_path[0].x(), 81 ui_controls::SendMouseMoveNotifyWhenDone(x + drag_path[0].x(),
82 y + drag_path[0].y(), 82 y + drag_path[0].y(),
83 move_chain_cb); 83 move_chain_cb);
84 } else { 84 } else {
85 AutomationMsg_WindowDrag::WriteReplyParams(reply_message, false); 85 AutomationMsg_WindowDrag::WriteReplyParams(reply_message, false);
86 Send(reply_message); 86 Send(reply_message);
87 } 87 }
88 } 88 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/automation/automation_provider_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698