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

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

Issue 2234233002: Enable ash window cycle UI by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky review 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
« no previous file with comments | « ash/wm/window_cycle_controller_unittest.cc ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_mirror_view.h" 5 #include "ash/wm/window_mirror_view.h"
6 6
7 #include "ash/aura/wm_window_aura.h" 7 #include "ash/aura/wm_window_aura.h"
8 #include "ash/common/wm/forwarding_layer_delegate.h" 8 #include "ash/common/wm/forwarding_layer_delegate.h"
9 #include "ash/common/wm/window_state.h" 9 #include "ash/common/wm/window_state.h"
10 #include "ash/wm/window_state_aura.h" 10 #include "ash/wm/window_state_aura.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 97 }
98 98
99 Layout(); 99 Layout();
100 } 100 }
101 101
102 ui::Layer* WindowMirrorView::GetMirrorLayer() { 102 ui::Layer* WindowMirrorView::GetMirrorLayer() {
103 return layer_owner_->root(); 103 return layer_owner_->root();
104 } 104 }
105 105
106 gfx::Rect WindowMirrorView::GetClientAreaBounds() const { 106 gfx::Rect WindowMirrorView::GetClientAreaBounds() const {
107 // The target window may not have a widget in unit tests.
108 if (!target_->GetInternalWidget())
109 return gfx::Rect();
107 views::View* client_view = target_->GetInternalWidget()->client_view(); 110 views::View* client_view = target_->GetInternalWidget()->client_view();
108 return client_view->ConvertRectToWidget(client_view->GetLocalBounds()); 111 return client_view->ConvertRectToWidget(client_view->GetLocalBounds());
109 } 112 }
110 113
111 } // namespace wm 114 } // namespace wm
112 } // namespace ash 115 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/window_cycle_controller_unittest.cc ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698