| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_ |
| 6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_ | 6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 ConstrainedWindowMacDelegate* delegate_; // weak, owns us. | 50 ConstrainedWindowMacDelegate* delegate_; // weak, owns us. |
| 51 | 51 |
| 52 // The WebContents that owns and constrains this ConstrainedWindowMac. Weak. | 52 // The WebContents that owns and constrains this ConstrainedWindowMac. Weak. |
| 53 content::WebContents* web_contents_; | 53 content::WebContents* web_contents_; |
| 54 | 54 |
| 55 base::scoped_nsprotocol<id<ConstrainedWindowSheet>> sheet_; | 55 base::scoped_nsprotocol<id<ConstrainedWindowSheet>> sheet_; |
| 56 | 56 |
| 57 // This is true if the constrained window has been shown. | 57 // This is true if the constrained window has been shown. |
| 58 bool shown_; | 58 bool shown_; |
| 59 |
| 60 // This is true while the constrained window is closing. |
| 61 bool closing_; |
| 59 }; | 62 }; |
| 60 | 63 |
| 61 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_ | 64 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_ |
| OLD | NEW |