Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: ash/mus/bridge/wm_window_mus.h

Issue 2357143004: mash: Support ShelfWindowWatcher via ShelfItem properties. (Closed)
Patch Set: Set Settings WmWindow title with a WmWindowObserver. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Returns true if this window is considered a shell window container. 109 // Returns true if this window is considered a shell window container.
110 bool IsContainer() const; 110 bool IsContainer() const;
111 111
112 // WmWindow: 112 // WmWindow:
113 void Destroy() override; 113 void Destroy() override;
114 const WmWindow* GetRootWindow() const override; 114 const WmWindow* GetRootWindow() const override;
115 WmRootWindowController* GetRootWindowController() override; 115 WmRootWindowController* GetRootWindowController() override;
116 WmShell* GetShell() const override; 116 WmShell* GetShell() const override;
117 void SetName(const char* name) override; 117 void SetName(const char* name) override;
118 std::string GetName() const override; 118 std::string GetName() const override;
119 void SetTitle(const base::string16& title) override;
119 base::string16 GetTitle() const override; 120 base::string16 GetTitle() const override;
120 void SetShellWindowId(int id) override; 121 void SetShellWindowId(int id) override;
121 int GetShellWindowId() const override; 122 int GetShellWindowId() const override;
122 WmWindow* GetChildByShellWindowId(int id) override; 123 WmWindow* GetChildByShellWindowId(int id) override;
123 ui::wm::WindowType GetType() const override; 124 ui::wm::WindowType GetType() const override;
124 bool IsBubble() override; 125 bool IsBubble() override;
125 ui::Layer* GetLayer() override; 126 ui::Layer* GetLayer() override;
126 display::Display GetDisplayNearestWindow() override; 127 display::Display GetDisplayNearestWindow() override;
127 bool HasNonClientArea() override; 128 bool HasNonClientArea() override;
128 int GetNonClientComponent(const gfx::Point& location) override; 129 int GetNonClientComponent(const gfx::Point& location) override;
(...skipping 11 matching lines...) Expand all
140 float GetTargetOpacity() const override; 141 float GetTargetOpacity() const override;
141 gfx::Rect GetMinimizeAnimationTargetBoundsInScreen() const override; 142 gfx::Rect GetMinimizeAnimationTargetBoundsInScreen() const override;
142 void SetTransform(const gfx::Transform& transform) override; 143 void SetTransform(const gfx::Transform& transform) override;
143 gfx::Transform GetTargetTransform() const override; 144 gfx::Transform GetTargetTransform() const override;
144 bool IsSystemModal() const override; 145 bool IsSystemModal() const override;
145 bool GetBoolProperty(WmWindowProperty key) override; 146 bool GetBoolProperty(WmWindowProperty key) override;
146 SkColor GetColorProperty(WmWindowProperty key) override; 147 SkColor GetColorProperty(WmWindowProperty key) override;
147 void SetColorProperty(WmWindowProperty key, SkColor value) override; 148 void SetColorProperty(WmWindowProperty key, SkColor value) override;
148 int GetIntProperty(WmWindowProperty key) override; 149 int GetIntProperty(WmWindowProperty key) override;
149 void SetIntProperty(WmWindowProperty key, int value) override; 150 void SetIntProperty(WmWindowProperty key, int value) override;
150 ShelfItemDetails* GetShelfItemDetails() override;
151 void SetShelfItemDetails(const ShelfItemDetails& details) override;
152 void ClearShelfItemDetails() override;
153 const wm::WindowState* GetWindowState() const override; 151 const wm::WindowState* GetWindowState() const override;
154 WmWindow* GetToplevelWindow() override; 152 WmWindow* GetToplevelWindow() override;
155 WmWindow* GetToplevelWindowForFocus() override; 153 WmWindow* GetToplevelWindowForFocus() override;
156 void SetParentUsingContext(WmWindow* context, 154 void SetParentUsingContext(WmWindow* context,
157 const gfx::Rect& screen_bounds) override; 155 const gfx::Rect& screen_bounds) override;
158 void AddChild(WmWindow* window) override; 156 void AddChild(WmWindow* window) override;
159 const WmWindow* GetParent() const override; 157 const WmWindow* GetParent() const override;
160 const WmWindow* GetTransientParent() const override; 158 const WmWindow* GetTransientParent() const override;
161 std::vector<WmWindow*> GetTransientChildren() override; 159 std::vector<WmWindow*> GetTransientChildren() override;
162 void SetLayoutManager( 160 void SetLayoutManager(
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 304
307 bool locked_to_root_ = false; 305 bool locked_to_root_ = false;
308 306
309 DISALLOW_COPY_AND_ASSIGN(WmWindowMus); 307 DISALLOW_COPY_AND_ASSIGN(WmWindowMus);
310 }; 308 };
311 309
312 } // namespace mus 310 } // namespace mus
313 } // namespace ash 311 } // namespace ash
314 312
315 #endif // ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ 313 #endif // ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698