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

Side by Side Diff: ui/views/cocoa/bridged_native_widget.h

Issue 2069103004: MacViews: Attach child windows when parent is on the screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits in test. Created 4 years, 6 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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/views/cocoa/bridged_native_widget.mm » ('j') | ui/views/widget/native_widget_mac_unittest.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698