| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |