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 | |
305 void WmWindowMus::SetTransform(const gfx::Transform& transform) { | 299 void WmWindowMus::SetTransform(const gfx::Transform& transform) { |
306 // TODO: mus needs to support transforms: http://crbug.com/615089. | 300 // TODO: mus needs to support transforms: http://crbug.com/615089. |
307 NOTIMPLEMENTED(); | 301 NOTIMPLEMENTED(); |
308 } | 302 } |
309 | 303 |
310 gfx::Transform WmWindowMus::GetTargetTransform() const { | 304 gfx::Transform WmWindowMus::GetTargetTransform() const { |
311 // TODO: need animation support: http://crbug.com/615087. | 305 // TODO: need animation support: http://crbug.com/615087. |
312 return gfx::Transform(); | 306 return gfx::Transform(); |
313 } | 307 } |
314 | 308 |
(...skipping 16 matching lines...) Expand all Loading... |
331 | 325 |
332 default: | 326 default: |
333 NOTREACHED(); | 327 NOTREACHED(); |
334 break; | 328 break; |
335 } | 329 } |
336 | 330 |
337 NOTREACHED(); | 331 NOTREACHED(); |
338 return false; | 332 return false; |
339 } | 333 } |
340 | 334 |
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 | |
362 int WmWindowMus::GetIntProperty(WmWindowProperty key) { | 335 int WmWindowMus::GetIntProperty(WmWindowProperty key) { |
363 if (key == WmWindowProperty::SHELF_ID) { | 336 if (key == WmWindowProperty::SHELF_ID) { |
364 NOTIMPLEMENTED(); | 337 NOTIMPLEMENTED(); |
365 return 0; | 338 return 0; |
366 } | 339 } |
367 | 340 |
368 if (key == WmWindowProperty::TOP_VIEW_INSET) { | 341 if (key == WmWindowProperty::TOP_VIEW_INSET) { |
369 // TODO: need support for TOP_VIEW_INSET: http://crbug.com/615100. | 342 // TODO: need support for TOP_VIEW_INSET: http://crbug.com/615100. |
370 NOTIMPLEMENTED(); | 343 NOTIMPLEMENTED(); |
371 return 0; | 344 return 0; |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 } | 870 } |
898 | 871 |
899 void WmWindowMus::OnTransientChildRemoved(ui::Window* window, | 872 void WmWindowMus::OnTransientChildRemoved(ui::Window* window, |
900 ui::Window* transient) { | 873 ui::Window* transient) { |
901 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, | 874 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, |
902 OnTransientChildRemoved(this, Get(transient))); | 875 OnTransientChildRemoved(this, Get(transient))); |
903 } | 876 } |
904 | 877 |
905 } // namespace mus | 878 } // namespace mus |
906 } // namespace ash | 879 } // namespace ash |
OLD | NEW |