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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 // subclass. | 375 // subclass. |
376 return ShouldUseNativeFrame(); | 376 return ShouldUseNativeFrame(); |
377 } | 377 } |
378 | 378 |
379 void DesktopWindowTreeHostWin::FrameTypeChanged() { | 379 void DesktopWindowTreeHostWin::FrameTypeChanged() { |
380 message_handler_->FrameTypeChanged(); | 380 message_handler_->FrameTypeChanged(); |
381 SetWindowTransparency(); | 381 SetWindowTransparency(); |
382 } | 382 } |
383 | 383 |
384 void DesktopWindowTreeHostWin::SetFullscreen(bool fullscreen) { | 384 void DesktopWindowTreeHostWin::SetFullscreen(bool fullscreen) { |
385 message_handler_->fullscreen_handler()->SetFullscreen(fullscreen); | 385 message_handler_->SetFullscreen(fullscreen); |
386 // TODO(sky): workaround for ScopedFullscreenVisibility showing window | 386 // TODO(sky): workaround for ScopedFullscreenVisibility showing window |
387 // directly. Instead of this should listen for visibility changes and then | 387 // directly. Instead of this should listen for visibility changes and then |
388 // update window. | 388 // update window. |
389 if (message_handler_->IsVisible() && !content_window_->TargetVisibility()) | 389 if (message_handler_->IsVisible() && !content_window_->TargetVisibility()) |
390 content_window_->Show(); | 390 content_window_->Show(); |
391 SetWindowTransparency(); | 391 SetWindowTransparency(); |
392 } | 392 } |
393 | 393 |
394 bool DesktopWindowTreeHostWin::IsFullscreen() const { | 394 bool DesktopWindowTreeHostWin::IsFullscreen() const { |
395 return message_handler_->fullscreen_handler()->fullscreen(); | 395 return message_handler_->fullscreen_handler()->fullscreen(); |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 | 939 |
940 // static | 940 // static |
941 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 941 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
942 internal::NativeWidgetDelegate* native_widget_delegate, | 942 internal::NativeWidgetDelegate* native_widget_delegate, |
943 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 943 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
944 return new DesktopWindowTreeHostWin(native_widget_delegate, | 944 return new DesktopWindowTreeHostWin(native_widget_delegate, |
945 desktop_native_widget_aura); | 945 desktop_native_widget_aura); |
946 } | 946 } |
947 | 947 |
948 } // namespace views | 948 } // namespace views |
OLD | NEW |