OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/ui/cocoa/constrained_window_mac.h" | 5 #include "chrome/browser/ui/cocoa/constrained_window_mac.h" |
6 | 6 |
7 #include "chrome/browser/tab_contents/tab_contents.h" | 7 #include "chrome/browser/tab_contents/tab_contents.h" |
8 #include "chrome/browser/tab_contents/tab_contents_view.h" | |
9 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 9 #include "content/browser/tab_contents/tab_contents_view.h" |
10 #import "third_party/GTM/AppKit/GTMWindowSheetController.h" | 10 #import "third_party/GTM/AppKit/GTMWindowSheetController.h" |
11 | 11 |
12 ConstrainedWindowMacDelegateSystemSheet:: | 12 ConstrainedWindowMacDelegateSystemSheet:: |
13 ConstrainedWindowMacDelegateSystemSheet(id delegate, SEL didEndSelector) | 13 ConstrainedWindowMacDelegateSystemSheet(id delegate, SEL didEndSelector) |
14 : systemSheet_(nil), | 14 : systemSheet_(nil), |
15 delegate_([delegate retain]), | 15 delegate_([delegate retain]), |
16 didEndSelector_(didEndSelector) {} | 16 didEndSelector_(didEndSelector) {} |
17 | 17 |
18 ConstrainedWindowMacDelegateSystemSheet:: | 18 ConstrainedWindowMacDelegateSystemSheet:: |
19 ~ConstrainedWindowMacDelegateSystemSheet() {} | 19 ~ConstrainedWindowMacDelegateSystemSheet() {} |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 return; | 137 return; |
138 } | 138 } |
139 DCHECK(controller != nil); | 139 DCHECK(controller != nil); |
140 | 140 |
141 // Remember the controller we're adding ourselves to, so that we can later | 141 // Remember the controller we're adding ourselves to, so that we can later |
142 // remove us from it. | 142 // remove us from it. |
143 controller_ = controller; | 143 controller_ = controller; |
144 [controller_ attachConstrainedWindow:this]; | 144 [controller_ attachConstrainedWindow:this]; |
145 delegate_->set_sheet_open(true); | 145 delegate_->set_sheet_open(true); |
146 } | 146 } |
OLD | NEW |