| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 // 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 |
| 275 // also allow the shelf to be shown in some situations. | 275 // also allow the shelf to be shown in some situations. |
| 276 bool in_immersive_fullscreen() const { return in_immersive_fullscreen_; } | 276 bool in_immersive_fullscreen() const { return in_immersive_fullscreen_; } |
| 277 void set_in_immersive_fullscreen(bool enable) { | 277 void set_in_immersive_fullscreen(bool enable) { |
| 278 in_immersive_fullscreen_ = enable; | 278 in_immersive_fullscreen_ = enable; |
| 279 } | 279 } |
| 280 | 280 |
| 281 // 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 |
| 282 // virtual keyboard bounds changes. | 282 // virtual keyboard bounds changes. |
| 283 // TODO(oshima): This is hack. Replace this with proper | 283 // TODO(oshima): This is hack. Replace this with proper |
| 284 // implementation based on EnsureCaretInRect. | 284 // implementation based on EnsureCaretNotInRect. |
| 285 bool ignore_keyboard_bounds_change() const { | 285 bool ignore_keyboard_bounds_change() const { |
| 286 return ignore_keyboard_bounds_change_; | 286 return ignore_keyboard_bounds_change_; |
| 287 } | 287 } |
| 288 void set_ignore_keyboard_bounds_change(bool ignore_keyboard_bounds_change) { | 288 void set_ignore_keyboard_bounds_change(bool ignore_keyboard_bounds_change) { |
| 289 ignore_keyboard_bounds_change_ = ignore_keyboard_bounds_change; | 289 ignore_keyboard_bounds_change_ = ignore_keyboard_bounds_change; |
| 290 } | 290 } |
| 291 | 291 |
| 292 // True if the window's bounds can be updated using SET_BOUNDS event in | 292 // True if the window's bounds can be updated using SET_BOUNDS event in |
| 293 // maiximzed/fullscreen mode. | 293 // maiximzed/fullscreen mode. |
| 294 void set_allow_set_bounds_in_maximized(bool value) { | 294 void set_allow_set_bounds_in_maximized(bool value) { |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 | 399 |
| 400 std::unique_ptr<State> current_state_; | 400 std::unique_ptr<State> current_state_; |
| 401 | 401 |
| 402 DISALLOW_COPY_AND_ASSIGN(WindowState); | 402 DISALLOW_COPY_AND_ASSIGN(WindowState); |
| 403 }; | 403 }; |
| 404 | 404 |
| 405 } // namespace wm | 405 } // namespace wm |
| 406 } // namespace ash | 406 } // namespace ash |
| 407 | 407 |
| 408 #endif // ASH_COMMON_WM_WINDOW_STATE_H_ | 408 #endif // ASH_COMMON_WM_WINDOW_STATE_H_ |
| OLD | NEW |