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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11_unittest.cc

Issue 1965073002: Rename gfx::Display to display::Display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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
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 <stddef.h>
6 #include <X11/extensions/shape.h>
5 #include <X11/Xlib.h> 7 #include <X11/Xlib.h>
6 #include <X11/extensions/shape.h>
7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
11 11
12 // Get rid of X11 macros which conflict with gtest. 12 // Get rid of X11 macros which conflict with gtest.
13 // It is necessary to include this header before the rest so that Bool can be 13 // It is necessary to include this header before the rest so that Bool can be
14 // undefined. 14 // undefined.
15 #include "ui/events/test/events_test_utils_x11.h" 15 #include "ui/events/test/events_test_utils_x11.h"
16 #undef Bool 16 #undef Bool
17 #undef None 17 #undef None
18 18
19 #include "base/command_line.h" 19 #include "base/command_line.h"
20 #include "base/macros.h" 20 #include "base/macros.h"
21 #include "base/run_loop.h" 21 #include "base/run_loop.h"
22 #include "ui/aura/window.h" 22 #include "ui/aura/window.h"
23 #include "ui/aura/window_tree_host.h" 23 #include "ui/aura/window_tree_host.h"
24 #include "ui/base/hit_test.h" 24 #include "ui/base/hit_test.h"
25 #include "ui/base/x/x11_util.h" 25 #include "ui/base/x/x11_util.h"
26 #include "ui/display/display_switches.h"
26 #include "ui/events/devices/x11/touch_factory_x11.h" 27 #include "ui/events/devices/x11/touch_factory_x11.h"
27 #include "ui/events/platform/x11/x11_event_source_glib.h" 28 #include "ui/events/platform/x11/x11_event_source_glib.h"
28 #include "ui/events/test/platform_event_source_test_api.h" 29 #include "ui/events/test/platform_event_source_test_api.h"
29 #include "ui/gfx/geometry/point.h" 30 #include "ui/gfx/geometry/point.h"
30 #include "ui/gfx/geometry/rect.h" 31 #include "ui/gfx/geometry/rect.h"
31 #include "ui/gfx/path.h" 32 #include "ui/gfx/path.h"
32 #include "ui/gfx/switches.h"
33 #include "ui/gfx/x/x11_atom_cache.h" 33 #include "ui/gfx/x/x11_atom_cache.h"
34 #include "ui/views/test/views_test_base.h" 34 #include "ui/views/test/views_test_base.h"
35 #include "ui/views/test/x11_property_change_waiter.h" 35 #include "ui/views/test/x11_property_change_waiter.h"
36 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" 36 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
37 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h" 37 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h"
38 #include "ui/views/widget/widget_delegate.h" 38 #include "ui/views/widget/widget_delegate.h"
39 #include "ui/views/window/non_client_view.h" 39 #include "ui/views/window/non_client_view.h"
40 40
41 namespace views { 41 namespace views {
42 42
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 EXPECT_EQ(ui::ET_MOUSEWHEEL, second_recorder.mouse_events()[0].type()); 642 EXPECT_EQ(ui::ET_MOUSEWHEEL, second_recorder.mouse_events()[0].type());
643 EXPECT_EQ(gfx::Point(-25, -25).ToString(), 643 EXPECT_EQ(gfx::Point(-25, -25).ToString(),
644 second_recorder.mouse_events()[0].location().ToString()); 644 second_recorder.mouse_events()[0].location().ToString());
645 645
646 PretendCapture(nullptr); 646 PretendCapture(nullptr);
647 first.GetNativeWindow()->RemovePreTargetHandler(&first_recorder); 647 first.GetNativeWindow()->RemovePreTargetHandler(&first_recorder);
648 second.GetNativeWindow()->RemovePreTargetHandler(&second_recorder); 648 second.GetNativeWindow()->RemovePreTargetHandler(&second_recorder);
649 } 649 }
650 650
651 } // namespace views 651 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_cursor_loader_updater.h ('k') | ui/wm/core/native_cursor_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698