| 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/wm_types.h" | 9 #include "ash/wm/wm_types.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 return window_resizer_; | 244 return window_resizer_; |
| 245 } | 245 } |
| 246 void set_window_resizer_(WindowResizer* window_resizer) { | 246 void set_window_resizer_(WindowResizer* window_resizer) { |
| 247 window_resizer_ = window_resizer; | 247 window_resizer_ = window_resizer; |
| 248 } | 248 } |
| 249 | 249 |
| 250 // aura::WindowObserver overrides: | 250 // aura::WindowObserver overrides: |
| 251 virtual void OnWindowPropertyChanged(aura::Window* window, | 251 virtual void OnWindowPropertyChanged(aura::Window* window, |
| 252 const void* key, | 252 const void* key, |
| 253 intptr_t old) OVERRIDE; | 253 intptr_t old) OVERRIDE; |
| 254 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | |
| 255 | 254 |
| 256 private: | 255 private: |
| 257 // Snaps the window to left or right of the desktop with given bounds. | 256 // Snaps the window to left or right of the desktop with given bounds. |
| 258 void SnapWindow(WindowShowType left_or_right, | 257 void SnapWindow(WindowShowType left_or_right, |
| 259 const gfx::Rect& bounds); | 258 const gfx::Rect& bounds); |
| 260 | 259 |
| 261 // The owner of this window settings. | 260 // The owner of this window settings. |
| 262 aura::Window* window_; | 261 aura::Window* window_; |
| 263 scoped_ptr<WindowStateDelegate> delegate_; | 262 scoped_ptr<WindowStateDelegate> delegate_; |
| 264 | 263 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); | 297 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); |
| 299 | 298 |
| 300 // const version of GetWindowState. | 299 // const version of GetWindowState. |
| 301 ASH_EXPORT const WindowState* | 300 ASH_EXPORT const WindowState* |
| 302 GetWindowState(const aura::Window* window); | 301 GetWindowState(const aura::Window* window); |
| 303 | 302 |
| 304 } // namespace wm | 303 } // namespace wm |
| 305 } // namespace ash | 304 } // namespace ash |
| 306 | 305 |
| 307 #endif // ASH_WM_WINDOW_STATE_H_ | 306 #endif // ASH_WM_WINDOW_STATE_H_ |
| OLD | NEW |