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

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

Issue 8742030: views: Move view.h to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and fix conflicts Created 9 years 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/ui_controls.h" 5 #include "chrome/browser/automation/ui_controls.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/automation/ui_controls_internal.h" 8 #include "chrome/browser/automation/ui_controls_internal.h"
9 #include "ui/aura/desktop.h" 9 #include "ui/aura/desktop.h"
10 #include "views/view.h" 10 #include "ui/views/view.h"
11 11
12 namespace ui_controls { 12 namespace ui_controls {
13 13
14 bool SendKeyPress(gfx::NativeWindow window, 14 bool SendKeyPress(gfx::NativeWindow window,
15 ui::KeyboardCode key, 15 ui::KeyboardCode key,
16 bool control, 16 bool control,
17 bool shift, 17 bool shift,
18 bool alt, 18 bool alt,
19 bool command) { 19 bool command) {
20 DCHECK(!command); // No command key on Aura 20 DCHECK(!command); // No command key on Aura
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const base::Closure& task) { 63 const base::Closure& task) {
64 DCHECK(view); 64 DCHECK(view);
65 DCHECK(view->GetWidget()); 65 DCHECK(view->GetWidget());
66 gfx::Point view_center(view->width() / 2, view->height() / 2); 66 gfx::Point view_center(view->width() / 2, view->height() / 2);
67 views::View::ConvertPointToScreen(view, &view_center); 67 views::View::ConvertPointToScreen(view, &view_center);
68 SendMouseMove(view_center.x(), view_center.y()); 68 SendMouseMove(view_center.x(), view_center.y());
69 SendMouseEventsNotifyWhenDone(button, state, task); 69 SendMouseEventsNotifyWhenDone(button, state, task);
70 } 70 }
71 71
72 } // namespace ui_controls 72 } // namespace ui_controls
OLDNEW
« no previous file with comments | « chrome/browser/automation/testing_automation_provider_views.cc ('k') | chrome/browser/automation/ui_controls_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698