| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/cocoa/html_dialog_window_controller.h" | 5 #import "chrome/browser/ui/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> |
| 11 | 11 |
| 12 #import "base/mac/scoped_nsautorelease_pool.h" | 12 #import "base/mac/scoped_nsautorelease_pool.h" |
| 13 #include "base/sys_string_conversions.h" | 13 #include "base/sys_string_conversions.h" |
| 14 #include "chrome/browser/dom_ui/html_dialog_ui.h" | |
| 15 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 15 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
| 16 #include "chrome/browser/webui/html_dialog_ui.h" |
| 17 #include "chrome/browser/webui/web_ui.h" | 17 #include "chrome/browser/webui/web_ui.h" |
| 18 #include "chrome/test/browser_with_test_window_test.h" | 18 #include "chrome/test/browser_with_test_window_test.h" |
| 19 #include "chrome/test/testing_profile.h" | 19 #include "chrome/test/testing_profile.h" |
| 20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
| 21 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 #include "ui/gfx/size.h" | 23 #include "ui/gfx/size.h" |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 HtmlDialogWindowController* html_dialog_window_controller = | 86 HtmlDialogWindowController* html_dialog_window_controller = |
| 87 [[HtmlDialogWindowController alloc] initWithDelegate:&delegate_ | 87 [[HtmlDialogWindowController alloc] initWithDelegate:&delegate_ |
| 88 profile:profile()]; | 88 profile:profile()]; |
| 89 | 89 |
| 90 [html_dialog_window_controller loadDialogContents]; | 90 [html_dialog_window_controller loadDialogContents]; |
| 91 [html_dialog_window_controller showWindow:nil]; | 91 [html_dialog_window_controller showWindow:nil]; |
| 92 [html_dialog_window_controller close]; | 92 [html_dialog_window_controller close]; |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace | 95 } // namespace |
| OLD | NEW |