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_COMMON_WM_WINDOW_STATE_H_ | 5 #ifndef ASH_COMMON_WM_WINDOW_STATE_H_ |
6 #define ASH_COMMON_WM_WINDOW_STATE_H_ | 6 #define ASH_COMMON_WM_WINDOW_STATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 // auto management logic. | 241 // auto management logic. |
242 bool window_position_managed() const { return window_position_managed_; } | 242 bool window_position_managed() const { return window_position_managed_; } |
243 void set_window_position_managed(bool window_position_managed) { | 243 void set_window_position_managed(bool window_position_managed) { |
244 window_position_managed_ = window_position_managed; | 244 window_position_managed_ = window_position_managed; |
245 } | 245 } |
246 | 246 |
247 // Whether or not the window's position or size was changed by a user. | 247 // Whether or not the window's position or size was changed by a user. |
248 bool bounds_changed_by_user() const { return bounds_changed_by_user_; } | 248 bool bounds_changed_by_user() const { return bounds_changed_by_user_; } |
249 void set_bounds_changed_by_user(bool bounds_changed_by_user); | 249 void set_bounds_changed_by_user(bool bounds_changed_by_user); |
250 | 250 |
251 // True if this window is an attached panel. | |
252 bool panel_attached() const { return panel_attached_; } | |
253 void set_panel_attached(bool panel_attached) { | |
254 panel_attached_ = panel_attached; | |
255 } | |
256 | |
257 // True if the window is ignored by the shelf layout manager for | 251 // True if the window is ignored by the shelf layout manager for |
258 // purposes of darkening the shelf. | 252 // purposes of darkening the shelf. |
259 bool ignored_by_shelf() const { return ignored_by_shelf_; } | 253 bool ignored_by_shelf() const { return ignored_by_shelf_; } |
260 void set_ignored_by_shelf(bool ignored_by_shelf) { | 254 void set_ignored_by_shelf(bool ignored_by_shelf) { |
261 ignored_by_shelf_ = ignored_by_shelf; | 255 ignored_by_shelf_ = ignored_by_shelf; |
262 } | 256 } |
263 | 257 |
264 // True if the window should be offered a chance to consume special system | 258 // True if the window should be offered a chance to consume special system |
265 // keys such as brightness, volume, etc. that are usually handled by the | 259 // keys such as brightness, volume, etc. that are usually handled by the |
266 // shell. | 260 // shell. |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 // Sets the window's |bounds| and transition to the new bounds with | 359 // Sets the window's |bounds| and transition to the new bounds with |
366 // a cross fade animation. | 360 // a cross fade animation. |
367 void SetBoundsDirectCrossFade(const gfx::Rect& bounds); | 361 void SetBoundsDirectCrossFade(const gfx::Rect& bounds); |
368 | 362 |
369 // The owner of this window settings. | 363 // The owner of this window settings. |
370 WmWindow* window_; | 364 WmWindow* window_; |
371 std::unique_ptr<WindowStateDelegate> delegate_; | 365 std::unique_ptr<WindowStateDelegate> delegate_; |
372 | 366 |
373 bool window_position_managed_; | 367 bool window_position_managed_; |
374 bool bounds_changed_by_user_; | 368 bool bounds_changed_by_user_; |
375 bool panel_attached_; | |
376 bool ignored_by_shelf_; | 369 bool ignored_by_shelf_; |
377 bool can_consume_system_keys_; | 370 bool can_consume_system_keys_; |
378 std::unique_ptr<DragDetails> drag_details_; | 371 std::unique_ptr<DragDetails> drag_details_; |
379 | 372 |
380 bool unminimize_to_restore_bounds_; | 373 bool unminimize_to_restore_bounds_; |
381 bool in_immersive_fullscreen_; | 374 bool in_immersive_fullscreen_; |
382 bool ignore_keyboard_bounds_change_ = false; | 375 bool ignore_keyboard_bounds_change_ = false; |
383 bool hide_shelf_when_fullscreen_; | 376 bool hide_shelf_when_fullscreen_; |
384 bool minimum_visibility_; | 377 bool minimum_visibility_; |
385 bool can_be_dragged_; | 378 bool can_be_dragged_; |
(...skipping 13 matching lines...) Expand all Loading... |
399 | 392 |
400 std::unique_ptr<State> current_state_; | 393 std::unique_ptr<State> current_state_; |
401 | 394 |
402 DISALLOW_COPY_AND_ASSIGN(WindowState); | 395 DISALLOW_COPY_AND_ASSIGN(WindowState); |
403 }; | 396 }; |
404 | 397 |
405 } // namespace wm | 398 } // namespace wm |
406 } // namespace ash | 399 } // namespace ash |
407 | 400 |
408 #endif // ASH_COMMON_WM_WINDOW_STATE_H_ | 401 #endif // ASH_COMMON_WM_WINDOW_STATE_H_ |
OLD | NEW |