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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 SetWindowTransparency(); | 338 SetWindowTransparency(); |
339 } | 339 } |
340 | 340 |
341 bool DesktopRootWindowHostWin::IsFullscreen() const { | 341 bool DesktopRootWindowHostWin::IsFullscreen() const { |
342 return message_handler_->fullscreen_handler()->fullscreen(); | 342 return message_handler_->fullscreen_handler()->fullscreen(); |
343 } | 343 } |
344 | 344 |
345 void DesktopRootWindowHostWin::SetOpacity(unsigned char opacity) { | 345 void DesktopRootWindowHostWin::SetOpacity(unsigned char opacity) { |
346 message_handler_->SetOpacity(static_cast<BYTE>(opacity)); | 346 message_handler_->SetOpacity(static_cast<BYTE>(opacity)); |
347 content_window_->layer()->SetOpacity(opacity / 255.0); | 347 content_window_->layer()->SetOpacity(opacity / 255.0); |
348 GetWidget()->GetRootView()->SchedulePaint(); | |
349 } | 348 } |
350 | 349 |
351 void DesktopRootWindowHostWin::SetWindowIcons( | 350 void DesktopRootWindowHostWin::SetWindowIcons( |
352 const gfx::ImageSkia& window_icon, const gfx::ImageSkia& app_icon) { | 351 const gfx::ImageSkia& window_icon, const gfx::ImageSkia& app_icon) { |
353 message_handler_->SetWindowIcons(window_icon, app_icon); | 352 message_handler_->SetWindowIcons(window_icon, app_icon); |
354 } | 353 } |
355 | 354 |
356 void DesktopRootWindowHostWin::InitModalType(ui::ModalType modal_type) { | 355 void DesktopRootWindowHostWin::InitModalType(ui::ModalType modal_type) { |
357 message_handler_->InitModalType(modal_type); | 356 message_handler_->InitModalType(modal_type); |
358 } | 357 } |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 | 913 |
915 // static | 914 // static |
916 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 915 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
917 internal::NativeWidgetDelegate* native_widget_delegate, | 916 internal::NativeWidgetDelegate* native_widget_delegate, |
918 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 917 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
919 return new DesktopRootWindowHostWin(native_widget_delegate, | 918 return new DesktopRootWindowHostWin(native_widget_delegate, |
920 desktop_native_widget_aura); | 919 desktop_native_widget_aura); |
921 } | 920 } |
922 | 921 |
923 } // namespace views | 922 } // namespace views |
OLD | NEW |