| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 } | 90 } |
| 91 static const WmWindowMus* AsWmWindowMus(const WmWindow* window) { | 91 static const WmWindowMus* AsWmWindowMus(const WmWindow* window) { |
| 92 return static_cast<const WmWindowMus*>(window); | 92 return static_cast<const WmWindowMus*>(window); |
| 93 } | 93 } |
| 94 | 94 |
| 95 wm::WindowState* GetWindowState() { return WmWindow::GetWindowState(); } | 95 wm::WindowState* GetWindowState() { return WmWindow::GetWindowState(); } |
| 96 | 96 |
| 97 // See description of |children_use_extended_hit_region_|. | 97 // See description of |children_use_extended_hit_region_|. |
| 98 bool ShouldUseExtendedHitRegion() const; | 98 bool ShouldUseExtendedHitRegion() const; |
| 99 | 99 |
| 100 // Returns true if this window is considered a shell window container. |
| 101 bool IsContainer() const; |
| 102 |
| 100 // WmWindow: | 103 // WmWindow: |
| 101 const WmWindow* GetRootWindow() const override; | 104 const WmWindow* GetRootWindow() const override; |
| 102 WmRootWindowController* GetRootWindowController() override; | 105 WmRootWindowController* GetRootWindowController() override; |
| 103 WmShell* GetShell() const override; | 106 WmShell* GetShell() const override; |
| 104 void SetName(const char* name) override; | 107 void SetName(const char* name) override; |
| 105 base::string16 GetTitle() const override; | 108 base::string16 GetTitle() const override; |
| 106 void SetShellWindowId(int id) override; | 109 void SetShellWindowId(int id) override; |
| 107 int GetShellWindowId() const override; | 110 int GetShellWindowId() const override; |
| 108 WmWindow* GetChildByShellWindowId(int id) override; | 111 WmWindow* GetChildByShellWindowId(int id) override; |
| 109 ui::wm::WindowType GetType() const override; | 112 ui::wm::WindowType GetType() const override; |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 // resizing easier. | 253 // resizing easier. |
| 251 bool children_use_extended_hit_region_ = false; | 254 bool children_use_extended_hit_region_ = false; |
| 252 | 255 |
| 253 DISALLOW_COPY_AND_ASSIGN(WmWindowMus); | 256 DISALLOW_COPY_AND_ASSIGN(WmWindowMus); |
| 254 }; | 257 }; |
| 255 | 258 |
| 256 } // namespace mus | 259 } // namespace mus |
| 257 } // namespace ash | 260 } // namespace ash |
| 258 | 261 |
| 259 #endif // ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ | 262 #endif // ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ |
| OLD | NEW |