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

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

Issue 2731663002: Remove WmWindowProperty (Closed)
Patch Set: rebase Created 3 years, 9 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/workspace/workspace_layout_manager.cc ('k') | ash/common/wm_window.cc » ('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/macros.h" 12 #include "base/macros.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "ui/aura/window_observer.h" 16 #include "ui/aura/window_observer.h"
17 #include "ui/base/ui_base_types.h" 17 #include "ui/base/ui_base_types.h"
18 #include "ui/compositor/layer_animation_element.h" 18 #include "ui/compositor/layer_animation_element.h"
19 #include "ui/wm/core/transient_window_observer.h" 19 #include "ui/wm/core/transient_window_observer.h"
20 #include "ui/wm/core/window_animations.h" 20 #include "ui/wm/core/window_animations.h"
21 #include "ui/wm/public/window_types.h" 21 #include "ui/wm/public/window_types.h"
22 22
23 namespace display { 23 namespace display {
24 class Display; 24 class Display;
25 } 25 }
26 26
27 namespace gfx { 27 namespace gfx {
28 class ImageSkia;
29 class Point; 28 class Point;
30 class Rect; 29 class Rect;
31 class Size; 30 class Size;
32 class Transform; 31 class Transform;
33 } 32 }
34 33
35 namespace ui { 34 namespace ui {
36 class EventHandler; 35 class EventHandler;
37 class Layer; 36 class Layer;
38 } 37 }
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 void SetOpacity(float opacity); 160 void SetOpacity(float opacity);
162 float GetTargetOpacity() const; 161 float GetTargetOpacity() const;
163 162
164 gfx::Rect GetMinimizeAnimationTargetBoundsInScreen() const; 163 gfx::Rect GetMinimizeAnimationTargetBoundsInScreen() const;
165 164
166 void SetTransform(const gfx::Transform& transform); 165 void SetTransform(const gfx::Transform& transform);
167 gfx::Transform GetTargetTransform() const; 166 gfx::Transform GetTargetTransform() const;
168 167
169 bool IsSystemModal() const; 168 bool IsSystemModal() const;
170 169
171 bool GetBoolProperty(WmWindowProperty key);
172 void SetBoolProperty(WmWindowProperty key, bool value);
173 SkColor GetColorProperty(WmWindowProperty key);
174 void SetColorProperty(WmWindowProperty key, SkColor value);
175 int GetIntProperty(WmWindowProperty key);
176 void SetIntProperty(WmWindowProperty key, int value);
177 std::string GetStringProperty(WmWindowProperty key);
178 void SetStringProperty(WmWindowProperty key, const std::string& value);
179
180 gfx::ImageSkia GetWindowIcon();
181 gfx::ImageSkia GetAppIcon();
182
183 wm::WindowState* GetWindowState() { 170 wm::WindowState* GetWindowState() {
184 return const_cast<wm::WindowState*>( 171 return const_cast<wm::WindowState*>(
185 const_cast<const WmWindow*>(this)->GetWindowState()); 172 const_cast<const WmWindow*>(this)->GetWindowState());
186 } 173 }
187 const wm::WindowState* GetWindowState() const; 174 const wm::WindowState* GetWindowState() const;
188 175
189 // The implementation of this matches aura::Window::GetToplevelWindow(). 176 // The implementation of this matches aura::Window::GetToplevelWindow().
190 WmWindow* GetToplevelWindow(); 177 WmWindow* GetToplevelWindow();
191 178
192 // The implementation of this matches 179 // The implementation of this matches
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 382
396 // If true the minimum size is 0x0, default is minimum size comes from widget. 383 // If true the minimum size is 0x0, default is minimum size comes from widget.
397 bool use_empty_minimum_size_for_testing_; 384 bool use_empty_minimum_size_for_testing_;
398 385
399 DISALLOW_COPY_AND_ASSIGN(WmWindow); 386 DISALLOW_COPY_AND_ASSIGN(WmWindow);
400 }; 387 };
401 388
402 } // namespace ash 389 } // namespace ash
403 390
404 #endif // ASH_COMMON_WM_WINDOW_H_ 391 #endif // ASH_COMMON_WM_WINDOW_H_
OLDNEW
« no previous file with comments | « ash/common/wm/workspace/workspace_layout_manager.cc ('k') | ash/common/wm_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698