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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 16 matching lines...) Expand all Loading... |
325 | 331 |
326 default: | 332 default: |
327 NOTREACHED(); | 333 NOTREACHED(); |
328 break; | 334 break; |
329 } | 335 } |
330 | 336 |
331 NOTREACHED(); | 337 NOTREACHED(); |
332 return false; | 338 return false; |
333 } | 339 } |
334 | 340 |
| 341 SkColor WmWindowMus::GetColorProperty(WmWindowProperty key) { |
| 342 if (key == WmWindowProperty::TOP_VIEW_COLOR) { |
| 343 // TODO: need support for TOP_VIEW_COLOR: http://crbug.com/615100. |
| 344 NOTIMPLEMENTED(); |
| 345 return 0; |
| 346 } |
| 347 |
| 348 NOTREACHED(); |
| 349 return 0; |
| 350 } |
| 351 |
| 352 void WmWindowMus::SetColorProperty(WmWindowProperty key, SkColor value) { |
| 353 if (key == WmWindowProperty::TOP_VIEW_COLOR) { |
| 354 // TODO: need support for TOP_VIEW_COLOR: http://crbug.com/615100. |
| 355 NOTIMPLEMENTED(); |
| 356 return; |
| 357 } |
| 358 |
| 359 NOTREACHED(); |
| 360 } |
| 361 |
335 int WmWindowMus::GetIntProperty(WmWindowProperty key) { | 362 int WmWindowMus::GetIntProperty(WmWindowProperty key) { |
336 if (key == WmWindowProperty::SHELF_ID) { | 363 if (key == WmWindowProperty::SHELF_ID) { |
337 NOTIMPLEMENTED(); | 364 NOTIMPLEMENTED(); |
338 return 0; | 365 return 0; |
339 } | 366 } |
340 | 367 |
341 if (key == WmWindowProperty::TOP_VIEW_INSET) { | 368 if (key == WmWindowProperty::TOP_VIEW_INSET) { |
342 // TODO: need support for TOP_VIEW_INSET: http://crbug.com/615100. | 369 // TODO: need support for TOP_VIEW_INSET: http://crbug.com/615100. |
343 NOTIMPLEMENTED(); | 370 NOTIMPLEMENTED(); |
344 return 0; | 371 return 0; |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 } | 897 } |
871 | 898 |
872 void WmWindowMus::OnTransientChildRemoved(ui::Window* window, | 899 void WmWindowMus::OnTransientChildRemoved(ui::Window* window, |
873 ui::Window* transient) { | 900 ui::Window* transient) { |
874 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, | 901 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, |
875 OnTransientChildRemoved(this, Get(transient))); | 902 OnTransientChildRemoved(this, Get(transient))); |
876 } | 903 } |
877 | 904 |
878 } // namespace mus | 905 } // namespace mus |
879 } // namespace ash | 906 } // namespace ash |
OLD | NEW |