OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h" | 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h" |
6 | 6 |
7 #include "base/win/metro.h" | 7 #include "base/win/metro.h" |
8 #include "third_party/skia/include/core/SkPath.h" | 8 #include "third_party/skia/include/core/SkPath.h" |
9 #include "third_party/skia/include/core/SkRegion.h" | 9 #include "third_party/skia/include/core/SkRegion.h" |
10 #include "ui/aura/client/aura_constants.h" | 10 #include "ui/aura/client/aura_constants.h" |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 } | 447 } |
448 | 448 |
449 bool DesktopWindowTreeHostWin::IsAnimatingClosed() const { | 449 bool DesktopWindowTreeHostWin::IsAnimatingClosed() const { |
450 return pending_close_; | 450 return pending_close_; |
451 } | 451 } |
452 | 452 |
453 bool DesktopWindowTreeHostWin::IsTranslucentWindowOpacitySupported() const { | 453 bool DesktopWindowTreeHostWin::IsTranslucentWindowOpacitySupported() const { |
454 return ui::win::IsAeroGlassEnabled(); | 454 return ui::win::IsAeroGlassEnabled(); |
455 } | 455 } |
456 | 456 |
| 457 void DesktopWindowTreeHostWin::SizeConstraintsChanged() { |
| 458 message_handler_->SizeConstraintsChanged(); |
| 459 } |
| 460 |
457 //////////////////////////////////////////////////////////////////////////////// | 461 //////////////////////////////////////////////////////////////////////////////// |
458 // DesktopWindowTreeHostWin, WindowTreeHost implementation: | 462 // DesktopWindowTreeHostWin, WindowTreeHost implementation: |
459 | 463 |
460 ui::EventSource* DesktopWindowTreeHostWin::GetEventSource() { | 464 ui::EventSource* DesktopWindowTreeHostWin::GetEventSource() { |
461 return this; | 465 return this; |
462 } | 466 } |
463 | 467 |
464 gfx::AcceleratedWidget DesktopWindowTreeHostWin::GetAcceleratedWidget() { | 468 gfx::AcceleratedWidget DesktopWindowTreeHostWin::GetAcceleratedWidget() { |
465 return message_handler_->hwnd(); | 469 return message_handler_->hwnd(); |
466 } | 470 } |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
995 | 999 |
996 // static | 1000 // static |
997 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 1001 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
998 internal::NativeWidgetDelegate* native_widget_delegate, | 1002 internal::NativeWidgetDelegate* native_widget_delegate, |
999 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 1003 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
1000 return new DesktopWindowTreeHostWin(native_widget_delegate, | 1004 return new DesktopWindowTreeHostWin(native_widget_delegate, |
1001 desktop_native_widget_aura); | 1005 desktop_native_widget_aura); |
1002 } | 1006 } |
1003 | 1007 |
1004 } // namespace views | 1008 } // namespace views |
OLD | NEW |