|
Refactor: Untangle Mac's ExclusiveAccessContext from BrowserWindow
This is a pure refactor CL. One problem: BrowserWindowCocoa (and views'
BrowserView) multiply-inherit from BrowserWindow and
ExclusiveAccessContext. BW and EAC declare some of the same methods, so
it gets weird. Let's fix that.
Then, toolkit-views has the "simplified fullscreen UI" implemented. It
works fine on Mac, but BrowserWindowCocoa has lots of dependencies and
we don't want to add more.
Instead, start by decoupling Mac's ExclusiveAccessContext implementation
from BrowserWindowCocoa into its own class, ExclusiveAccessController.
This wraps and manages the ephemeral fullscreen bubble window which, for
Cocoa, is a ExclusiveAccessBubbleWindowController.
A follow-up CL will allow ExclusiveAccessController to pick between a
Cocoa bubble and a toolkit-views bubble at runtime.
BUG= 352425
Committed: https://crrev.com/8d830c628767a7d2327a006f1d033b1d03cd070c
Cr-Commit-Position: refs/heads/master@{#373125}
Total comments: 8
Total comments: 6
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+290 lines, -244 lines) |
Patch |
|
M |
chrome/browser/ui/browser_window.h
|
View
|
|
1 chunk |
+0 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/applescript/window_applescript.mm
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
A |
chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+83 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm
|
View
|
1
2
3
4
5
6
|
1 chunk |
+121 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/browser_window_cocoa.h
|
View
|
|
4 chunks |
+0 lines, -21 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/browser_window_cocoa.mm
|
View
|
1
2
3
4
5
6
7
|
7 chunks |
+5 lines, -73 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/browser_window_command_handler.mm
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/browser_window_controller.h
|
View
|
1
2
3
4
5
6
7
|
8 chunks |
+10 lines, -19 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/browser_window_controller.mm
|
View
|
1
2
3
4
5
6
7
|
7 chunks |
+16 lines, -19 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/browser_window_controller_private.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
View
|
1
2
|
4 chunks |
+12 lines, -24 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/exclusive_access/exclusive_access_context.h
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/exclusive_access/exclusive_access_context.cc
|
View
|
1
2
|
3 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/exclusive_access/fullscreen_controller_interactive_browsertest.cc
|
View
|
1
|
5 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/exclusive_access/fullscreen_controller_state_test.cc
|
View
|
4
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/frame/browser_view.h
|
View
|
1
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/frame/browser_view.cc
|
View
|
|
1 chunk |
+0 lines, -22 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_browser_ui.gypi
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/test/base/test_browser_window.h
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/test/base/test_browser_window.cc
|
View
|
|
1 chunk |
+0 lines, -17 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 30 (16 generated)
|