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

Side by Side Diff: ash/wm/window_state.cc

Issue 199283002: Remove ash::switches::UseImmersiveFullscreenForAllWindows() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/window_state.h ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ash/wm/window_state.h" 5 #include "ash/wm/window_state.h"
6 6
7 #include "ash/ash_switches.h" 7 #include "ash/ash_switches.h"
8 #include "ash/root_window_controller.h" 8 #include "ash/root_window_controller.h"
9 #include "ash/screen_util.h" 9 #include "ash/screen_util.h"
10 #include "ash/shell_window_ids.h" 10 #include "ash/shell_window_ids.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 WindowState::WindowState(aura::Window* window) 83 WindowState::WindowState(aura::Window* window)
84 : window_(window), 84 : window_(window),
85 window_position_managed_(false), 85 window_position_managed_(false),
86 bounds_changed_by_user_(false), 86 bounds_changed_by_user_(false),
87 panel_attached_(true), 87 panel_attached_(true),
88 ignored_by_shelf_(false), 88 ignored_by_shelf_(false),
89 can_consume_system_keys_(false), 89 can_consume_system_keys_(false),
90 top_row_keys_are_function_keys_(false), 90 top_row_keys_are_function_keys_(false),
91 unminimize_to_restore_bounds_(false), 91 unminimize_to_restore_bounds_(false),
92 hide_shelf_when_fullscreen_(true), 92 hide_shelf_when_fullscreen_(true),
93 animate_to_fullscreen_(true),
94 minimum_visibility_(false), 93 minimum_visibility_(false),
95 can_be_dragged_(true), 94 can_be_dragged_(true),
96 ignore_property_change_(false), 95 ignore_property_change_(false),
97 current_state_(new DefaultState(ToWindowStateType(GetShowState()))) { 96 current_state_(new DefaultState(ToWindowStateType(GetShowState()))) {
98 window_->AddObserver(this); 97 window_->AddObserver(this);
99 #if defined(OS_CHROMEOS)
100 // NOTE(pkotwicz): Animating to immersive fullscreen does not look good. When
101 // switches::UseImmersiveFullscreenForAllWindows() returns true, most windows
102 // can be put into immersive fullscreen. It is not worth the added complexity
103 // to only animate to fullscreen if the window is put into immersive
104 // fullscreen.
105 animate_to_fullscreen_ = !switches::UseImmersiveFullscreenForAllWindows();
106 #endif
107 } 98 }
108 99
109 WindowState::~WindowState() { 100 WindowState::~WindowState() {
110 } 101 }
111 102
112 bool WindowState::HasDelegate() const { 103 bool WindowState::HasDelegate() const {
113 return delegate_; 104 return delegate_;
114 } 105 }
115 106
116 void WindowState::SetDelegate(scoped_ptr<WindowStateDelegate> delegate) { 107 void WindowState::SetDelegate(scoped_ptr<WindowStateDelegate> delegate) {
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 } 416 }
426 return settings; 417 return settings;
427 } 418 }
428 419
429 const WindowState* GetWindowState(const aura::Window* window) { 420 const WindowState* GetWindowState(const aura::Window* window) {
430 return GetWindowState(const_cast<aura::Window*>(window)); 421 return GetWindowState(const_cast<aura::Window*>(window));
431 } 422 }
432 423
433 } // namespace wm 424 } // namespace wm
434 } // namespace ash 425 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/window_state.h ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698