| 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/memory/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 11 #include "components/web_modal/native_web_contents_modal_dialog.h" | 11 #include "components/web_modal/native_web_contents_modal_dialog.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 class WebContents; | 14 class WebContents; |
| 15 } | 15 } |
| 16 class ConstrainedWindowMac; | 16 class ConstrainedWindowMac; |
| 17 @protocol ConstrainedWindowSheet; | 17 @protocol ConstrainedWindowSheet; |
| 18 | 18 |
| 19 // A delegate for a constrained window. The delegate is notified when the | 19 // A delegate for a constrained window. The delegate is notified when the |
| 20 // window closes. | 20 // window closes. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 50 // The WebContents that owns and constrains this ConstrainedWindowMac. Weak. | 50 // The WebContents that owns and constrains this ConstrainedWindowMac. Weak. |
| 51 content::WebContents* web_contents_; | 51 content::WebContents* web_contents_; |
| 52 | 52 |
| 53 scoped_nsprotocol<id<ConstrainedWindowSheet>> sheet_; | 53 scoped_nsprotocol<id<ConstrainedWindowSheet>> sheet_; |
| 54 | 54 |
| 55 // This is true if the constrained window has been shown. | 55 // This is true if the constrained window has been shown. |
| 56 bool shown_; | 56 bool shown_; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_ | 59 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_ |
| OLD | NEW |