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

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

Issue 55303006: Make sure the non browser/non app widget is fully visible when created on ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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') | ash/wm/workspace/workspace_layout_manager_unittest.cc » ('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/root_window_controller.h" 7 #include "ash/root_window_controller.h"
8 #include "ash/screen_ash.h" 8 #include "ash/screen_ash.h"
9 #include "ash/shell_window_ids.h" 9 #include "ash/shell_window_ids.h"
10 #include "ash/wm/window_properties.h" 10 #include "ash/wm/window_properties.h"
(...skipping 23 matching lines...) Expand all
34 bounds_changed_by_user_(false), 34 bounds_changed_by_user_(false),
35 panel_attached_(true), 35 panel_attached_(true),
36 continue_drag_after_reparent_(false), 36 continue_drag_after_reparent_(false),
37 ignored_by_shelf_(false), 37 ignored_by_shelf_(false),
38 can_consume_system_keys_(false), 38 can_consume_system_keys_(false),
39 top_row_keys_are_function_keys_(false), 39 top_row_keys_are_function_keys_(false),
40 window_resizer_(NULL), 40 window_resizer_(NULL),
41 always_restores_to_restore_bounds_(false), 41 always_restores_to_restore_bounds_(false),
42 hide_shelf_when_fullscreen_(true), 42 hide_shelf_when_fullscreen_(true),
43 animate_to_fullscreen_(true), 43 animate_to_fullscreen_(true),
44 minimum_visibility_(false),
44 window_show_type_(ToWindowShowType(GetShowState())) { 45 window_show_type_(ToWindowShowType(GetShowState())) {
45 window_->AddObserver(this); 46 window_->AddObserver(this);
46 } 47 }
47 48
48 WindowState::~WindowState() { 49 WindowState::~WindowState() {
49 } 50 }
50 51
51 void WindowState::SetDelegate(scoped_ptr<WindowStateDelegate> delegate) { 52 void WindowState::SetDelegate(scoped_ptr<WindowStateDelegate> delegate) {
52 DCHECK(!delegate_.get()); 53 DCHECK(!delegate_.get());
53 delegate_ = delegate.Pass(); 54 delegate_ = delegate.Pass();
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 } 300 }
300 return settings; 301 return settings;
301 } 302 }
302 303
303 const WindowState* GetWindowState(const aura::Window* window) { 304 const WindowState* GetWindowState(const aura::Window* window) {
304 return GetWindowState(const_cast<aura::Window*>(window)); 305 return GetWindowState(const_cast<aura::Window*>(window));
305 } 306 }
306 307
307 } // namespace wm 308 } // namespace wm
308 } // namespace ash 309 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/window_state.h ('k') | ash/wm/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698