| 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 #include "chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 #include <stddef.h> |
| 8 | 9 |
| 9 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| 10 #include "base/logging.h" | 11 #include "base/logging.h" |
| 11 #import "base/mac/foundation_util.h" | 12 #import "base/mac/foundation_util.h" |
| 13 #include "base/macros.h" |
| 12 #include "base/strings/sys_string_conversions.h" | 14 #include "base/strings/sys_string_conversions.h" |
| 13 #import "chrome/browser/chrome_browser_application_mac.h" | 15 #import "chrome/browser/chrome_browser_application_mac.h" |
| 14 #include "chrome/browser/ui/app_modal/chrome_javascript_native_dialog_factory.h" | 16 #include "chrome/browser/ui/app_modal/chrome_javascript_native_dialog_factory.h" |
| 15 #include "chrome/browser/ui/blocked_content/app_modal_dialog_helper.h" | 17 #include "chrome/browser/ui/blocked_content/app_modal_dialog_helper.h" |
| 16 #include "components/app_modal/javascript_app_modal_dialog.h" | 18 #include "components/app_modal/javascript_app_modal_dialog.h" |
| 17 #include "components/app_modal/javascript_dialog_manager.h" | 19 #include "components/app_modal/javascript_dialog_manager.h" |
| 18 #include "components/app_modal/javascript_native_dialog_factory.h" | 20 #include "components/app_modal/javascript_native_dialog_factory.h" |
| 19 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
| 20 #include "content/public/browser/web_contents_delegate.h" | 22 #include "content/public/browser/web_contents_delegate.h" |
| 21 #include "grit/components_strings.h" | 23 #include "grit/components_strings.h" |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 DISALLOW_COPY_AND_ASSIGN(ChromeJavaScriptNativeDialogCocoaFactory); | 459 DISALLOW_COPY_AND_ASSIGN(ChromeJavaScriptNativeDialogCocoaFactory); |
| 458 }; | 460 }; |
| 459 | 461 |
| 460 } // namespace | 462 } // namespace |
| 461 | 463 |
| 462 void InstallChromeJavaScriptNativeDialogFactory() { | 464 void InstallChromeJavaScriptNativeDialogFactory() { |
| 463 app_modal::JavaScriptDialogManager::GetInstance()-> | 465 app_modal::JavaScriptDialogManager::GetInstance()-> |
| 464 SetNativeDialogFactory( | 466 SetNativeDialogFactory( |
| 465 make_scoped_ptr(new ChromeJavaScriptNativeDialogCocoaFactory)); | 467 make_scoped_ptr(new ChromeJavaScriptNativeDialogCocoaFactory)); |
| 466 } | 468 } |
| OLD | NEW |