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

Side by Side Diff: ui/views/controls/menu/menu_controller_unittest.cc

Issue 685793002: Move all event related devices from ui/events/ to ui/events/devices/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@internal-touchscreens
Patch Set: fix ozone Created 6 years, 1 month 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
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/views/controls/menu/menu_controller.h" 5 #include "ui/views/controls/menu/menu_controller.h"
6 6
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "ui/aura/scoped_window_targeter.h" 8 #include "ui/aura/scoped_window_targeter.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 #include "ui/events/event_targeter.h" 10 #include "ui/events/event_targeter.h"
11 #include "ui/events/platform/platform_event_source.h" 11 #include "ui/events/platform/platform_event_source.h"
12 #include "ui/views/controls/menu/menu_item_view.h" 12 #include "ui/views/controls/menu/menu_item_view.h"
13 #include "ui/views/test/views_test_base.h" 13 #include "ui/views/test/views_test_base.h"
14 #include "ui/wm/public/dispatcher_client.h" 14 #include "ui/wm/public/dispatcher_client.h"
15 15
16 #if defined(OS_WIN) 16 #if defined(OS_WIN)
17 #include "base/message_loop/message_pump_dispatcher.h" 17 #include "base/message_loop/message_pump_dispatcher.h"
18 #elif defined(USE_X11) 18 #elif defined(USE_X11)
19 #include <X11/Xlib.h> 19 #include <X11/Xlib.h>
20 #undef Bool 20 #undef Bool
21 #undef None 21 #undef None
22 #include "ui/events/devices/x11/device_data_manager_x11.h"
22 #include "ui/events/test/events_test_utils_x11.h" 23 #include "ui/events/test/events_test_utils_x11.h"
23 #include "ui/events/x/device_data_manager_x11.h"
24 #elif defined(USE_OZONE) 24 #elif defined(USE_OZONE)
25 #include "ui/events/event.h" 25 #include "ui/events/event.h"
26 #endif 26 #endif
27 27
28 namespace views { 28 namespace views {
29 29
30 namespace { 30 namespace {
31 31
32 class TestMenuItemView : public MenuItemView { 32 class TestMenuItemView : public MenuItemView {
33 public: 33 public:
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 FROM_HERE, 260 FROM_HERE,
261 base::Bind(&MenuControllerTest::DispatchEscapeAndExpect, 261 base::Bind(&MenuControllerTest::DispatchEscapeAndExpect,
262 base::Unretained(this), 262 base::Unretained(this),
263 MenuController::EXIT_NONE)); 263 MenuController::EXIT_NONE));
264 RunMenu(owner.get()); 264 RunMenu(owner.get());
265 } 265 }
266 } 266 }
267 #endif 267 #endif
268 268
269 } // namespace views 269 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698