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

Side by Side Diff: ui/display/screen_base.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 | « ui/display/screen.h ('k') | ui/display/screen_base.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SCREEN_BASE_H_ 5 #ifndef UI_DISPLAY_SCREEN_BASE_H_
6 #define UI_DISPLAY_SCREEN_BASE_H_ 6 #define UI_DISPLAY_SCREEN_BASE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/display/display.h" 10 #include "ui/display/display.h"
(...skipping 15 matching lines...) Expand all
26 // Invoked when a display changed in some way, including being added. 26 // Invoked when a display changed in some way, including being added.
27 // If |is_primary| is true, |changed_display| is the primary display. 27 // If |is_primary| is true, |changed_display| is the primary display.
28 void ProcessDisplayChanged(const Display& changed_display, bool is_primary); 28 void ProcessDisplayChanged(const Display& changed_display, bool is_primary);
29 29
30 private: 30 private:
31 // Screen: 31 // Screen:
32 gfx::Point GetCursorScreenPoint() override; 32 gfx::Point GetCursorScreenPoint() override;
33 bool IsWindowUnderCursor(gfx::NativeWindow window) override; 33 bool IsWindowUnderCursor(gfx::NativeWindow window) override;
34 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; 34 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
35 Display GetPrimaryDisplay() const override; 35 Display GetPrimaryDisplay() const override;
36 Display GetDisplayNearestWindow(gfx::NativeView view) const override; 36 Display GetDisplayNearestWindow(const gfx::NativeView view) const override;
37 Display GetDisplayNearestPoint(const gfx::Point& point) const override; 37 Display GetDisplayNearestPoint(const gfx::Point& point) const override;
38 int GetNumDisplays() const override; 38 int GetNumDisplays() const override;
39 std::vector<Display> GetAllDisplays() const override; 39 std::vector<Display> GetAllDisplays() const override;
40 Display GetDisplayMatching(const gfx::Rect& match_rect) const override; 40 Display GetDisplayMatching(const gfx::Rect& match_rect) const override;
41 void AddObserver(DisplayObserver* observer) override; 41 void AddObserver(DisplayObserver* observer) override;
42 void RemoveObserver(DisplayObserver* observer) override; 42 void RemoveObserver(DisplayObserver* observer) override;
43 43
44 DisplayList display_list_; 44 DisplayList display_list_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(ScreenBase); 46 DISALLOW_COPY_AND_ASSIGN(ScreenBase);
47 }; 47 };
48 48
49 } // namespace display 49 } // namespace display
50 50
51 #endif // UI_DISPLAY_SCREEN_BASE_H_ 51 #endif // UI_DISPLAY_SCREEN_BASE_H_
OLDNEW
« no previous file with comments | « ui/display/screen.h ('k') | ui/display/screen_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698