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

Side by Side Diff: chrome/browser/ui/views/browser_dialogs_views.cc

Issue 1989543002: MacViews: support Views device permission prompt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 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/extensions/api/chrome_device_permissions_prompt.h"
7 #include "chrome/browser/extensions/extension_install_prompt.h" 8 #include "chrome/browser/extensions/extension_install_prompt.h"
8 #include "chrome/browser/ui/login/login_handler.h" 9 #include "chrome/browser/ui/login/login_handler.h"
9 10
10 // This file provides definitions of desktop browser dialog-creation methods for 11 // This file provides definitions of desktop browser dialog-creation methods for
11 // all toolkit-views platforms other than Mac. It also provides the definitions 12 // all toolkit-views platforms other than Mac. It also provides the definitions
12 // on Mac when mac_views_browser=1 is specified in GYP_DEFINES. The file is 13 // on Mac when mac_views_browser=1 is specified in GYP_DEFINES. The file is
13 // excluded in a Mac Cocoa build: definitions under chrome/browser/ui/cocoa may 14 // excluded in a Mac Cocoa build: definitions under chrome/browser/ui/cocoa may
14 // select at runtime whether to show a Cocoa dialog, or the toolkit-views dialog 15 // select at runtime whether to show a Cocoa dialog, or the toolkit-views dialog
15 // provided by browser_dialogs.h. 16 // provided by browser_dialogs.h.
16 17
(...skipping 10 matching lines...) Expand all
27 Configuration configuration) { 28 Configuration configuration) {
28 chrome::ShowBookmarkEditorViews(parent_window, profile, details, 29 chrome::ShowBookmarkEditorViews(parent_window, profile, details,
29 configuration); 30 configuration);
30 } 31 }
31 32
32 // static 33 // static
33 ExtensionInstallPrompt::ShowDialogCallback 34 ExtensionInstallPrompt::ShowDialogCallback
34 ExtensionInstallPrompt::GetDefaultShowDialogCallback() { 35 ExtensionInstallPrompt::GetDefaultShowDialogCallback() {
35 return ExtensionInstallPrompt::GetViewsShowDialogCallback(); 36 return ExtensionInstallPrompt::GetViewsShowDialogCallback();
36 } 37 }
38
39 void ChromeDevicePermissionsPrompt::ShowDialog() {
40 ShowDialogViews();
41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698