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

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

Issue 2312133002: MacViews: Fix flashing of opaque non-modal windows on display. (Closed)
Patch Set: Created 4 years, 3 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 bool window_visible_; 307 bool window_visible_;
308 308
309 // If true, the window is either visible, or wants to be visible but is 309 // If true, the window is either visible, or wants to be visible but is
310 // currently hidden due to having a hidden parent. 310 // currently hidden due to having a hidden parent.
311 bool wants_to_be_visible_; 311 bool wants_to_be_visible_;
312 312
313 // If true, the window has been made visible or changed shape and the window 313 // If true, the window has been made visible or changed shape and the window
314 // shadow needs to be invalidated when a frame is received for the new shape. 314 // shadow needs to be invalidated when a frame is received for the new shape.
315 bool invalidate_shadow_on_frame_swap_ = false; 315 bool invalidate_shadow_on_frame_swap_ = false;
316 316
317 // Whether the window's visibility is suppressed currently. For opaque non-
318 // modal windows, the window's alpha value is set to 0, till the frame from
319 // the compositor arrives to avoid "blinking".
320 bool initial_visibility_suppressed_ = false;
321
317 AssociatedViews associated_views_; 322 AssociatedViews associated_views_;
318 323
319 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); 324 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget);
320 }; 325 };
321 326
322 } // namespace views 327 } // namespace views
323 328
324 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 329 #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