| OLD | NEW |
| 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 | 298 |
| 299 void WmWindowMus::SetOpacity(float opacity) { | 299 void WmWindowMus::SetOpacity(float opacity) { |
| 300 window_->SetOpacity(opacity); | 300 window_->SetOpacity(opacity); |
| 301 } | 301 } |
| 302 | 302 |
| 303 float WmWindowMus::GetTargetOpacity() const { | 303 float WmWindowMus::GetTargetOpacity() const { |
| 304 // TODO: need animation support: http://crbug.com/615087. | 304 // TODO: need animation support: http://crbug.com/615087. |
| 305 return window_->opacity(); | 305 return window_->opacity(); |
| 306 } | 306 } |
| 307 | 307 |
| 308 gfx::Rect WmWindowMus::GetMinimizeAnimationTargetBoundsInScreen() const { |
| 309 // TODO: need animation support: http://crbug.com/615087. |
| 310 NOTIMPLEMENTED(); |
| 311 return GetBoundsInScreen(); |
| 312 } |
| 313 |
| 308 void WmWindowMus::SetTransform(const gfx::Transform& transform) { | 314 void WmWindowMus::SetTransform(const gfx::Transform& transform) { |
| 309 // TODO: mus needs to support transforms: http://crbug.com/615089. | 315 // TODO: mus needs to support transforms: http://crbug.com/615089. |
| 310 NOTIMPLEMENTED(); | 316 NOTIMPLEMENTED(); |
| 311 } | 317 } |
| 312 | 318 |
| 313 gfx::Transform WmWindowMus::GetTargetTransform() const { | 319 gfx::Transform WmWindowMus::GetTargetTransform() const { |
| 314 // TODO: need animation support: http://crbug.com/615087. | 320 // TODO: need animation support: http://crbug.com/615087. |
| 315 return gfx::Transform(); | 321 return gfx::Transform(); |
| 316 } | 322 } |
| 317 | 323 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 334 | 340 |
| 335 default: | 341 default: |
| 336 NOTREACHED(); | 342 NOTREACHED(); |
| 337 break; | 343 break; |
| 338 } | 344 } |
| 339 | 345 |
| 340 NOTREACHED(); | 346 NOTREACHED(); |
| 341 return false; | 347 return false; |
| 342 } | 348 } |
| 343 | 349 |
| 350 SkColor WmWindowMus::GetColorProperty(WmWindowProperty key) { |
| 351 if (key == WmWindowProperty::TOP_VIEW_COLOR) { |
| 352 // TODO: need support for TOP_VIEW_COLOR: http://crbug.com/615100. |
| 353 NOTIMPLEMENTED(); |
| 354 return 0; |
| 355 } |
| 356 |
| 357 NOTREACHED(); |
| 358 return 0; |
| 359 } |
| 360 |
| 361 void WmWindowMus::SetColorProperty(WmWindowProperty key, SkColor value) { |
| 362 if (key == WmWindowProperty::TOP_VIEW_COLOR) { |
| 363 // TODO: need support for TOP_VIEW_COLOR: http://crbug.com/615100. |
| 364 NOTIMPLEMENTED(); |
| 365 return; |
| 366 } |
| 367 |
| 368 NOTREACHED(); |
| 369 } |
| 370 |
| 344 int WmWindowMus::GetIntProperty(WmWindowProperty key) { | 371 int WmWindowMus::GetIntProperty(WmWindowProperty key) { |
| 345 if (key == WmWindowProperty::SHELF_ID) { | 372 if (key == WmWindowProperty::SHELF_ID) { |
| 346 NOTIMPLEMENTED(); | 373 NOTIMPLEMENTED(); |
| 347 return 0; | 374 return 0; |
| 348 } | 375 } |
| 349 | 376 |
| 350 if (key == WmWindowProperty::TOP_VIEW_INSET) { | 377 if (key == WmWindowProperty::TOP_VIEW_INSET) { |
| 351 // TODO: need support for TOP_VIEW_INSET: http://crbug.com/615100. | 378 // TODO: need support for TOP_VIEW_INSET: http://crbug.com/615100. |
| 352 NOTIMPLEMENTED(); | 379 NOTIMPLEMENTED(); |
| 353 return 0; | 380 return 0; |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 } | 911 } |
| 885 | 912 |
| 886 void WmWindowMus::OnTransientChildRemoved(ui::Window* window, | 913 void WmWindowMus::OnTransientChildRemoved(ui::Window* window, |
| 887 ui::Window* transient) { | 914 ui::Window* transient) { |
| 888 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, | 915 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, |
| 889 OnTransientChildRemoved(this, Get(transient))); | 916 OnTransientChildRemoved(this, Get(transient))); |
| 890 } | 917 } |
| 891 | 918 |
| 892 } // namespace mus | 919 } // namespace mus |
| 893 } // namespace ash | 920 } // namespace ash |
| OLD | NEW |