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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_screen_x11.h

Issue 2489873002: Change GetAllDisplays() in all screens to return a const vector&. (Closed)
Patch Set: roll back to rebase as dummy_screen_android is reverted 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 23 matching lines...) Expand all
34 public: 34 public:
35 DesktopScreenX11(); 35 DesktopScreenX11();
36 36
37 ~DesktopScreenX11() override; 37 ~DesktopScreenX11() override;
38 38
39 // Overridden from display::Screen: 39 // Overridden from display::Screen:
40 gfx::Point GetCursorScreenPoint() override; 40 gfx::Point GetCursorScreenPoint() override;
41 bool IsWindowUnderCursor(gfx::NativeWindow window) override; 41 bool IsWindowUnderCursor(gfx::NativeWindow window) override;
42 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; 42 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
43 int GetNumDisplays() const override; 43 int GetNumDisplays() const override;
44 std::vector<display::Display> GetAllDisplays() const override; 44 const std::vector<display::Display>& GetAllDisplays() const override;
45 display::Display GetDisplayNearestWindow( 45 display::Display GetDisplayNearestWindow(
46 gfx::NativeView window) const override; 46 gfx::NativeView window) const override;
47 display::Display GetDisplayNearestPoint( 47 display::Display GetDisplayNearestPoint(
48 const gfx::Point& point) const override; 48 const gfx::Point& point) const override;
49 display::Display GetDisplayMatching( 49 display::Display GetDisplayMatching(
50 const gfx::Rect& match_rect) const override; 50 const gfx::Rect& match_rect) const override;
51 display::Display GetPrimaryDisplay() const override; 51 display::Display GetPrimaryDisplay() const override;
52 void AddObserver(display::DisplayObserver* observer) override; 52 void AddObserver(display::DisplayObserver* observer) override;
53 void RemoveObserver(display::DisplayObserver* observer) override; 53 void RemoveObserver(display::DisplayObserver* observer) override;
54 54
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 display::DisplayChangeNotifier change_notifier_; 98 display::DisplayChangeNotifier change_notifier_;
99 99
100 ui::X11AtomCache atom_cache_; 100 ui::X11AtomCache atom_cache_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11); 102 DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11);
103 }; 103 };
104 104
105 } // namespace views 105 } // namespace views
106 106
107 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ 107 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_
OLDNEW
« no previous file with comments | « ui/views/mus/window_manager_connection.cc ('k') | ui/views/widget/desktop_aura/desktop_screen_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698