Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: ash/common/wm/window_state.h

Issue 2250713006: Allow updating arc widget bounds in maximize/fullscreen state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 // virtual keyboard bounds changes. 291 // virtual keyboard bounds changes.
292 // TODO(oshima): This is hack. Replace this with proper 292 // TODO(oshima): This is hack. Replace this with proper
293 // implementation based on EnsureCaretInRect. 293 // implementation based on EnsureCaretInRect.
294 bool ignore_keyboard_bounds_change() const { 294 bool ignore_keyboard_bounds_change() const {
295 return ignore_keyboard_bounds_change_; 295 return ignore_keyboard_bounds_change_;
296 } 296 }
297 void set_ignore_keyboard_bounds_change(bool ignore_keyboard_bounds_change) { 297 void set_ignore_keyboard_bounds_change(bool ignore_keyboard_bounds_change) {
298 ignore_keyboard_bounds_change_ = ignore_keyboard_bounds_change; 298 ignore_keyboard_bounds_change_ = ignore_keyboard_bounds_change;
299 } 299 }
300 300
301 // True if the window's bounds can be updated using SET_BOUNDS event in
302 // maiximzed/fullscreen mode.
303 void set_allow_set_bounds_in_maximized(bool value) {
304 allow_set_bounds_in_maximized_ = value;
305 }
306 bool allow_set_bounds_in_maximized() const {
307 return allow_set_bounds_in_maximized_;
308 }
309
301 // Creates and takes ownership of a pointer to DragDetails when resizing is 310 // Creates and takes ownership of a pointer to DragDetails when resizing is
302 // active. This should be done before a resizer gets created. 311 // active. This should be done before a resizer gets created.
303 void CreateDragDetails(const gfx::Point& point_in_parent, 312 void CreateDragDetails(const gfx::Point& point_in_parent,
304 int window_component, 313 int window_component,
305 aura::client::WindowMoveSource source); 314 aura::client::WindowMoveSource source);
306 315
307 // Deletes and clears a pointer to DragDetails. This should be done when the 316 // Deletes and clears a pointer to DragDetails. This should be done when the
308 // resizer gets destroyed. 317 // resizer gets destroyed.
309 void DeleteDragDetails(); 318 void DeleteDragDetails();
310 319
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 bool top_row_keys_are_function_keys_; 387 bool top_row_keys_are_function_keys_;
379 std::unique_ptr<DragDetails> drag_details_; 388 std::unique_ptr<DragDetails> drag_details_;
380 389
381 bool unminimize_to_restore_bounds_; 390 bool unminimize_to_restore_bounds_;
382 bool in_immersive_fullscreen_; 391 bool in_immersive_fullscreen_;
383 bool ignore_keyboard_bounds_change_ = false; 392 bool ignore_keyboard_bounds_change_ = false;
384 bool hide_shelf_when_fullscreen_; 393 bool hide_shelf_when_fullscreen_;
385 bool minimum_visibility_; 394 bool minimum_visibility_;
386 bool can_be_dragged_; 395 bool can_be_dragged_;
387 bool cached_always_on_top_; 396 bool cached_always_on_top_;
397 bool allow_set_bounds_in_maximized_ = false;
388 398
389 // A property to remember the window position which was set before the 399 // A property to remember the window position which was set before the
390 // auto window position manager changed the window bounds, so that it can get 400 // auto window position manager changed the window bounds, so that it can get
391 // restored when only this one window gets shown. 401 // restored when only this one window gets shown.
392 std::unique_ptr<gfx::Rect> pre_auto_manage_window_bounds_; 402 std::unique_ptr<gfx::Rect> pre_auto_manage_window_bounds_;
393 403
394 base::ObserverList<WindowStateObserver> observer_list_; 404 base::ObserverList<WindowStateObserver> observer_list_;
395 405
396 // True to ignore a property change event to avoid reentrance in 406 // True to ignore a property change event to avoid reentrance in
397 // UpdateWindowStateType() 407 // UpdateWindowStateType()
398 bool ignore_property_change_; 408 bool ignore_property_change_;
399 409
400 std::unique_ptr<State> current_state_; 410 std::unique_ptr<State> current_state_;
401 411
402 DISALLOW_COPY_AND_ASSIGN(WindowState); 412 DISALLOW_COPY_AND_ASSIGN(WindowState);
403 }; 413 };
404 414
405 } // namespace wm 415 } // namespace wm
406 } // namespace ash 416 } // namespace ash
407 417
408 #endif // ASH_COMMON_WM_WINDOW_STATE_H_ 418 #endif // ASH_COMMON_WM_WINDOW_STATE_H_
OLDNEW
« no previous file with comments | « ash/common/wm/maximize_mode/maximize_mode_window_state.cc ('k') | ash/wm/window_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698