Index: ui/views/cocoa/bridged_content_view.h |
diff --git a/ui/views/cocoa/bridged_content_view.h b/ui/views/cocoa/bridged_content_view.h |
index 2bc93ab77a1f8abd75a2b10695216630d2cc6d7a..3a917cfdbaba4a8be1f6ceec4a5c3b1c5d9ecfa7 100644 |
--- a/ui/views/cocoa/bridged_content_view.h |
+++ b/ui/views/cocoa/bridged_content_view.h |
@@ -31,10 +31,16 @@ class View; |
// A tracking area installed to enable mouseMoved events. |
ui::ScopedCrTrackingArea trackingArea_; |
+ |
+ // Set to ignore window visibility in a subsequent call to drawRect:. Views |
+ // does not expect hidden windows to paint. However, when showing a window, |
+ // Cocoa first paints before updating visibility. |
+ BOOL willShow_; |
} |
@property(readonly, nonatomic) views::View* hostedView; |
@property(assign, nonatomic) ui::TextInputClient* textInputClient; |
+@property(assign, nonatomic) BOOL willShow; |
// Initialize the NSView -> views::View bridge. |viewToHost| must be non-NULL. |
- (id)initWithView:(views::View*)viewToHost; |