Chromium Code Reviews| 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 |
| 11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
| 12 #include "ash/public/cpp/window_properties.h" | |
| 12 #include "base/macros.h" | 13 #include "base/macros.h" |
| 13 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 14 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 15 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "ui/aura/client/aura_constants.h" | |
| 16 #include "ui/aura/window_observer.h" | 18 #include "ui/aura/window_observer.h" |
| 17 #include "ui/base/ui_base_types.h" | 19 #include "ui/base/ui_base_types.h" |
| 18 #include "ui/compositor/layer_animation_element.h" | 20 #include "ui/compositor/layer_animation_element.h" |
| 19 #include "ui/wm/core/transient_window_observer.h" | 21 #include "ui/wm/core/transient_window_observer.h" |
| 20 #include "ui/wm/core/window_animations.h" | 22 #include "ui/wm/core/window_animations.h" |
| 21 #include "ui/wm/public/window_types.h" | 23 #include "ui/wm/public/window_types.h" |
| 22 | 24 |
| 23 namespace display { | 25 namespace display { |
| 24 class Display; | 26 class Display; |
| 25 } | 27 } |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 243 gfx::Rect GetTargetBounds(); | 245 gfx::Rect GetTargetBounds(); |
| 244 void ClearRestoreBounds(); | 246 void ClearRestoreBounds(); |
| 245 void SetRestoreBoundsInScreen(const gfx::Rect& bounds); | 247 void SetRestoreBoundsInScreen(const gfx::Rect& bounds); |
| 246 gfx::Rect GetRestoreBoundsInScreen() const; | 248 gfx::Rect GetRestoreBoundsInScreen() const; |
| 247 | 249 |
| 248 bool Contains(const WmWindow* other) const; | 250 bool Contains(const WmWindow* other) const; |
| 249 | 251 |
| 250 void SetShowState(ui::WindowShowState show_state); | 252 void SetShowState(ui::WindowShowState show_state); |
| 251 ui::WindowShowState GetShowState() const; | 253 ui::WindowShowState GetShowState() const; |
| 252 | 254 |
| 255 void SetPinType(WindowPinType type); | |
|
sky
2017/03/31 20:54:47
WmWindow is going to go away. The call sites shoul
Peng
2017/04/03 15:11:27
Done.
| |
| 256 WindowPinType GetPinType() const; | |
| 257 | |
| 253 void SetPreMinimizedShowState(ui::WindowShowState show_state); | 258 void SetPreMinimizedShowState(ui::WindowShowState show_state); |
| 254 ui::WindowShowState GetPreMinimizedShowState() const; | 259 ui::WindowShowState GetPreMinimizedShowState() const; |
| 255 void SetPreFullscreenShowState(ui::WindowShowState show_state); | 260 void SetPreFullscreenShowState(ui::WindowShowState show_state); |
| 256 | 261 |
| 257 // Sets the restore bounds and show state overrides. These values take | 262 // Sets the restore bounds and show state overrides. These values take |
| 258 // precedence over the restore bounds and restore show state (if set). | 263 // precedence over the restore bounds and restore show state (if set). |
| 259 // If |bounds_override| is empty the values are cleared. | 264 // If |bounds_override| is empty the values are cleared. |
| 260 void SetRestoreOverrides(const gfx::Rect& bounds_override, | 265 void SetRestoreOverrides(const gfx::Rect& bounds_override, |
| 261 ui::WindowShowState window_state_override); | 266 ui::WindowShowState window_state_override); |
| 262 | 267 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 379 | 384 |
| 380 // If true the minimum size is 0x0, default is minimum size comes from widget. | 385 // If true the minimum size is 0x0, default is minimum size comes from widget. |
| 381 bool use_empty_minimum_size_for_testing_; | 386 bool use_empty_minimum_size_for_testing_; |
| 382 | 387 |
| 383 DISALLOW_COPY_AND_ASSIGN(WmWindow); | 388 DISALLOW_COPY_AND_ASSIGN(WmWindow); |
| 384 }; | 389 }; |
| 385 | 390 |
| 386 } // namespace ash | 391 } // namespace ash |
| 387 | 392 |
| 388 #endif // ASH_COMMON_WM_WINDOW_H_ | 393 #endif // ASH_COMMON_WM_WINDOW_H_ |
| OLD | NEW |