| OLD | NEW |
| 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_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ |
| 6 #define UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ | 6 #define UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // not automatically created until the connection to mus has been | 84 // not automatically created until the connection to mus has been |
| 85 // established. | 85 // established. |
| 86 virtual bool WaitForInitialDisplays() = 0; | 86 virtual bool WaitForInitialDisplays() = 0; |
| 87 | 87 |
| 88 // Used by the window manager to create a new display. This is only useful if | 88 // Used by the window manager to create a new display. This is only useful if |
| 89 // the WindowTreeClient was configured not to automatically create displays | 89 // the WindowTreeClient was configured not to automatically create displays |
| 90 // (see ConnectAsWindowManager()). The caller needs to configure | 90 // (see ConnectAsWindowManager()). The caller needs to configure |
| 91 // DisplayInitParams on the returned object. | 91 // DisplayInitParams on the returned object. |
| 92 virtual WindowTreeHostMusInitParams CreateInitParamsForNewDisplay() = 0; | 92 virtual WindowTreeHostMusInitParams CreateInitParamsForNewDisplay() = 0; |
| 93 | 93 |
| 94 // Configures the displays. This is used when the window manager manually |
| 95 // configures display roots. |
| 96 virtual void SetDisplayConfiguration( |
| 97 const std::vector<display::Display>& displays, |
| 98 std::vector<ui::mojom::WmViewportMetricsPtr> viewport_metrics, |
| 99 int64_t primary_display_id) = 0; |
| 100 |
| 94 protected: | 101 protected: |
| 95 virtual ~WindowManagerClient() {} | 102 virtual ~WindowManagerClient() {} |
| 96 }; | 103 }; |
| 97 | 104 |
| 98 // Used by clients implementing a window manager. | 105 // Used by clients implementing a window manager. |
| 99 // TODO(sky): this should be called WindowManager, but that's rather confusing | 106 // TODO(sky): this should be called WindowManager, but that's rather confusing |
| 100 // currently. | 107 // currently. |
| 101 class AURA_EXPORT WindowManagerDelegate { | 108 class AURA_EXPORT WindowManagerDelegate { |
| 102 public: | 109 public: |
| 103 // Called once to give the delegate access to functions only exposed to | 110 // Called once to give the delegate access to functions only exposed to |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 // window. | 217 // window. |
| 211 virtual void OnWmDeactivateWindow(Window* window) = 0; | 218 virtual void OnWmDeactivateWindow(Window* window) = 0; |
| 212 | 219 |
| 213 protected: | 220 protected: |
| 214 virtual ~WindowManagerDelegate() {} | 221 virtual ~WindowManagerDelegate() {} |
| 215 }; | 222 }; |
| 216 | 223 |
| 217 } // namespace ui | 224 } // namespace ui |
| 218 | 225 |
| 219 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ | 226 #endif // UI_AURA_MUS_WINDOW_MANAGER_DELEGATE_H_ |
| OLD | NEW |