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

Side by Side Diff: ash/shelf/shelf_layout_manager.cc

Issue 2907853002: [mus+ash] Removes WmWindow from ash/shelf and ash/shell (Closed)
Patch Set: [mus+ash] Removes WmWindow from ash/shelf and ash/shell (removed some more wm_window.h) Created 3 years, 7 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
« no previous file with comments | « ash/shelf/shelf_layout_manager.h ('k') | ash/shelf/shelf_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/shelf/shelf_layout_manager.h" 5 #include "ash/shelf/shelf_layout_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 wm::WmSnapToPixelLayoutManager::SetChildBounds(child, requested_bounds); 400 wm::WmSnapToPixelLayoutManager::SetChildBounds(child, requested_bounds);
401 // We may contain other widgets (such as frame maximize bubble) but they don't 401 // We may contain other widgets (such as frame maximize bubble) but they don't
402 // effect the layout in anyway. 402 // effect the layout in anyway.
403 if (!updating_bounds_ && 403 if (!updating_bounds_ &&
404 ((shelf_widget_->GetNativeWindow() == child) || 404 ((shelf_widget_->GetNativeWindow() == child) ||
405 (shelf_widget_->status_area_widget()->GetNativeWindow() == child))) { 405 (shelf_widget_->status_area_widget()->GetNativeWindow() == child))) {
406 LayoutShelf(); 406 LayoutShelf();
407 } 407 }
408 } 408 }
409 409
410 void ShelfLayoutManager::OnShelfAutoHideBehaviorChanged(WmWindow* root_window) { 410 void ShelfLayoutManager::OnShelfAutoHideBehaviorChanged(
411 aura::Window* root_window) {
411 UpdateVisibilityState(); 412 UpdateVisibilityState();
412 } 413 }
413 414
414 void ShelfLayoutManager::OnPinnedStateChanged(aura::Window* pinned_window) { 415 void ShelfLayoutManager::OnPinnedStateChanged(aura::Window* pinned_window) {
415 // Shelf needs to be hidden on entering to pinned mode, or restored 416 // Shelf needs to be hidden on entering to pinned mode, or restored
416 // on exiting from pinned mode. 417 // on exiting from pinned mode.
417 UpdateVisibilityState(); 418 UpdateVisibilityState();
418 } 419 }
419 420
420 void ShelfLayoutManager::OnVirtualKeyboardStateChanged( 421 void ShelfLayoutManager::OnVirtualKeyboardStateChanged(
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 gesture_drag_status_ = GESTURE_DRAG_NONE; 1155 gesture_drag_status_ = GESTURE_DRAG_NONE;
1155 } 1156 }
1156 1157
1157 void ShelfLayoutManager::CancelGestureDrag() { 1158 void ShelfLayoutManager::CancelGestureDrag() {
1158 gesture_drag_status_ = GESTURE_DRAG_CANCEL_IN_PROGRESS; 1159 gesture_drag_status_ = GESTURE_DRAG_CANCEL_IN_PROGRESS;
1159 UpdateVisibilityState(); 1160 UpdateVisibilityState();
1160 gesture_drag_status_ = GESTURE_DRAG_NONE; 1161 gesture_drag_status_ = GESTURE_DRAG_NONE;
1161 } 1162 }
1162 1163
1163 } // namespace ash 1164 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shelf/shelf_layout_manager.h ('k') | ash/shelf/shelf_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698