Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: chrome/browser/cocoa/constrained_window_mac.mm

Issue 164391: Implement http auth login dialog for OS X. (Closed)
Patch Set: re-disable nonfuntional test Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/cocoa/constrained_window_mac.h" 5 #include "chrome/browser/cocoa/constrained_window_mac.h"
6 6
7 #import "chrome/browser/cocoa/browser_window_controller.h" 7 #import "chrome/browser/cocoa/browser_window_controller.h"
8 #include "chrome/browser/tab_contents/tab_contents.h" 8 #include "chrome/browser/tab_contents/tab_contents.h"
9 #include "chrome/browser/tab_contents/tab_contents_view.h" 9 #include "chrome/browser/tab_contents/tab_contents_view.h"
10 #import "third_party/GTM/AppKit/GTMWindowSheetController.h" 10 #import "third_party/GTM/AppKit/GTMWindowSheetController.h"
(...skipping 11 matching lines...) Expand all
22 nil]; 22 nil];
23 [sheetController beginSystemSheet:systemSheet_ 23 [sheetController beginSystemSheet:systemSheet_
24 modalForView:view 24 modalForView:view
25 withParameters:params]; 25 withParameters:params];
26 } 26 }
27 27
28 void ConstrainedWindowMacDelegateCustomSheet::RunSheet( 28 void ConstrainedWindowMacDelegateCustomSheet::RunSheet(
29 GTMWindowSheetController* sheetController, 29 GTMWindowSheetController* sheetController,
30 NSView* view) { 30 NSView* view) {
31 [sheetController beginSheet:customSheet_.get() 31 [sheetController beginSheet:customSheet_.get()
32 modalForView:view modalDelegate:delegate_.get() 32 modalForView:view
33 modalDelegate:delegate_.get()
33 didEndSelector:didEndSelector_ 34 didEndSelector:didEndSelector_
34 contextInfo:NULL]; 35 contextInfo:NULL];
35 } 36 }
36 37
37 // static 38 // static
38 ConstrainedWindow* ConstrainedWindow::CreateConstrainedDialog( 39 ConstrainedWindow* ConstrainedWindow::CreateConstrainedDialog(
39 TabContents* parent, 40 TabContents* parent,
40 ConstrainedWindowMacDelegate* delegate) { 41 ConstrainedWindowMacDelegate* delegate) {
41 return new ConstrainedWindowMac(parent, delegate); 42 return new ConstrainedWindowMac(parent, delegate);
42 } 43 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 return; 79 return;
79 } 80 }
80 DCHECK(controller != nil); 81 DCHECK(controller != nil);
81 82
82 // Remember the controller we're adding ourselves to, so that we can later 83 // Remember the controller we're adding ourselves to, so that we can later
83 // remove us from it. 84 // remove us from it.
84 controller_ = controller; 85 controller_ = controller;
85 [controller_ attachConstrainedWindow:this]; 86 [controller_ attachConstrainedWindow:this];
86 delegate_->set_sheet_open(true); 87 delegate_->set_sheet_open(true);
87 } 88 }
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/constrained_window_mac.h ('k') | chrome/browser/cocoa/download_request_dialog_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698