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