| 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_root_window_host_win.h" | 5 #include "ui/views/widget/desktop_aura/desktop_root_window_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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 void DesktopWindowTreeHostWin::SetVisibilityChangedAnimationsEnabled( | 369 void DesktopWindowTreeHostWin::SetVisibilityChangedAnimationsEnabled( |
| 370 bool value) { | 370 bool value) { |
| 371 message_handler_->SetVisibilityChangedAnimationsEnabled(value); | 371 message_handler_->SetVisibilityChangedAnimationsEnabled(value); |
| 372 content_window_->SetProperty(aura::client::kAnimationsDisabledKey, !value); | 372 content_window_->SetProperty(aura::client::kAnimationsDisabledKey, !value); |
| 373 } | 373 } |
| 374 | 374 |
| 375 bool DesktopWindowTreeHostWin::ShouldUseNativeFrame() { | 375 bool DesktopWindowTreeHostWin::ShouldUseNativeFrame() { |
| 376 return ui::win::IsAeroGlassEnabled(); | 376 return ui::win::IsAeroGlassEnabled(); |
| 377 } | 377 } |
| 378 | 378 |
| 379 void DesktopWindowTreeHostWin::FrameTypeChanged() { | 379 void DesktopWindowTreeHostWin::FrameTypeChanged( |
| 380 Widget::FrameType /*new_type*/) { |
| 380 message_handler_->FrameTypeChanged(); | 381 message_handler_->FrameTypeChanged(); |
| 381 SetWindowTransparency(); | 382 SetWindowTransparency(); |
| 382 } | 383 } |
| 383 | 384 |
| 384 NonClientFrameView* DesktopWindowTreeHostWin::CreateNonClientFrameView() { | 385 NonClientFrameView* DesktopWindowTreeHostWin::CreateNonClientFrameView() { |
| 385 return GetWidget()->ShouldUseNativeFrame() ? | 386 return GetWidget()->ShouldUseNativeFrame() ? |
| 386 new NativeFrameView(GetWidget()) : NULL; | 387 new NativeFrameView(GetWidget()) : NULL; |
| 387 } | 388 } |
| 388 | 389 |
| 389 void DesktopWindowTreeHostWin::SetFullscreen(bool fullscreen) { | 390 void DesktopWindowTreeHostWin::SetFullscreen(bool fullscreen) { |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1012 | 1013 |
| 1013 // static | 1014 // static |
| 1014 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 1015 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
| 1015 internal::NativeWidgetDelegate* native_widget_delegate, | 1016 internal::NativeWidgetDelegate* native_widget_delegate, |
| 1016 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 1017 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
| 1017 return new DesktopWindowTreeHostWin(native_widget_delegate, | 1018 return new DesktopWindowTreeHostWin(native_widget_delegate, |
| 1018 desktop_native_widget_aura); | 1019 desktop_native_widget_aura); |
| 1019 } | 1020 } |
| 1020 | 1021 |
| 1021 } // namespace views | 1022 } // namespace views |
| OLD | NEW |