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

Side by Side Diff: ui/aura/test/test_screen.h

Issue 2751833004: Reland "Add display::GetDisplayNearestView" (Closed)
Patch Set: Created 3 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
« no previous file with comments | « ui/app_list/presenter/app_list_presenter_impl.cc ('k') | ui/base/layout.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_AURA_TEST_TEST_SCREEN_H_ 5 #ifndef UI_AURA_TEST_TEST_SCREEN_H_
6 #define UI_AURA_TEST_TEST_SCREEN_H_ 6 #define UI_AURA_TEST_TEST_SCREEN_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/aura/window_observer.h" 10 #include "ui/aura/window_observer.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // WindowObserver overrides: 46 // WindowObserver overrides:
47 void OnWindowBoundsChanged(Window* window, 47 void OnWindowBoundsChanged(Window* window,
48 const gfx::Rect& old_bounds, 48 const gfx::Rect& old_bounds,
49 const gfx::Rect& new_bounds) override; 49 const gfx::Rect& new_bounds) override;
50 void OnWindowDestroying(Window* window) override; 50 void OnWindowDestroying(Window* window) override;
51 51
52 // display::Screen overrides: 52 // display::Screen overrides:
53 gfx::Point GetCursorScreenPoint() override; 53 gfx::Point GetCursorScreenPoint() override;
54 bool IsWindowUnderCursor(gfx::NativeWindow window) override; 54 bool IsWindowUnderCursor(gfx::NativeWindow window) override;
55 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; 55 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
56 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override; 56 display::Display GetDisplayNearestWindow(
57 gfx::NativeWindow window) const override;
57 58
58 private: 59 private:
59 TestScreen(const gfx::Rect& screen_bounds, 60 TestScreen(const gfx::Rect& screen_bounds,
60 WindowTreeClient* window_tree_client); 61 WindowTreeClient* window_tree_client);
61 62
62 aura::WindowTreeHost* host_; 63 aura::WindowTreeHost* host_;
63 64
64 float ui_scale_; 65 float ui_scale_;
65 66
66 WindowTreeClient* window_tree_client_; 67 WindowTreeClient* window_tree_client_;
67 68
68 DISALLOW_COPY_AND_ASSIGN(TestScreen); 69 DISALLOW_COPY_AND_ASSIGN(TestScreen);
69 }; 70 };
70 71
71 } // namespace aura 72 } // namespace aura
72 73
73 #endif // UI_AURA_TEST_TEST_SCREEN_H_ 74 #endif // UI_AURA_TEST_TEST_SCREEN_H_
OLDNEW
« no previous file with comments | « ui/app_list/presenter/app_list_presenter_impl.cc ('k') | ui/base/layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698