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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 } | 262 } |
263 | 263 |
264 // True if the window should be offered a chance to consume special system | 264 // 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 | 265 // keys such as brightness, volume, etc. that are usually handled by the |
266 // shell. | 266 // shell. |
267 bool can_consume_system_keys() const { return can_consume_system_keys_; } | 267 bool can_consume_system_keys() const { return can_consume_system_keys_; } |
268 void set_can_consume_system_keys(bool can_consume_system_keys) { | 268 void set_can_consume_system_keys(bool can_consume_system_keys) { |
269 can_consume_system_keys_ = can_consume_system_keys; | 269 can_consume_system_keys_ = can_consume_system_keys; |
270 } | 270 } |
271 | 271 |
272 // True if this window has requested that the top-row keys (back, forward, | |
273 // brightness, volume) should be treated as function keys. | |
274 bool top_row_keys_are_function_keys() const { | |
275 return top_row_keys_are_function_keys_; | |
276 } | |
277 void set_top_row_keys_are_function_keys(bool value) { | |
278 top_row_keys_are_function_keys_ = value; | |
279 } | |
280 | |
281 // True if the window is in "immersive full screen mode" which is slightly | 272 // True if the window is in "immersive full screen mode" which is slightly |
282 // different from the normal fullscreen mode by allowing the user to reveal | 273 // different from the normal fullscreen mode by allowing the user to reveal |
283 // the top portion of the window through a touch / mouse gesture. It might | 274 // the top portion of the window through a touch / mouse gesture. It might |
284 // also allow the shelf to be shown in some situations. | 275 // also allow the shelf to be shown in some situations. |
285 bool in_immersive_fullscreen() const { return in_immersive_fullscreen_; } | 276 bool in_immersive_fullscreen() const { return in_immersive_fullscreen_; } |
286 void set_in_immersive_fullscreen(bool enable) { | 277 void set_in_immersive_fullscreen(bool enable) { |
287 in_immersive_fullscreen_ = enable; | 278 in_immersive_fullscreen_ = enable; |
288 } | 279 } |
289 | 280 |
290 // True if the window should not adjust the window's bounds when | 281 // True if the window should not adjust the window's bounds when |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 | 359 |
369 // The owner of this window settings. | 360 // The owner of this window settings. |
370 WmWindow* window_; | 361 WmWindow* window_; |
371 std::unique_ptr<WindowStateDelegate> delegate_; | 362 std::unique_ptr<WindowStateDelegate> delegate_; |
372 | 363 |
373 bool window_position_managed_; | 364 bool window_position_managed_; |
374 bool bounds_changed_by_user_; | 365 bool bounds_changed_by_user_; |
375 bool panel_attached_; | 366 bool panel_attached_; |
376 bool ignored_by_shelf_; | 367 bool ignored_by_shelf_; |
377 bool can_consume_system_keys_; | 368 bool can_consume_system_keys_; |
378 bool top_row_keys_are_function_keys_; | |
379 std::unique_ptr<DragDetails> drag_details_; | 369 std::unique_ptr<DragDetails> drag_details_; |
380 | 370 |
381 bool unminimize_to_restore_bounds_; | 371 bool unminimize_to_restore_bounds_; |
382 bool in_immersive_fullscreen_; | 372 bool in_immersive_fullscreen_; |
383 bool ignore_keyboard_bounds_change_ = false; | 373 bool ignore_keyboard_bounds_change_ = false; |
384 bool hide_shelf_when_fullscreen_; | 374 bool hide_shelf_when_fullscreen_; |
385 bool minimum_visibility_; | 375 bool minimum_visibility_; |
386 bool can_be_dragged_; | 376 bool can_be_dragged_; |
387 bool cached_always_on_top_; | 377 bool cached_always_on_top_; |
388 | 378 |
(...skipping 10 matching lines...) Expand all Loading... |
399 | 389 |
400 std::unique_ptr<State> current_state_; | 390 std::unique_ptr<State> current_state_; |
401 | 391 |
402 DISALLOW_COPY_AND_ASSIGN(WindowState); | 392 DISALLOW_COPY_AND_ASSIGN(WindowState); |
403 }; | 393 }; |
404 | 394 |
405 } // namespace wm | 395 } // namespace wm |
406 } // namespace ash | 396 } // namespace ash |
407 | 397 |
408 #endif // ASH_COMMON_WM_WINDOW_STATE_H_ | 398 #endif // ASH_COMMON_WM_WINDOW_STATE_H_ |
OLD | NEW |