| 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 #import "chrome/browser/cocoa/html_dialog_window_controller.h" | 5 #import "chrome/browser/cocoa/html_dialog_window_controller.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #import <Cocoa/Cocoa.h> | 10 #import <Cocoa/Cocoa.h> |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 EXPECT_CALL(delegate_, GetDialogTitle()) | 73 EXPECT_CALL(delegate_, GetDialogTitle()) |
| 74 .WillOnce(Return(title_)); | 74 .WillOnce(Return(title_)); |
| 75 EXPECT_CALL(delegate_, GetDialogSize(_)) | 75 EXPECT_CALL(delegate_, GetDialogSize(_)) |
| 76 .WillOnce(SetArgumentPointee<0>(size_)); | 76 .WillOnce(SetArgumentPointee<0>(size_)); |
| 77 EXPECT_CALL(delegate_, GetDialogContentURL()) | 77 EXPECT_CALL(delegate_, GetDialogContentURL()) |
| 78 .WillOnce(Return(gurl_)); | 78 .WillOnce(Return(gurl_)); |
| 79 EXPECT_CALL(delegate_, OnDialogClosed(_)) | 79 EXPECT_CALL(delegate_, OnDialogClosed(_)) |
| 80 .Times(1); | 80 .Times(1); |
| 81 | 81 |
| 82 NSWindow* parent_window = cocoa_helper_.window(); | 82 NSWindow* parentWindow = cocoa_helper_.window(); |
| 83 HtmlDialogWindowController* html_dialog_window_controller = | 83 HtmlDialogWindowController* html_dialog_window_controller = |
| 84 [[HtmlDialogWindowController alloc] initWithDelegate:&delegate_ | 84 [[HtmlDialogWindowController alloc] initWithDelegate:&delegate_ |
| 85 parentWindow:parent_window | 85 profile:profile() |
| 86 browser:browser()]; | 86 parentWindow:parentWindow]; |
| 87 | 87 |
| 88 [html_dialog_window_controller loadDialogContents]; | 88 [html_dialog_window_controller loadDialogContents]; |
| 89 [html_dialog_window_controller showWindow:nil]; | 89 [html_dialog_window_controller showWindow:nil]; |
| 90 [html_dialog_window_controller close]; | 90 [html_dialog_window_controller close]; |
| 91 } | 91 } |
| 92 | 92 |
| 93 } // namespace | 93 } // namespace |
| OLD | NEW |