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

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

Issue 2598963005: Include-what-you-use for WrapUnique/MakeUnique. (Closed)
Patch Set: restore order of includes in x11_topmost_window_finder_interactive_uitest.cc Created 3 years, 12 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 "ui/views/widget/desktop_aura/x11_topmost_window_finder.h" 5 #include "ui/views/widget/desktop_aura/x11_topmost_window_finder.h"
6 6
7 #include <X11/Xlib.h> 7 #include <X11/Xlib.h>
8 #include <X11/Xregion.h> 8 #include <X11/Xregion.h>
9 #include <X11/extensions/shape.h> 9 #include <X11/extensions/shape.h>
10 #include <stddef.h> 10 #include <stddef.h>
11 11
12 #include <algorithm> 12 #include <algorithm>
13 #include <memory> 13 #include <memory>
14 #include <vector> 14 #include <vector>
15 15
16 // Get rid of X11 macros which conflict with gtest. 16 // Get rid of X11 macros which conflict with gtest.
17 #undef Bool 17 #undef Bool
18 #undef None 18 #undef None
19 19
20 #include "base/macros.h" 20 #include "base/macros.h"
21 #include "base/memory/ptr_util.h"
21 #include "third_party/skia/include/core/SkRect.h" 22 #include "third_party/skia/include/core/SkRect.h"
22 #include "third_party/skia/include/core/SkRegion.h" 23 #include "third_party/skia/include/core/SkRegion.h"
23 #include "ui/aura/window.h" 24 #include "ui/aura/window.h"
24 #include "ui/aura/window_tree_host.h" 25 #include "ui/aura/window_tree_host.h"
25 #include "ui/events/platform/x11/x11_event_source.h" 26 #include "ui/events/platform/x11/x11_event_source.h"
26 #include "ui/gfx/path.h" 27 #include "ui/gfx/path.h"
27 #include "ui/gfx/path_x11.h" 28 #include "ui/gfx/path_x11.h"
28 #include "ui/gfx/x/x11_atom_cache.h" 29 #include "ui/gfx/x/x11_atom_cache.h"
29 #include "ui/views/test/views_interactive_ui_test_base.h" 30 #include "ui/views/test/views_interactive_ui_test_base.h"
30 #include "ui/views/test/x11_property_change_waiter.h" 31 #include "ui/views/test/x11_property_change_waiter.h"
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 418
418 EXPECT_EQ(xid, FindTopmostXWindowAt(110, 110)); 419 EXPECT_EQ(xid, FindTopmostXWindowAt(110, 110));
419 EXPECT_EQ(menu_xid, FindTopmostXWindowAt(150, 120)); 420 EXPECT_EQ(menu_xid, FindTopmostXWindowAt(150, 120));
420 EXPECT_EQ(menu_xid, FindTopmostXWindowAt(210, 120)); 421 EXPECT_EQ(menu_xid, FindTopmostXWindowAt(210, 120));
421 422
422 XDestroyWindow(xdisplay(), xid); 423 XDestroyWindow(xdisplay(), xid);
423 XDestroyWindow(xdisplay(), menu_xid); 424 XDestroyWindow(xdisplay(), menu_xid);
424 } 425 }
425 426
426 } // namespace views 427 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698