| 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 ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ | 5 #ifndef ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ |
| 6 #define ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ | 6 #define ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/common/shell_window_ids.h" | 10 #include "ash/common/shell_window_ids.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // For example, overview mode creates a number of widgets. These widgets are | 40 // For example, overview mode creates a number of widgets. These widgets are |
| 41 // created with a type of INTERNAL. | 41 // created with a type of INTERNAL. |
| 42 INTERNAL, | 42 INTERNAL, |
| 43 | 43 |
| 44 // The widget was created for a client. In other words there is a client | 44 // The widget was created for a client. In other words there is a client |
| 45 // embedded in the mus::Window. For example, when Chrome creates a new | 45 // embedded in the mus::Window. For example, when Chrome creates a new |
| 46 // browser window the window manager is asked to create the mus::Window. | 46 // browser window the window manager is asked to create the mus::Window. |
| 47 // The window manager creates a mus::Window and a views::Widget to show the | 47 // The window manager creates a mus::Window and a views::Widget to show the |
| 48 // non-client frame decorations. In this case the creation type is | 48 // non-client frame decorations. In this case the creation type is |
| 49 // FOR_CLIENT. | 49 // FOR_CLIENT. |
| 50 | |
| 51 FOR_CLIENT, | 50 FOR_CLIENT, |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 explicit WmWindowMus(::mus::Window* window); | 53 explicit WmWindowMus(::mus::Window* window); |
| 55 // NOTE: this class is owned by the corresponding window. You shouldn't delete | 54 // NOTE: this class is owned by the corresponding window. You shouldn't delete |
| 56 // TODO(sky): friend deleter and make private. | 55 // TODO(sky): friend deleter and make private. |
| 57 ~WmWindowMus() override; | 56 ~WmWindowMus() override; |
| 58 | 57 |
| 59 // Returns a WmWindow for an mus::Window, creating if necessary. | 58 // Returns a WmWindow for an mus::Window, creating if necessary. |
| 60 static WmWindowMus* Get(::mus::Window* window); | 59 static WmWindowMus* Get(::mus::Window* window); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 void SetRestoreShowState(ui::WindowShowState show_state) override; | 168 void SetRestoreShowState(ui::WindowShowState show_state) override; |
| 170 void SetLockedToRoot(bool value) override; | 169 void SetLockedToRoot(bool value) override; |
| 171 void SetCapture() override; | 170 void SetCapture() override; |
| 172 bool HasCapture() override; | 171 bool HasCapture() override; |
| 173 void ReleaseCapture() override; | 172 void ReleaseCapture() override; |
| 174 bool HasRestoreBounds() const override; | 173 bool HasRestoreBounds() const override; |
| 175 void SetAlwaysOnTop(bool value) override; | 174 void SetAlwaysOnTop(bool value) override; |
| 176 bool IsAlwaysOnTop() const override; | 175 bool IsAlwaysOnTop() const override; |
| 177 void Hide() override; | 176 void Hide() override; |
| 178 void Show() override; | 177 void Show() override; |
| 178 views::Widget* GetInternalWidget() override; |
| 179 void CloseWidget() override; | 179 void CloseWidget() override; |
| 180 bool IsFocused() const override; | 180 bool IsFocused() const override; |
| 181 bool IsActive() const override; | 181 bool IsActive() const override; |
| 182 void Activate() override; | 182 void Activate() override; |
| 183 void Deactivate() override; | 183 void Deactivate() override; |
| 184 void SetFullscreen() override; | 184 void SetFullscreen() override; |
| 185 void Maximize() override; | 185 void Maximize() override; |
| 186 void Minimize() override; | 186 void Minimize() override; |
| 187 void Unminimize() override; | 187 void Unminimize() override; |
| 188 void SetExcludedFromMru(bool) override; | 188 void SetExcludedFromMru(bool) override; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 // resizing easier. | 250 // resizing easier. |
| 251 bool children_use_extended_hit_region_ = false; | 251 bool children_use_extended_hit_region_ = false; |
| 252 | 252 |
| 253 DISALLOW_COPY_AND_ASSIGN(WmWindowMus); | 253 DISALLOW_COPY_AND_ASSIGN(WmWindowMus); |
| 254 }; | 254 }; |
| 255 | 255 |
| 256 } // namespace mus | 256 } // namespace mus |
| 257 } // namespace ash | 257 } // namespace ash |
| 258 | 258 |
| 259 #endif // ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ | 259 #endif // ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ |
| OLD | NEW |