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

Side by Side Diff: ui/views/widget/native_widget_delegate.h

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
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/events/event_constants.h" 10 #include "ui/events/event_constants.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Called when native focus moves from one native view to another. 60 // Called when native focus moves from one native view to another.
61 virtual void OnNativeFocus() = 0; 61 virtual void OnNativeFocus() = 0;
62 virtual void OnNativeBlur() = 0; 62 virtual void OnNativeBlur() = 0;
63 63
64 // Called when the window is about to be shown/hidden. 64 // Called when the window is about to be shown/hidden.
65 virtual void OnNativeWidgetVisibilityChanging(bool visible) = 0; 65 virtual void OnNativeWidgetVisibilityChanging(bool visible) = 0;
66 66
67 // Called when the window is shown/hidden. 67 // Called when the window is shown/hidden.
68 virtual void OnNativeWidgetVisibilityChanged(bool visible) = 0; 68 virtual void OnNativeWidgetVisibilityChanged(bool visible) = 0;
69 69
70 // Some OSs (e.g. Windows and Linux) don't mark windows as hiden on screen
71 // lock or when other opaque windows fully cover them.
72 // Note that e.g. OSX and Android do this while Windows and Linux don't.
73 // OnSoftVisibilityChanged enables that OS window state is kept as is (on
74 // Linux and Windows) and that e.g. power saving PageVisibility API is still
75 // properly triggered.
76 virtual void OnSoftVisibilityChanged(bool visible) = 0;
77
70 // Called when the native widget is created. 78 // Called when the native widget is created.
71 // The |desktop_widget| bool is true for widgets created in the desktop and 79 // The |desktop_widget| bool is true for widgets created in the desktop and
72 // false for widgets created in the shell. 80 // false for widgets created in the shell.
73 virtual void OnNativeWidgetCreated(bool desktop_widget) = 0; 81 virtual void OnNativeWidgetCreated(bool desktop_widget) = 0;
74 82
75 // Called just before the native widget is destroyed. This is the delegate's 83 // Called just before the native widget is destroyed. This is the delegate's
76 // last chance to do anything with the native widget handle. 84 // last chance to do anything with the native widget handle.
77 virtual void OnNativeWidgetDestroying() = 0; 85 virtual void OnNativeWidgetDestroying() = 0;
78 86
79 // Called just after the native widget is destroyed. 87 // Called just after the native widget is destroyed.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // later. Returns true if the initial focus has been set or the window should 151 // later. Returns true if the initial focus has been set or the window should
144 // not set the initial focus, or false if the caller should set the initial 152 // not set the initial focus, or false if the caller should set the initial
145 // focus (if any). 153 // focus (if any).
146 virtual bool SetInitialFocus(ui::WindowShowState show_state) = 0; 154 virtual bool SetInitialFocus(ui::WindowShowState show_state) = 0;
147 }; 155 };
148 156
149 } // namespace internal 157 } // namespace internal
150 } // namespace views 158 } // namespace views
151 159
152 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 160 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698