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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 if (message_handler_->IsVisible() && !content_window_->TargetVisibility()) | 415 if (message_handler_->IsVisible() && !content_window_->TargetVisibility()) |
416 content_window_->Show(); | 416 content_window_->Show(); |
417 SetWindowTransparency(); | 417 SetWindowTransparency(); |
418 } | 418 } |
419 | 419 |
420 bool DesktopWindowTreeHostWin::IsFullscreen() const { | 420 bool DesktopWindowTreeHostWin::IsFullscreen() const { |
421 return message_handler_->fullscreen_handler()->fullscreen(); | 421 return message_handler_->fullscreen_handler()->fullscreen(); |
422 } | 422 } |
423 | 423 |
424 void DesktopWindowTreeHostWin::SetOpacity(unsigned char opacity) { | 424 void DesktopWindowTreeHostWin::SetOpacity(unsigned char opacity) { |
425 message_handler_->SetOpacity(static_cast<BYTE>(opacity)); | |
426 content_window_->layer()->SetOpacity(opacity / 255.0); | 425 content_window_->layer()->SetOpacity(opacity / 255.0); |
427 } | 426 } |
428 | 427 |
429 void DesktopWindowTreeHostWin::SetWindowIcons( | 428 void DesktopWindowTreeHostWin::SetWindowIcons( |
430 const gfx::ImageSkia& window_icon, const gfx::ImageSkia& app_icon) { | 429 const gfx::ImageSkia& window_icon, const gfx::ImageSkia& app_icon) { |
431 message_handler_->SetWindowIcons(window_icon, app_icon); | 430 message_handler_->SetWindowIcons(window_icon, app_icon); |
432 } | 431 } |
433 | 432 |
434 void DesktopWindowTreeHostWin::InitModalType(ui::ModalType modal_type) { | 433 void DesktopWindowTreeHostWin::InitModalType(ui::ModalType modal_type) { |
435 message_handler_->InitModalType(modal_type); | 434 message_handler_->InitModalType(modal_type); |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
993 | 992 |
994 // static | 993 // static |
995 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 994 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
996 internal::NativeWidgetDelegate* native_widget_delegate, | 995 internal::NativeWidgetDelegate* native_widget_delegate, |
997 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 996 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
998 return new DesktopWindowTreeHostWin(native_widget_delegate, | 997 return new DesktopWindowTreeHostWin(native_widget_delegate, |
999 desktop_native_widget_aura); | 998 desktop_native_widget_aura); |
1000 } | 999 } |
1001 | 1000 |
1002 } // namespace views | 1001 } // namespace views |
OLD | NEW |