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

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

Issue 2468093003: Makes Screen functions take a const gfx::NativeView (Closed)
Patch Set: merge Created 4 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 | « headless/lib/browser/headless_screen.cc ('k') | ui/aura/test/test_screen.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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const gfx::Rect& old_bounds, 51 const gfx::Rect& old_bounds,
52 const gfx::Rect& new_bounds) override; 52 const gfx::Rect& new_bounds) override;
53 void OnWindowDestroying(Window* window) override; 53 void OnWindowDestroying(Window* window) override;
54 54
55 // display::Screen overrides: 55 // display::Screen overrides:
56 gfx::Point GetCursorScreenPoint() override; 56 gfx::Point GetCursorScreenPoint() override;
57 bool IsWindowUnderCursor(gfx::NativeWindow window) override; 57 bool IsWindowUnderCursor(gfx::NativeWindow window) override;
58 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; 58 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
59 int GetNumDisplays() const override; 59 int GetNumDisplays() const override;
60 std::vector<display::Display> GetAllDisplays() const override; 60 std::vector<display::Display> GetAllDisplays() const override;
61 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override; 61 display::Display GetDisplayNearestWindow(
62 const gfx::NativeView view) const override;
62 display::Display GetDisplayNearestPoint( 63 display::Display GetDisplayNearestPoint(
63 const gfx::Point& point) const override; 64 const gfx::Point& point) const override;
64 display::Display GetDisplayMatching( 65 display::Display GetDisplayMatching(
65 const gfx::Rect& match_rect) const override; 66 const gfx::Rect& match_rect) const override;
66 void AddObserver(display::DisplayObserver* observer) override; 67 void AddObserver(display::DisplayObserver* observer) override;
67 void RemoveObserver(display::DisplayObserver* observer) override; 68 void RemoveObserver(display::DisplayObserver* observer) override;
68 69
69 private: 70 private:
70 TestScreen(const gfx::Rect& screen_bounds, 71 TestScreen(const gfx::Rect& screen_bounds,
71 WindowTreeClient* window_tree_client); 72 WindowTreeClient* window_tree_client);
72 73
73 aura::WindowTreeHost* host_; 74 aura::WindowTreeHost* host_;
74 75
75 display::Display display_; 76 display::Display display_;
76 77
77 float ui_scale_; 78 float ui_scale_;
78 79
79 WindowTreeClient* window_tree_client_; 80 WindowTreeClient* window_tree_client_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(TestScreen); 82 DISALLOW_COPY_AND_ASSIGN(TestScreen);
82 }; 83 };
83 84
84 } // namespace aura 85 } // namespace aura
85 86
86 #endif // UI_AURA_TEST_TEST_SCREEN_H_ 87 #endif // UI_AURA_TEST_TEST_SCREEN_H_
OLDNEW
« no previous file with comments | « headless/lib/browser/headless_screen.cc ('k') | ui/aura/test/test_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698