OLD | NEW |
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_VIEWS_MUS_SCREEN_MUS_H_ | 5 #ifndef UI_VIEWS_MUS_SCREEN_MUS_H_ |
6 #define UI_VIEWS_MUS_SCREEN_MUS_H_ | 6 #define UI_VIEWS_MUS_SCREEN_MUS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 display::Display GetDisplayNearestPoint( | 50 display::Display GetDisplayNearestPoint( |
51 const gfx::Point& point) const override; | 51 const gfx::Point& point) const override; |
52 int GetNumDisplays() const override; | 52 int GetNumDisplays() const override; |
53 std::vector<display::Display> GetAllDisplays() const override; | 53 std::vector<display::Display> GetAllDisplays() const override; |
54 display::Display GetDisplayMatching( | 54 display::Display GetDisplayMatching( |
55 const gfx::Rect& match_rect) const override; | 55 const gfx::Rect& match_rect) const override; |
56 void AddObserver(display::DisplayObserver* observer) override; | 56 void AddObserver(display::DisplayObserver* observer) override; |
57 void RemoveObserver(display::DisplayObserver* observer) override; | 57 void RemoveObserver(display::DisplayObserver* observer) override; |
58 | 58 |
59 // ui::mojom::DisplayManager: | 59 // ui::mojom::DisplayManager: |
60 void OnDisplays( | 60 void OnDisplays(mojo::Array<ui::mojom::WsDisplayPtr> ws_displays) override; |
61 mojo::Array<ui::mojom::DisplayPtr> transport_displays) override; | |
62 void OnDisplaysChanged( | 61 void OnDisplaysChanged( |
63 mojo::Array<ui::mojom::DisplayPtr> transport_displays) override; | 62 mojo::Array<ui::mojom::WsDisplayPtr> ws_displays) override; |
64 void OnDisplayRemoved(int64_t id) override; | 63 void OnDisplayRemoved(int64_t id) override; |
65 | 64 |
66 ScreenMusDelegate* delegate_; // Can be nullptr. | 65 ScreenMusDelegate* delegate_; // Can be nullptr. |
67 ui::mojom::DisplayManagerPtr display_manager_; | 66 ui::mojom::DisplayManagerPtr display_manager_; |
68 mojo::Binding<ui::mojom::DisplayManagerObserver> | 67 mojo::Binding<ui::mojom::DisplayManagerObserver> |
69 display_manager_observer_binding_; | 68 display_manager_observer_binding_; |
70 DisplayList display_list_; | 69 DisplayList display_list_; |
71 | 70 |
72 DISALLOW_COPY_AND_ASSIGN(ScreenMus); | 71 DISALLOW_COPY_AND_ASSIGN(ScreenMus); |
73 }; | 72 }; |
74 | 73 |
75 } // namespace views | 74 } // namespace views |
76 | 75 |
77 #endif // UI_VIEWS_MUS_SCREEN_MUS_H_ | 76 #endif // UI_VIEWS_MUS_SCREEN_MUS_H_ |
OLD | NEW |