OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WM_WINDOW_STATE_H_ | 5 #ifndef ASH_WM_WINDOW_STATE_H_ |
6 #define ASH_WM_WINDOW_STATE_H_ | 6 #define ASH_WM_WINDOW_STATE_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/wm/drag_details.h" | 9 #include "ash/wm/drag_details.h" |
10 #include "ash/wm/wm_types.h" | 10 #include "ash/wm/wm_types.h" |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 virtual void OnWindowPropertyChanged(aura::Window* window, | 301 virtual void OnWindowPropertyChanged(aura::Window* window, |
302 const void* key, | 302 const void* key, |
303 intptr_t old) OVERRIDE; | 303 intptr_t old) OVERRIDE; |
304 | 304 |
305 private: | 305 private: |
306 friend class DefaultState; | 306 friend class DefaultState; |
307 friend class ash::LockWindowState; | 307 friend class ash::LockWindowState; |
308 friend class ash::MaximizeModeWindowState; | 308 friend class ash::MaximizeModeWindowState; |
309 friend ASH_EXPORT WindowState* GetWindowState(aura::Window*); | 309 friend ASH_EXPORT WindowState* GetWindowState(aura::Window*); |
310 FRIEND_TEST_ALL_PREFIXES(WindowAnimationsTest, CrossFadeToBounds); | 310 FRIEND_TEST_ALL_PREFIXES(WindowAnimationsTest, CrossFadeToBounds); |
| 311 FRIEND_TEST_ALL_PREFIXES(WindowAnimationsTest, |
| 312 CrossFadeToBoundsFromTransform); |
311 | 313 |
312 explicit WindowState(aura::Window* window); | 314 explicit WindowState(aura::Window* window); |
313 | 315 |
314 WindowStateDelegate* delegate() { return delegate_.get(); } | 316 WindowStateDelegate* delegate() { return delegate_.get(); } |
315 | 317 |
316 // Returns the window's current show state. | 318 // Returns the window's current show state. |
317 ui::WindowShowState GetShowState() const; | 319 ui::WindowShowState GetShowState() const; |
318 | 320 |
319 // Sets the window's bounds in screen coordinates. | 321 // Sets the window's bounds in screen coordinates. |
320 void SetBoundsInScreen(const gfx::Rect& bounds_in_screen); | 322 void SetBoundsInScreen(const gfx::Rect& bounds_in_screen); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); | 390 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); |
389 | 391 |
390 // const version of GetWindowState. | 392 // const version of GetWindowState. |
391 ASH_EXPORT const WindowState* | 393 ASH_EXPORT const WindowState* |
392 GetWindowState(const aura::Window* window); | 394 GetWindowState(const aura::Window* window); |
393 | 395 |
394 } // namespace wm | 396 } // namespace wm |
395 } // namespace ash | 397 } // namespace ash |
396 | 398 |
397 #endif // ASH_WM_WINDOW_STATE_H_ | 399 #endif // ASH_WM_WINDOW_STATE_H_ |
OLD | NEW |