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

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

Issue 2361283002: Add GetDisplayWithDisplayId to display::Screen. (Closed)
Patch Set: test Created 4 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_DISPLAY_TEST_TEST_SCREEN_H_ 5 #ifndef UI_DISPLAY_TEST_TEST_SCREEN_H_
6 #define UI_DISPLAY_TEST_TEST_SCREEN_H_ 6 #define UI_DISPLAY_TEST_TEST_SCREEN_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 15 matching lines...) Expand all
26 ~TestScreen() override; 26 ~TestScreen() override;
27 27
28 Display* display() { return &display_; } 28 Display* display() { return &display_; }
29 29
30 // display::Screen: 30 // display::Screen:
31 gfx::Point GetCursorScreenPoint() override; 31 gfx::Point GetCursorScreenPoint() override;
32 bool IsWindowUnderCursor(gfx::NativeWindow window) override; 32 bool IsWindowUnderCursor(gfx::NativeWindow window) override;
33 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; 33 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
34 int GetNumDisplays() const override; 34 int GetNumDisplays() const override;
35 std::vector<Display> GetAllDisplays() const override; 35 std::vector<Display> GetAllDisplays() const override;
36 bool GetDisplayWithDisplayId(int64_t display_id,
37 display::Display* display) const override;
36 Display GetDisplayNearestWindow(gfx::NativeView view) const override; 38 Display GetDisplayNearestWindow(gfx::NativeView view) const override;
37 Display GetDisplayNearestPoint(const gfx::Point& point) const override; 39 Display GetDisplayNearestPoint(const gfx::Point& point) const override;
38 Display GetDisplayMatching(const gfx::Rect& match_rect) const override; 40 Display GetDisplayMatching(const gfx::Rect& match_rect) const override;
39 Display GetPrimaryDisplay() const override; 41 Display GetPrimaryDisplay() const override;
40 void AddObserver(DisplayObserver* observer) override; 42 void AddObserver(DisplayObserver* observer) override;
41 void RemoveObserver(DisplayObserver* observer) override; 43 void RemoveObserver(DisplayObserver* observer) override;
42 44
43 private: 45 private:
44 // The only display. 46 // The only display.
45 Display display_; 47 Display display_;
46 48
47 DISALLOW_COPY_AND_ASSIGN(TestScreen); 49 DISALLOW_COPY_AND_ASSIGN(TestScreen);
48 }; 50 };
49 51
50 } // namespace test 52 } // namespace test
51 } // namespace display 53 } // namespace display
52 54
53 #endif // UI_DISPLAY_TEST_TEST_SCREEN_H_ 55 #endif // UI_DISPLAY_TEST_TEST_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698