| 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_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_MAC_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_MAC_H_ | 6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/memory/scoped_nsobject.h" | 13 #include "base/memory/scoped_nsobject.h" |
| 14 #include "chrome/browser/ui/constrained_window.h" | 14 #include "chrome/browser/ui/constrained_window.h" |
| 15 | 15 |
| 16 @class BrowserWindowController; | 16 @class BrowserWindowController; |
| 17 @class GTMWindowSheetController; | 17 @class GTMWindowSheetController; |
| 18 @class NSView; | 18 @class NSView; |
| 19 @class NSWindow; | 19 @class NSWindow; |
| 20 class TabContentsWrapper; | 20 class TabContents; |
| 21 typedef TabContents TabContentsWrapper; |
| 21 | 22 |
| 22 // Base class for constrained dialog delegates. Never inherit from this | 23 // Base class for constrained dialog delegates. Never inherit from this |
| 23 // directly. | 24 // directly. |
| 24 class ConstrainedWindowMacDelegate { | 25 class ConstrainedWindowMacDelegate { |
| 25 public: | 26 public: |
| 26 ConstrainedWindowMacDelegate() : is_sheet_open_(false) {} | 27 ConstrainedWindowMacDelegate() : is_sheet_open_(false) {} |
| 27 virtual ~ConstrainedWindowMacDelegate() {} | 28 virtual ~ConstrainedWindowMacDelegate() {} |
| 28 | 29 |
| 29 // Tells the delegate to either delete itself or set up a task to delete | 30 // Tells the delegate to either delete itself or set up a task to delete |
| 30 // itself later. Note that you MUST close the sheet belonging to your delegate | 31 // itself later. Note that you MUST close the sheet belonging to your delegate |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // Stores if |ShowConstrainedWindow()| was called. | 143 // Stores if |ShowConstrainedWindow()| was called. |
| 143 bool should_be_visible_; | 144 bool should_be_visible_; |
| 144 | 145 |
| 145 // True when CloseConstrainedWindow has been called. | 146 // True when CloseConstrainedWindow has been called. |
| 146 bool closing_; | 147 bool closing_; |
| 147 | 148 |
| 148 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowMac); | 149 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowMac); |
| 149 }; | 150 }; |
| 150 | 151 |
| 151 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_MAC_H_ | 152 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_MAC_H_ |
| OLD | NEW |