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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
260 | 260 |
261 // True if this window has requested that the top-row keys (back, forward, | 261 // True if this window has requested that the top-row keys (back, forward, |
262 // brightness, volume) should be treated as function keys. | 262 // brightness, volume) should be treated as function keys. |
263 bool top_row_keys_are_function_keys() const { | 263 bool top_row_keys_are_function_keys() const { |
264 return top_row_keys_are_function_keys_; | 264 return top_row_keys_are_function_keys_; |
265 } | 265 } |
266 void set_top_row_keys_are_function_keys(bool value) { | 266 void set_top_row_keys_are_function_keys(bool value) { |
267 top_row_keys_are_function_keys_ = value; | 267 top_row_keys_are_function_keys_ = value; |
268 } | 268 } |
269 | 269 |
270 // True if the window is in "immersive full screen mode" which is slightly | |
271 // different from the normal fullscreen mode by allowing the user to reveal | |
272 // the top portion of the window through a touch / mouse gesture. It will also | |
273 // allow the shelf to be shown. | |
pkotwicz
2014/06/02 22:27:58
The part about "It will also allow the shelf to be
Mr4D (OOO till 08-26)
2014/06/03 14:36:40
I am not sure if the full immersive functionality
| |
274 bool in_immersive_fullscreen() const { | |
275 return in_immersive_fullscreen_; | |
276 } | |
277 void set_in_immersive_fullscreen(bool enable) { | |
278 in_immersive_fullscreen_ = enable; | |
279 } | |
280 | |
270 // Creates and takes ownership of a pointer to DragDetails when resizing is | 281 // Creates and takes ownership of a pointer to DragDetails when resizing is |
271 // active. This should be done before a resizer gets created. | 282 // active. This should be done before a resizer gets created. |
272 void CreateDragDetails(aura::Window* window, | 283 void CreateDragDetails(aura::Window* window, |
273 const gfx::Point& point_in_parent, | 284 const gfx::Point& point_in_parent, |
274 int window_component, | 285 int window_component, |
275 aura::client::WindowMoveSource source); | 286 aura::client::WindowMoveSource source); |
276 | 287 |
277 // Deletes and clears a pointer to DragDetails. This should be done when the | 288 // Deletes and clears a pointer to DragDetails. This should be done when the |
278 // resizer gets destroyed. | 289 // resizer gets destroyed. |
279 void DeleteDragDetails(); | 290 void DeleteDragDetails(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
332 // The owner of this window settings. | 343 // The owner of this window settings. |
333 aura::Window* window_; | 344 aura::Window* window_; |
334 scoped_ptr<WindowStateDelegate> delegate_; | 345 scoped_ptr<WindowStateDelegate> delegate_; |
335 | 346 |
336 bool window_position_managed_; | 347 bool window_position_managed_; |
337 bool bounds_changed_by_user_; | 348 bool bounds_changed_by_user_; |
338 bool panel_attached_; | 349 bool panel_attached_; |
339 bool ignored_by_shelf_; | 350 bool ignored_by_shelf_; |
340 bool can_consume_system_keys_; | 351 bool can_consume_system_keys_; |
341 bool top_row_keys_are_function_keys_; | 352 bool top_row_keys_are_function_keys_; |
353 bool in_immersive_fullscreen_; | |
342 scoped_ptr<DragDetails> drag_details_; | 354 scoped_ptr<DragDetails> drag_details_; |
343 | 355 |
344 bool unminimize_to_restore_bounds_; | 356 bool unminimize_to_restore_bounds_; |
345 bool hide_shelf_when_fullscreen_; | 357 bool hide_shelf_when_fullscreen_; |
pkotwicz
2014/06/02 22:27:58
Nit: Might as well group the fullscreen related pr
Mr4D (OOO till 08-26)
2014/06/03 14:36:40
Done.
| |
346 bool minimum_visibility_; | 358 bool minimum_visibility_; |
347 bool can_be_dragged_; | 359 bool can_be_dragged_; |
348 | 360 |
349 // A property to remember the window position which was set before the | 361 // A property to remember the window position which was set before the |
350 // auto window position manager changed the window bounds, so that it can get | 362 // auto window position manager changed the window bounds, so that it can get |
351 // restored when only this one window gets shown. | 363 // restored when only this one window gets shown. |
352 scoped_ptr<gfx::Rect> pre_auto_manage_window_bounds_; | 364 scoped_ptr<gfx::Rect> pre_auto_manage_window_bounds_; |
353 | 365 |
354 ObserverList<WindowStateObserver> observer_list_; | 366 ObserverList<WindowStateObserver> observer_list_; |
355 | 367 |
(...skipping 15 matching lines...) Expand all Loading... | |
371 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); | 383 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); |
372 | 384 |
373 // const version of GetWindowState. | 385 // const version of GetWindowState. |
374 ASH_EXPORT const WindowState* | 386 ASH_EXPORT const WindowState* |
375 GetWindowState(const aura::Window* window); | 387 GetWindowState(const aura::Window* window); |
376 | 388 |
377 } // namespace wm | 389 } // namespace wm |
378 } // namespace ash | 390 } // namespace ash |
379 | 391 |
380 #endif // ASH_WM_WINDOW_STATE_H_ | 392 #endif // ASH_WM_WINDOW_STATE_H_ |
OLD | NEW |