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

Side by Side Diff: ash/mus/bridge/wm_window_mus.cc

Issue 2239233002: [ash-md] Fades overview header in and out (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Fades overview header in and out (crash fix for non-md path) 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 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/mus/bridge/wm_window_mus.h" 5 #include "ash/mus/bridge/wm_window_mus.h"
6 6
7 #include "ash/common/wm/container_finder.h" 7 #include "ash/common/wm/container_finder.h"
8 #include "ash/common/wm/window_state.h" 8 #include "ash/common/wm/window_state.h"
9 #include "ash/common/wm_layout_manager.h" 9 #include "ash/common/wm_layout_manager.h"
10 #include "ash/common/wm_transient_window_observer.h" 10 #include "ash/common/wm_transient_window_observer.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 293
294 void WmWindowMus::SetOpacity(float opacity) { 294 void WmWindowMus::SetOpacity(float opacity) {
295 window_->SetOpacity(opacity); 295 window_->SetOpacity(opacity);
296 } 296 }
297 297
298 float WmWindowMus::GetTargetOpacity() const { 298 float WmWindowMus::GetTargetOpacity() const {
299 // TODO: need animation support: http://crbug.com/615087. 299 // TODO: need animation support: http://crbug.com/615087.
300 return window_->opacity(); 300 return window_->opacity();
301 } 301 }
302 302
303 gfx::Rect WmWindowMus::GetMinimizeAnimationTargetBoundsInScreen() const {
304 // TODO: need animation support: http://crbug.com/615087.
305 NOTIMPLEMENTED();
306 return GetBoundsInScreen();
307 }
308
303 void WmWindowMus::SetTransform(const gfx::Transform& transform) { 309 void WmWindowMus::SetTransform(const gfx::Transform& transform) {
304 // TODO: mus needs to support transforms: http://crbug.com/615089. 310 // TODO: mus needs to support transforms: http://crbug.com/615089.
305 NOTIMPLEMENTED(); 311 NOTIMPLEMENTED();
306 } 312 }
307 313
308 gfx::Transform WmWindowMus::GetTargetTransform() const { 314 gfx::Transform WmWindowMus::GetTargetTransform() const {
309 // TODO: need animation support: http://crbug.com/615087. 315 // TODO: need animation support: http://crbug.com/615087.
310 return gfx::Transform(); 316 return gfx::Transform();
311 } 317 }
312 318
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 } 878 }
873 879
874 void WmWindowMus::OnTransientChildRemoved(ui::Window* window, 880 void WmWindowMus::OnTransientChildRemoved(ui::Window* window,
875 ui::Window* transient) { 881 ui::Window* transient) {
876 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, 882 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_,
877 OnTransientChildRemoved(this, Get(transient))); 883 OnTransientChildRemoved(this, Get(transient)));
878 } 884 }
879 885
880 } // namespace mus 886 } // namespace mus
881 } // namespace ash 887 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698