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

Issue 836933005: Refactor fullscreen_controller. (Closed)

Created:
5 years, 11 months ago by Sriram
Modified:
5 years, 11 months ago
Reviewers:
scheib, miu, sky
CC:
chromium-reviews, nkostylev+watch_chromium.org, tfarina, dzhioev+watch_chromium.org, scheib+watch_chromium.org, oshima+watch_chromium.org, gcasto+watchlist_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor fullscreen_controller. Split FullscreenController to MouseController (and leave fullscreen related parts in original class). ExclusiveAccessManager is responsible for coordinating the different exclusive access controllers. BUG=166928 TEST=Requires MANUAL testing of fullscreen and pointer/mouse lock is required as tests are disabled for being flaky Committed: https://crrev.com/a41db560b2f4f86d1b8b05bfbad6b0684314662a Cr-Commit-Position: refs/heads/master@{#313159}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Fix test build and failures. #

Patch Set 3 : Updated based on Vincent's CR comments #

Patch Set 4 : Fix mac build break #

Patch Set 5 : Fix build break #

Total comments: 46

Patch Set 6 : Updated based on Yuri's comments #

Patch Set 7 : Rebase change #

Total comments: 2

Patch Set 8 : Fix mac build break after rebase to TOT #

Total comments: 17

Patch Set 9 : Updated based on Vincent's comments #

