Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 1746013002: Hide/show widget on Windows screen lock/unlock Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "third_party/skia/include/core/SkPath.h" 7 #include "third_party/skia/include/core/SkPath.h"
8 #include "third_party/skia/include/core/SkRegion.h" 8 #include "third_party/skia/include/core/SkRegion.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/client/cursor_client.h" 10 #include "ui/aura/client/cursor_client.h"
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 } 780 }
781 781
782 void DesktopWindowTreeHostWin::HandleVisibilityChanging(bool visible) { 782 void DesktopWindowTreeHostWin::HandleVisibilityChanging(bool visible) {
783 native_widget_delegate_->OnNativeWidgetVisibilityChanging(visible); 783 native_widget_delegate_->OnNativeWidgetVisibilityChanging(visible);
784 } 784 }
785 785
786 void DesktopWindowTreeHostWin::HandleVisibilityChanged(bool visible) { 786 void DesktopWindowTreeHostWin::HandleVisibilityChanged(bool visible) {
787 native_widget_delegate_->OnNativeWidgetVisibilityChanged(visible); 787 native_widget_delegate_->OnNativeWidgetVisibilityChanged(visible);
788 } 788 }
789 789
790 void DesktopWindowTreeHostWin::HandleSoftVisibilityChanged(bool visible) {
791 native_widget_delegate_->OnSoftVisibilityChanged(visible);
792 }
793
790 void DesktopWindowTreeHostWin::HandleClientSizeChanged( 794 void DesktopWindowTreeHostWin::HandleClientSizeChanged(
791 const gfx::Size& new_size) { 795 const gfx::Size& new_size) {
792 if (dispatcher()) 796 if (dispatcher())
793 OnHostResized(new_size); 797 OnHostResized(new_size);
794 } 798 }
795 799
796 void DesktopWindowTreeHostWin::HandleFrameChanged() { 800 void DesktopWindowTreeHostWin::HandleFrameChanged() {
797 SetWindowTransparency(); 801 SetWindowTransparency();
798 // Replace the frame and layout the contents. 802 // Replace the frame and layout the contents.
799 GetWidget()->non_client_view()->UpdateFrame(); 803 GetWidget()->non_client_view()->UpdateFrame();
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 965
962 // static 966 // static
963 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 967 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
964 internal::NativeWidgetDelegate* native_widget_delegate, 968 internal::NativeWidgetDelegate* native_widget_delegate,
965 DesktopNativeWidgetAura* desktop_native_widget_aura) { 969 DesktopNativeWidgetAura* desktop_native_widget_aura) {
966 return new DesktopWindowTreeHostWin(native_widget_delegate, 970 return new DesktopWindowTreeHostWin(native_widget_delegate,
967 desktop_native_widget_aura); 971 desktop_native_widget_aura);
968 } 972 }
969 973
970 } // namespace views 974 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.h ('k') | ui/views/widget/native_widget_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698