| 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_COMMON_WM_WINDOW_H_ | 5 #ifndef ASH_COMMON_WM_WINDOW_H_ |
| 6 #define ASH_COMMON_WM_WINDOW_H_ | 6 #define ASH_COMMON_WM_WINDOW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 virtual void SetTitle(const base::string16& title) = 0; | 83 virtual void SetTitle(const base::string16& title) = 0; |
| 84 virtual base::string16 GetTitle() const = 0; | 84 virtual base::string16 GetTitle() const = 0; |
| 85 | 85 |
| 86 // See shell_window_ids.h for list of known ids. | 86 // See shell_window_ids.h for list of known ids. |
| 87 virtual void SetShellWindowId(int id) = 0; | 87 virtual void SetShellWindowId(int id) = 0; |
| 88 virtual int GetShellWindowId() const = 0; | 88 virtual int GetShellWindowId() const = 0; |
| 89 virtual WmWindow* GetChildByShellWindowId(int id) = 0; | 89 virtual WmWindow* GetChildByShellWindowId(int id) = 0; |
| 90 | 90 |
| 91 virtual ui::wm::WindowType GetType() const = 0; | 91 virtual ui::wm::WindowType GetType() const = 0; |
| 92 virtual int GetAppType() const = 0; |
| 93 virtual void SetAppType(int app_type) const = 0; |
| 92 | 94 |
| 93 virtual bool IsBubble() = 0; | 95 virtual bool IsBubble() = 0; |
| 94 | 96 |
| 95 // TODO(sky): seems like this shouldn't be exposed. | 97 // TODO(sky): seems like this shouldn't be exposed. |
| 96 virtual ui::Layer* GetLayer() = 0; | 98 virtual ui::Layer* GetLayer() = 0; |
| 97 | 99 |
| 98 virtual display::Display GetDisplayNearestWindow() = 0; | 100 virtual display::Display GetDisplayNearestWindow() = 0; |
| 99 | 101 |
| 100 virtual bool HasNonClientArea() = 0; | 102 virtual bool HasNonClientArea() = 0; |
| 101 virtual int GetNonClientComponent(const gfx::Point& location) = 0; | 103 virtual int GetNonClientComponent(const gfx::Point& location) = 0; |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 324 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
| 323 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 325 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
| 324 | 326 |
| 325 protected: | 327 protected: |
| 326 virtual ~WmWindow() {} | 328 virtual ~WmWindow() {} |
| 327 }; | 329 }; |
| 328 | 330 |
| 329 } // namespace ash | 331 } // namespace ash |
| 330 | 332 |
| 331 #endif // ASH_COMMON_WM_WINDOW_H_ | 333 #endif // ASH_COMMON_WM_WINDOW_H_ |
| OLD | NEW |