OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/browser_dialogs.h" | 5 #include "chrome/browser/ui/browser_dialogs.h" |
6 | 6 |
7 #include "chrome/browser/ui/login/login_prompt.h" | 7 #include "chrome/browser/ui/login/login_prompt.h" |
8 | 8 |
9 // This file provides definitions of desktop browser dialog-creation methods for | 9 // This file provides definitions of desktop browser dialog-creation methods for |
10 // all toolkit-views platforms other than Mac. It also provides the definitions | 10 // all toolkit-views platforms other than Mac. It also provides the definitions |
11 // on Mac when mac_views_browser=1 is specified in GYP_DEFINES. The file is | 11 // on Mac when mac_views_browser=1 is specified in GYP_DEFINES. The file is |
12 // excluded in a Mac Cocoa build: definitions under chrome/browser/ui/cocoa may | 12 // excluded in a Mac Cocoa build: definitions under chrome/browser/ui/cocoa may |
13 // select at runtime whether to show a Cocoa dialog, or the toolkit-views dialog | 13 // select at runtime whether to show a Cocoa dialog, or the toolkit-views dialog |
14 // provided by browser_dialogs.h. | 14 // provided by browser_dialogs.h. |
15 | 15 |
16 // static | 16 // static |
17 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, | 17 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, |
18 net::URLRequest* request) { | 18 net::URLRequest* request) { |
19 return chrome::CreateLoginHandlerViews(auth_info, request); | 19 return chrome::CreateLoginHandlerViews(auth_info, request); |
20 } | 20 } |
| 21 |
| 22 // static |
| 23 void BookmarkEditor::Show(gfx::NativeWindow parent_window, |
| 24 Profile* profile, |
| 25 const EditDetails& details, |
| 26 Configuration configuration) { |
| 27 chrome::ShowBookmarkEditorView(parent_window, profile, details, |
| 28 configuration); |
| 29 } |
OLD | NEW |