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

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: Disable test as potentialy flacky. Created 4 years, 5 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 | « no previous file | ui/views/cocoa/bridged_native_widget.mm » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_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>
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 // Called once by the NSWindowDelegate when the position of the window has 136 // Called once by the NSWindowDelegate when the position of the window has
137 // changed. 137 // changed.
138 void OnPositionChanged(); 138 void OnPositionChanged();
139 139
140 // Called by the NSWindowDelegate when the visibility of the window may have 140 // Called by the NSWindowDelegate when the visibility of the window may have
141 // changed. For example, due to a (de)miniaturize operation, or the window 141 // changed. For example, due to a (de)miniaturize operation, or the window
142 // being reordered in (or out of) the screen list. 142 // being reordered in (or out of) the screen list.
143 void OnVisibilityChanged(); 143 void OnVisibilityChanged();
144 144
145 // Explicitly set the visibility. This is called when Cocoa requests a draw,
146 // but hasn't updated the value of -[NSWindow isVisible] yet.
147 void OnVisibilityChangedTo(bool new_visibility);
148
149 // Called by the NSWindowDelegate on a scale factor or color space change. 145 // Called by the NSWindowDelegate on a scale factor or color space change.
150 void OnBackingPropertiesChanged(); 146 void OnBackingPropertiesChanged();
151 147
152 // Called by the NSWindowDelegate when the window becomes or resigns key. 148 // Called by the NSWindowDelegate when the window becomes or resigns key.
153 void OnWindowKeyStatusChangedTo(bool is_key); 149 void OnWindowKeyStatusChangedTo(bool is_key);
154 150
155 // Called by NSWindowDelegate when the application receives a mouse-down, but 151 // Called by NSWindowDelegate when the application receives a mouse-down, but
156 // before the event is processed by NSWindows. Returning true here will cause 152 // before the event is processed by NSWindows. Returning true here will cause
157 // the event to be cancelled and reposted at the CGSessionEventTap level. This 153 // the event to be cancelled and reposted at the CGSessionEventTap level. This
158 // is used to determine whether a mouse-down should drag the window. 154 // is used to determine whether a mouse-down should drag the window.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 bool invalidate_shadow_on_frame_swap_ = false; 312 bool invalidate_shadow_on_frame_swap_ = false;
317 313
318 AssociatedViews associated_views_; 314 AssociatedViews associated_views_;
319 315
320 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); 316 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget);
321 }; 317 };
322 318
323 } // namespace views 319 } // namespace views
324 320
325 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 321 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698