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

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

Issue 2479353003: Revert of Window prerequisites for ShelfWindowWatcher panel support. (Closed)
Patch Set: Created 4 years, 1 month 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/test/test_shelf_item_delegate.cc ('k') | ash/common/wm_window_property.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
11 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "third_party/skia/include/core/SkColor.h" 14 #include "third_party/skia/include/core/SkColor.h"
15 #include "ui/base/ui_base_types.h" 15 #include "ui/base/ui_base_types.h"
16 #include "ui/compositor/layer_animation_element.h" 16 #include "ui/compositor/layer_animation_element.h"
17 #include "ui/gfx/image/image_skia.h"
18 #include "ui/wm/core/window_animations.h" 17 #include "ui/wm/core/window_animations.h"
19 #include "ui/wm/public/window_types.h" 18 #include "ui/wm/public/window_types.h"
20 19
21 namespace display { 20 namespace display {
22 class Display; 21 class Display;
23 } 22 }
24 23
25 namespace gfx { 24 namespace gfx {
26 class Point; 25 class Point;
27 class Rect; 26 class Rect;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 virtual void SetTransform(const gfx::Transform& transform) = 0; 130 virtual void SetTransform(const gfx::Transform& transform) = 0;
132 virtual gfx::Transform GetTargetTransform() const = 0; 131 virtual gfx::Transform GetTargetTransform() const = 0;
133 132
134 virtual bool IsSystemModal() const = 0; 133 virtual bool IsSystemModal() const = 0;
135 134
136 virtual bool GetBoolProperty(WmWindowProperty key) = 0; 135 virtual bool GetBoolProperty(WmWindowProperty key) = 0;
137 virtual SkColor GetColorProperty(WmWindowProperty key) = 0; 136 virtual SkColor GetColorProperty(WmWindowProperty key) = 0;
138 virtual void SetColorProperty(WmWindowProperty key, SkColor value) = 0; 137 virtual void SetColorProperty(WmWindowProperty key, SkColor value) = 0;
139 virtual int GetIntProperty(WmWindowProperty key) = 0; 138 virtual int GetIntProperty(WmWindowProperty key) = 0;
140 virtual void SetIntProperty(WmWindowProperty key, int value) = 0; 139 virtual void SetIntProperty(WmWindowProperty key, int value) = 0;
141 virtual std::string GetStringProperty(WmWindowProperty key) = 0;
142 virtual void SetStringProperty(WmWindowProperty key,
143 const std::string& value) = 0;
144
145 virtual gfx::ImageSkia GetWindowIcon() = 0;
146 virtual gfx::ImageSkia GetAppIcon() = 0;
147 140
148 wm::WindowState* GetWindowState() { 141 wm::WindowState* GetWindowState() {
149 return const_cast<wm::WindowState*>( 142 return const_cast<wm::WindowState*>(
150 const_cast<const WmWindow*>(this)->GetWindowState()); 143 const_cast<const WmWindow*>(this)->GetWindowState());
151 } 144 }
152 virtual const wm::WindowState* GetWindowState() const = 0; 145 virtual const wm::WindowState* GetWindowState() const = 0;
153 146
154 // The implementation of this matches aura::Window::GetToplevelWindow(). 147 // The implementation of this matches aura::Window::GetToplevelWindow().
155 virtual WmWindow* GetToplevelWindow() = 0; 148 virtual WmWindow* GetToplevelWindow() = 0;
156 // The implementation of this matches 149 // The implementation of this matches
(...skipping 12 matching lines...) Expand all
169 } 162 }
170 virtual const WmWindow* GetParent() const = 0; 163 virtual const WmWindow* GetParent() const = 0;
171 164
172 WmWindow* GetTransientParent() { 165 WmWindow* GetTransientParent() {
173 return const_cast<WmWindow*>( 166 return const_cast<WmWindow*>(
174 const_cast<const WmWindow*>(this)->GetTransientParent()); 167 const_cast<const WmWindow*>(this)->GetTransientParent());
175 } 168 }
176 virtual const WmWindow* GetTransientParent() const = 0; 169 virtual const WmWindow* GetTransientParent() const = 0;
177 virtual Windows GetTransientChildren() = 0; 170 virtual Windows GetTransientChildren() = 0;
178 171
179 // Moves this to the display where |event| occurred; returns true if moved.
180 virtual bool MoveToEventRoot(const ui::Event& event) = 0;
181
182 virtual void SetLayoutManager( 172 virtual void SetLayoutManager(
183 std::unique_ptr<WmLayoutManager> layout_manager) = 0; 173 std::unique_ptr<WmLayoutManager> layout_manager) = 0;
184 virtual WmLayoutManager* GetLayoutManager() = 0; 174 virtual WmLayoutManager* GetLayoutManager() = 0;
185 175
186 // See wm::SetWindowVisibilityChangesAnimated() for details on what this 176 // See wm::SetWindowVisibilityChangesAnimated() for details on what this
187 // does. 177 // does.
188 virtual void SetVisibilityChangesAnimated() = 0; 178 virtual void SetVisibilityChangesAnimated() = 0;
189 // |type| is WindowVisibilityAnimationType. Has to be an int to match aura. 179 // |type| is WindowVisibilityAnimationType. Has to be an int to match aura.
190 virtual void SetVisibilityAnimationType(int type) = 0; 180 virtual void SetVisibilityAnimationType(int type) = 0;
191 virtual void SetVisibilityAnimationDuration(base::TimeDelta delta) = 0; 181 virtual void SetVisibilityAnimationDuration(base::TimeDelta delta) = 0;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; 330 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0;
341 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; 331 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0;
342 332
343 protected: 333 protected:
344 virtual ~WmWindow() {} 334 virtual ~WmWindow() {}
345 }; 335 };
346 336
347 } // namespace ash 337 } // namespace ash
348 338
349 #endif // ASH_COMMON_WM_WINDOW_H_ 339 #endif // ASH_COMMON_WM_WINDOW_H_
OLDNEW
« no previous file with comments | « ash/common/test/test_shelf_item_delegate.cc ('k') | ash/common/wm_window_property.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698