Patch Set 10 : Sync to TOT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+778 lines, -1400 lines) Patch
M chrome/browser/chromeos/login/lock/screen_locker_browsertest.cc View 1 2 3 4 5 6 3 chunks +12 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 12 chunks +22 lines, -18 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_commands_mac.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_win.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/exclusive_access/exclusive_access_bubble.cc View 1 2 3 4 5 1 chunk +5 lines, -4 lines 0 comments Download
A + chrome/browser/ui/exclusive_access/exclusive_access_controller_base.h View 1 2 3 4 5 6 7 8 1 chunk +71 lines, -43 lines 0 comments Download
A + chrome/browser/ui/exclusive_access/exclusive_access_controller_base.cc View 1 2 3 4 5 6 7 8 1 chunk +76 lines, -37 lines 0 comments Download
A + chrome/browser/ui/exclusive_access/exclusive_access_manager.h View 1 2 3 4 5 6 7 8 1 chunk +57 lines, -52 lines 0 comments Download
A chrome/browser/ui/exclusive_access/exclusive_access_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +119 lines, -0 lines 0 comments Download
M chrome/browser/ui/exclusive_access/flash_fullscreen_interactive_browsertest.cc View 1 2 3 4 5 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/ui/exclusive_access/fullscreen_controller.h View 1 2 3 4 5 6 7 8 8 chunks +31 lines, -89 lines 0 comments Download
M chrome/browser/ui/exclusive_access/fullscreen_controller.cc View 1 2 3 4 5 6 7 8 22 chunks +109 lines, -345 lines 0 comments Download
M chrome/browser/ui/exclusive_access/fullscreen_controller_state_test.cc View 1 2 3 4 5 6 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/exclusive_access/fullscreen_controller_state_unittest.cc View 1 2 3 4 5 6 4 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/ui/exclusive_access/fullscreen_controller_test.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/exclusive_access/fullscreen_controller_test.cc View 1 2 3 4 5 3 chunks +20 lines, -19 lines 0 comments Download
A + chrome/browser/ui/exclusive_access/mouse_lock_controller.h View 1 2 3 4 5 6 7 8 1 chunk +45 lines, -43 lines 0 comments Download
A + chrome/browser/ui/exclusive_access/mouse_lock_controller.cc View 1 2 3 4 5 6 7 8 4 chunks +99 lines, -683 lines 0 comments Download
M chrome/browser/ui/views/exclusive_access_bubble_views.cc View 1 2 3 4 5 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc View 1 2 3 4 5 6 3 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc View 1 2 3 4 5 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc View 1 2 3 4 5 6 1 chunk +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view.cc View 1 2 3 4 5 6 3 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view_browsertest.cc View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/managed_full_screen_bubble_delegate_view.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (3 generated)
Sriram
I have not finished with the CL (even got tests to pass) but would appreciate ...
5 years, 11 months ago (2015-01-14 17:37:19 UTC) #2
scheib
Looks like the right direction to me. When you get into testing, there are some ...
5 years, 11 months ago (2015-01-14 22:37:59 UTC) #3
Sriram
https://codereview.chromium.org/836933005/diff/1/chrome/browser/ui/exclusive_access/exclusive_access_controller_base.cc File chrome/browser/ui/exclusive_access/exclusive_access_controller_base.cc (right): https://codereview.chromium.org/836933005/diff/1/chrome/browser/ui/exclusive_access/exclusive_access_controller_base.cc#newcode51 chrome/browser/ui/exclusive_access/exclusive_access_controller_base.cc:51: // Derived class will to actually implement if necessary. ...
5 years, 11 months ago (2015-01-15 00:34:28 UTC) #4
miu
Great job on this refactoring! :) Comments: In the change description, I think you meant ...
5 years, 11 months ago (2015-01-16 22:17:39 UTC) #5
Sriram
https://codereview.chromium.org/836933005/diff/80001/chrome/browser/ui/browser.h File chrome/browser/ui/browser.h (right): https://codereview.chromium.org/836933005/diff/80001/chrome/browser/ui/browser.h#newcode478 chrome/browser/ui/browser.h:478: ExclusiveAccessManager* GetExclusiveAccessManager() const { On 2015/01/16 22:17:38, miu wrote: ...
5 years, 11 months ago (2015-01-21 01:38:57 UTC) #6
scheib
> I have not finished with the CL (even got tests to pass) but would ...
5 years, 11 months ago (2015-01-21 16:45:43 UTC) #7
Sriram
Hi, This is the actual refactor before new lock controller for keyboard is added. Yuri ...
5 years, 11 months ago (2015-01-21 18:25:35 UTC) #8
miu
lgtm, assuming trybots go green after you rebase. Also, please run all the unit tests ...
5 years, 11 months ago (2015-01-22 00:47:15 UTC) #9
scheib
Please call out in the change description TEST= line that manual testing of fullscreen and ...
5 years, 11 months ago (2015-01-22 22:54:04 UTC) #10
Sriram
https://codereview.chromium.org/836933005/diff/140001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/836933005/diff/140001/chrome/browser/ui/browser.cc#newcode1185 chrome/browser/ui/browser.cc:1185: // Escape exits tabbed fullscreen mode. On 2015/01/22 22:54:03, ...
5 years, 11 months ago (2015-01-23 07:13:43 UTC) #12
scheib
lgtm https://codereview.chromium.org/836933005/diff/140001/chrome/browser/ui/exclusive_access/exclusive_access_manager.cc File chrome/browser/ui/exclusive_access/exclusive_access_manager.cc (right): https://codereview.chromium.org/836933005/diff/140001/chrome/browser/ui/exclusive_access/exclusive_access_manager.cc#newcode33 chrome/browser/ui/exclusive_access/exclusive_access_manager.cc:33: if (mouse_lock_controller_.IsMouseLockSilentlyAccepted()) On 2015/01/23 07:13:43, Sriram wrote: > ...
5 years, 11 months ago (2015-01-23 16:42:32 UTC) #13
sky
LGTM
5 years, 11 months ago (2015-01-26 15:39:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836933005/180001
5 years, 11 months ago (2015-01-26 21:48:39 UTC) #16
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 11 months ago (2015-01-26 22:45:35 UTC) #17
commit-bot: I haz the power
5 years, 11 months ago (2015-01-26 22:47:01 UTC) #18
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/a41db560b2f4f86d1b8b05bfbad6b0684314662a
Cr-Commit-Position: refs/heads/master@{#313159}

Powered by Google App Engine
This is Rietveld 408576698