|
[mac] Implement a windowed extension install/permissions prompt.
This allows extension install dialogs, and permissions upgrade prompts,
to be shown on mac without requiring a parent WebContents to attach a
sheet to. Currently, they hit NOTIMPLEMENTED().
The window is a titled NSPanel, centred on screen using [NSWindow
center]. The implementation mostly uses the existing
ExtensionInstallViewController, but puts it in a new, windowed-version
of ExtensionInstallDialogController.
Adds a test:
WindowedInstallDialogControllerBrowserTest.ShowInstallDialog that mimics
the way extension install and upgrade prompts are invoked via the app
launcher.
Screenshot at http://crbug.com/325030#c2
BUG= 325030, 229094, 271809, 269151
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238542
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+268 lines, -57 lines) |
Patch |
 |
M |
base/mac/sdk_forward_declarations.h
|
View
|
1
2
3
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/browser_window_cocoa.mm
|
View
|
1
2
3
4
5
|
2 chunks |
+1 line, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/browser_window_controller.mm
|
View
|
1
2
3
4
|
3 chunks |
+1 line, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.mm
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/extensions/extension_install_prompt_test_utils.h
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/extensions/extension_install_prompt_test_utils.mm
|
View
|
1
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+49 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.mm
|
View
|
1
2
3
4
5
6
|
1 chunk |
+117 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller_browsertest.mm
|
View
|
1
2
3
|
1 chunk |
+67 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.mm
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser_ui.gypi
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests.gypi
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|