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

Side by Side Diff: ash/common/wm_window.h

Issue 2211463002: mash: Move ShelfWindowWatcher[ItemDelegate] to ash/common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TODO comments with bug for WmWindowMus ShelfItemDetails support. Created 4 years, 4 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
« no previous file with comments | « ash/common/wm_shell.cc ('k') | ash/mus/bridge/wm_window_mus.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual gfx::Transform GetTargetTransform() const = 0; 117 virtual gfx::Transform GetTargetTransform() const = 0;
118 118
119 virtual bool IsSystemModal() const = 0; 119 virtual bool IsSystemModal() const = 0;
120 120
121 virtual bool GetBoolProperty(WmWindowProperty key) = 0; 121 virtual bool GetBoolProperty(WmWindowProperty key) = 0;
122 virtual int GetIntProperty(WmWindowProperty key) = 0; 122 virtual int GetIntProperty(WmWindowProperty key) = 0;
123 virtual void SetIntProperty(WmWindowProperty key, int value) = 0; 123 virtual void SetIntProperty(WmWindowProperty key, int value) = 0;
124 124
125 // Returns null if there are no details. 125 // Returns null if there are no details.
126 virtual ShelfItemDetails* GetShelfItemDetails() = 0; 126 virtual ShelfItemDetails* GetShelfItemDetails() = 0;
127 virtual void SetShelfItemDetails(const ShelfItemDetails& details) = 0;
128 virtual void ClearShelfItemDetails() = 0;
127 129
128 wm::WindowState* GetWindowState() { 130 wm::WindowState* GetWindowState() {
129 return const_cast<wm::WindowState*>( 131 return const_cast<wm::WindowState*>(
130 const_cast<const WmWindow*>(this)->GetWindowState()); 132 const_cast<const WmWindow*>(this)->GetWindowState());
131 } 133 }
132 virtual const wm::WindowState* GetWindowState() const = 0; 134 virtual const wm::WindowState* GetWindowState() const = 0;
133 135
134 // The implementation of this matches aura::Window::GetToplevelWindow(). 136 // The implementation of this matches aura::Window::GetToplevelWindow().
135 virtual WmWindow* GetToplevelWindow() = 0; 137 virtual WmWindow* GetToplevelWindow() = 0;
136 // The implementation of this matches 138 // The implementation of this matches
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; 298 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0;
297 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; 299 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0;
298 300
299 protected: 301 protected:
300 virtual ~WmWindow() {} 302 virtual ~WmWindow() {}
301 }; 303 };
302 304
303 } // namespace ash 305 } // namespace ash
304 306
305 #endif // ASH_COMMON_WM_WINDOW_H_ 307 #endif // ASH_COMMON_WM_WINDOW_H_
OLDNEW
« no previous file with comments | « ash/common/wm_shell.cc ('k') | ash/mus/bridge/wm_window_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698