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

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 (rebase) Created 4 years, 3 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 289
290 void WmWindowMus::SetOpacity(float opacity) { 290 void WmWindowMus::SetOpacity(float opacity) {
291 window_->SetOpacity(opacity); 291 window_->SetOpacity(opacity);
292 } 292 }
293 293
294 float WmWindowMus::GetTargetOpacity() const { 294 float WmWindowMus::GetTargetOpacity() const {
295 // TODO: need animation support: http://crbug.com/615087. 295 // TODO: need animation support: http://crbug.com/615087.
296 return window_->opacity(); 296 return window_->opacity();
297 } 297 }
298 298
299 gfx::Rect WmWindowMus::GetMinimizeAnimationTargetBoundsInScreen() const {
300 // TODO: need animation support: http://crbug.com/615087.
301 NOTIMPLEMENTED();
302 return GetBoundsInScreen();
303 }
304
299 void WmWindowMus::SetTransform(const gfx::Transform& transform) { 305 void WmWindowMus::SetTransform(const gfx::Transform& transform) {
300 // TODO: mus needs to support transforms: http://crbug.com/615089. 306 // TODO: mus needs to support transforms: http://crbug.com/615089.
301 NOTIMPLEMENTED(); 307 NOTIMPLEMENTED();
302 } 308 }
303 309
304 gfx::Transform WmWindowMus::GetTargetTransform() const { 310 gfx::Transform WmWindowMus::GetTargetTransform() const {
305 // TODO: need animation support: http://crbug.com/615087. 311 // TODO: need animation support: http://crbug.com/615087.
306 return gfx::Transform(); 312 return gfx::Transform();
307 } 313 }
308 314
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 } 876 }
871 877
872 void WmWindowMus::OnTransientChildRemoved(ui::Window* window, 878 void WmWindowMus::OnTransientChildRemoved(ui::Window* window,
873 ui::Window* transient) { 879 ui::Window* transient) {
874 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, 880 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_,
875 OnTransientChildRemoved(this, Get(transient))); 881 OnTransientChildRemoved(this, Get(transient)));
876 } 882 }
877 883
878 } // namespace mus 884 } // namespace mus
879 } // namespace ash 885 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698