OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
tapted
2016/06/30 12:02:37
cl description should go something like
"""MacVie
| |
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_COCOA_BRIDGED_NATIVE_WIDGET_H_ | 5 #ifndef UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ |
6 #define UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ | 6 #define UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
124 void ToggleDesiredFullscreenState(); | 124 void ToggleDesiredFullscreenState(); |
125 | 125 |
126 // Called by the NSWindowDelegate when the size of the window changes. | 126 // Called by the NSWindowDelegate when the size of the window changes. |
127 void OnSizeChanged(); | 127 void OnSizeChanged(); |
128 | 128 |
129 // Called by the NSWindowDelegate when the visibility of the window may have | 129 // Called by the NSWindowDelegate when the visibility of the window may have |
130 // changed. For example, due to a (de)miniaturize operation, or the window | 130 // changed. For example, due to a (de)miniaturize operation, or the window |
131 // being reordered in (or out of) the screen list. | 131 // being reordered in (or out of) the screen list. |
132 void OnVisibilityChanged(); | 132 void OnVisibilityChanged(); |
133 | 133 |
134 // Explicitly set the visibility. This is called when Cocoa requests a draw, | |
135 // but hasn't updated the value of -[NSWindow isVisible] yet. | |
136 void OnVisibilityChangedTo(bool new_visibility); | |
137 | |
138 // Called by the NSWindowDelegate on a scale factor or color space change. | 134 // Called by the NSWindowDelegate on a scale factor or color space change. |
139 void OnBackingPropertiesChanged(); | 135 void OnBackingPropertiesChanged(); |
140 | 136 |
141 // Called by the NSWindowDelegate when the window becomes or resigns key. | 137 // Called by the NSWindowDelegate when the window becomes or resigns key. |
142 void OnWindowKeyStatusChangedTo(bool is_key); | 138 void OnWindowKeyStatusChangedTo(bool is_key); |
143 | 139 |
144 // Called by NSWindowDelegate when the application receives a mouse-down, but | 140 // Called by NSWindowDelegate when the application receives a mouse-down, but |
145 // before the event is processed by NSWindows. Returning true here will cause | 141 // before the event is processed by NSWindows. Returning true here will cause |
146 // the event to be cancelled and reposted at the CGSessionEventTap level. This | 142 // the event to be cancelled and reposted at the CGSessionEventTap level. This |
147 // is used to determine whether a mouse-down should drag the window. | 143 // is used to determine whether a mouse-down should drag the window. |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
303 bool invalidate_shadow_on_frame_swap_ = false; | 299 bool invalidate_shadow_on_frame_swap_ = false; |
304 | 300 |
305 AssociatedViews associated_views_; | 301 AssociatedViews associated_views_; |
306 | 302 |
307 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); | 303 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); |
308 }; | 304 }; |
309 | 305 |
310 } // namespace views | 306 } // namespace views |
311 | 307 |
312 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ | 308 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ |
OLD | NEW |