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 28 matching lines...) Expand all Loading... |
337 NOTIMPLEMENTED(); | 343 NOTIMPLEMENTED(); |
338 return 0; | 344 return 0; |
339 } | 345 } |
340 | 346 |
341 if (key == WmWindowProperty::TOP_VIEW_INSET) { | 347 if (key == WmWindowProperty::TOP_VIEW_INSET) { |
342 // TODO: need support for TOP_VIEW_INSET: http://crbug.com/615100. | 348 // TODO: need support for TOP_VIEW_INSET: http://crbug.com/615100. |
343 NOTIMPLEMENTED(); | 349 NOTIMPLEMENTED(); |
344 return 0; | 350 return 0; |
345 } | 351 } |
346 | 352 |
| 353 if (key == WmWindowProperty::TOP_VIEW_COLOR) { |
| 354 // TODO: need support for TOP_VIEW_COLOR: http://crbug.com/615100. |
| 355 NOTIMPLEMENTED(); |
| 356 return 0; |
| 357 } |
| 358 |
347 NOTREACHED(); | 359 NOTREACHED(); |
348 return 0; | 360 return 0; |
349 } | 361 } |
350 | 362 |
351 void WmWindowMus::SetIntProperty(WmWindowProperty key, int value) { | 363 void WmWindowMus::SetIntProperty(WmWindowProperty key, int value) { |
352 if (key == WmWindowProperty::SHELF_ID) { | 364 if (key == WmWindowProperty::SHELF_ID) { |
353 NOTIMPLEMENTED(); | 365 NOTIMPLEMENTED(); |
354 return; | 366 return; |
355 } | 367 } |
356 | 368 |
357 if (key == WmWindowProperty::TOP_VIEW_INSET) { | 369 if (key == WmWindowProperty::TOP_VIEW_INSET) { |
358 // TODO: need support for TOP_VIEW_INSET: http://crbug.com/615100. | 370 // TODO: need support for TOP_VIEW_INSET: http://crbug.com/615100. |
359 NOTIMPLEMENTED(); | 371 NOTIMPLEMENTED(); |
360 return; | 372 return; |
361 } | 373 } |
362 | 374 |
| 375 if (key == WmWindowProperty::TOP_VIEW_COLOR) { |
| 376 // TODO: need support for TOP_VIEW_COLOR: http://crbug.com/615100. |
| 377 NOTIMPLEMENTED(); |
| 378 return; |
| 379 } |
| 380 |
363 NOTREACHED(); | 381 NOTREACHED(); |
364 } | 382 } |
365 | 383 |
366 ShelfItemDetails* WmWindowMus::GetShelfItemDetails() { | 384 ShelfItemDetails* WmWindowMus::GetShelfItemDetails() { |
367 NOTIMPLEMENTED(); // TODO: Add support; see crbug.com/634150 | 385 NOTIMPLEMENTED(); // TODO: Add support; see crbug.com/634150 |
368 return nullptr; | 386 return nullptr; |
369 } | 387 } |
370 | 388 |
371 void WmWindowMus::SetShelfItemDetails(const ShelfItemDetails& details) { | 389 void WmWindowMus::SetShelfItemDetails(const ShelfItemDetails& details) { |
372 NOTIMPLEMENTED(); // TODO: Add support; see crbug.com/634150 | 390 NOTIMPLEMENTED(); // TODO: Add support; see crbug.com/634150 |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 } | 888 } |
871 | 889 |
872 void WmWindowMus::OnTransientChildRemoved(ui::Window* window, | 890 void WmWindowMus::OnTransientChildRemoved(ui::Window* window, |
873 ui::Window* transient) { | 891 ui::Window* transient) { |
874 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, | 892 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, |
875 OnTransientChildRemoved(this, Get(transient))); | 893 OnTransientChildRemoved(this, Get(transient))); |
876 } | 894 } |
877 | 895 |
878 } // namespace mus | 896 } // namespace mus |
879 } // namespace ash | 897 } // namespace ash |
OLD | NEW |