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

Issue 1414033009: Implement a Menu Item to Hide the Toolbar in Fullscreen (Closed)

Created:
5 years, 1 month ago by spqchan
Modified:
5 years, 1 month ago
Reviewers:
Robert Sesek, spqchan1, Nico
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace Presentation Mode with an option to hide the toolbar in fullscreen in 10.7+. This option can be toggled on and off under the View menu. This option is currently disabled and hidden until a preference for it is implemented. BUG=544307 Committed: https://crrev.com/b8ffc7d9d185857efb041354f41590dfcb05ae27 Cr-Commit-Position: refs/heads/master@{#359968}

Patch Set 1 #

Patch Set 2 : Implemented the menu item and fixed some stuff #

Patch Set 3 : Fixed some issues and removed some old presentation mode code #

Patch Set 4 : Fixed an edge case #

Patch Set 5 : Clean up #

Patch Set 6 : Removed a redundant function #

Patch Set 7 : Cleaned up the code #

Patch Set 8 : Added comments and removed changes to prefs #

Patch Set 9 : Clean up more stuff #

Total comments: 1

Patch Set 10 : Added missing comment #

Patch Set 11 : Hide menu item on 10.6 #

Total comments: 9

Patch Set 12 : Fixed some issues #

Total comments: 4

Patch Set 13 : Removed the menu item #

Patch Set 14 : Formatting #

Patch Set 15 : #

Total comments: 2

Patch Set 16 : Renamed C++ variables #

Patch Set 17 : Fix merge conflicts #

Patch Set 18 : #

Patch Set 19 : #

Patch Set 20 : Fix tests #

Patch Set 21 : Rebase and merge code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -18 lines) Patch
M chrome/app/chrome_command_ids.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/app/nibs/MainMenu.xib View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands_mac.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands_mac.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_command_handler.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +31 lines, -15 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/exclusive_access/exclusive_access_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/exclusive_access/exclusive_access_context.cc View 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 66 (27 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414033009/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414033009/160001
5 years, 1 month ago (2015-11-03 17:41:04 UTC) #3
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 1 month ago (2015-11-03 17:41:05 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414033009/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414033009/180001
5 years, 1 month ago (2015-11-03 18:08:32 UTC) #7
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 1 month ago (2015-11-03 18:08:34 UTC) #9
spqchan
PTAL https://codereview.chromium.org/1414033009/diff/160001/chrome/browser/ui/cocoa/browser_window_command_handler.mm File chrome/browser/ui/cocoa/browser_window_command_handler.mm (right): https://codereview.chromium.org/1414033009/diff/160001/chrome/browser/ui/cocoa/browser_window_command_handler.mm#newcode210 chrome/browser/ui/cocoa/browser_window_command_handler.mm:210: BOOL isFullscreenToolbarHidden = NO; Note: this is temporary. ...
5 years, 1 month ago (2015-11-03 18:30:31 UTC) #12
Robert Sesek
Is this supposed to be a persistent preference? https://codereview.chromium.org/1414033009/diff/200001/chrome/app/chrome_command_ids.h File chrome/app/chrome_command_ids.h (right): https://codereview.chromium.org/1414033009/diff/200001/chrome/app/chrome_command_ids.h#newcode220 chrome/app/chrome_command_ids.h:220: #define ...
5 years, 1 month ago (2015-11-03 20:09:38 UTC) #13
spqchan
I just realized that the comment I added was lost a few patches ago. To ...
5 years, 1 month ago (2015-11-04 01:43:42 UTC) #14
Robert Sesek
I think it's fine to not have the pref yet, but maybe we should do ...
5 years, 1 month ago (2015-11-04 21:57:16 UTC) #15
spqchan
Good call, I'll disable it until I implement the preference. https://codereview.chromium.org/1414033009/diff/220001/chrome/browser/ui/cocoa/browser_window_command_handler.mm File chrome/browser/ui/cocoa/browser_window_command_handler.mm (right): https://codereview.chromium.org/1414033009/diff/220001/chrome/browser/ui/cocoa/browser_window_command_handler.mm#newcode209 ...
5 years, 1 month ago (2015-11-04 23:59:22 UTC) #16
spqchan
PTAL
5 years, 1 month ago (2015-11-05 00:00:09 UTC) #17
Robert Sesek
LGTM https://codereview.chromium.org/1414033009/diff/280001/chrome/browser/ui/cocoa/browser_window_command_handler.mm File chrome/browser/ui/cocoa/browser_window_command_handler.mm (right): https://codereview.chromium.org/1414033009/diff/280001/chrome/browser/ui/cocoa/browser_window_command_handler.mm#newcode31 chrome/browser/ui/cocoa/browser_window_command_handler.mm:31: NSInteger oldState = [item state]; naming: should be ...
5 years, 1 month ago (2015-11-05 15:56:13 UTC) #18
spqchan
PTAL https://codereview.chromium.org/1414033009/diff/280001/chrome/browser/ui/cocoa/browser_window_command_handler.mm File chrome/browser/ui/cocoa/browser_window_command_handler.mm (right): https://codereview.chromium.org/1414033009/diff/280001/chrome/browser/ui/cocoa/browser_window_command_handler.mm#newcode31 chrome/browser/ui/cocoa/browser_window_command_handler.mm:31: NSInteger oldState = [item state]; On 2015/11/05 15:56:13, ...
5 years, 1 month ago (2015-11-05 17:50:47 UTC) #20
Robert Sesek
slgtm
5 years, 1 month ago (2015-11-05 18:04:04 UTC) #22
spqchan
+ thakis PTAL
5 years, 1 month ago (2015-11-10 18:50:31 UTC) #23
Nico
you have an lg from rsesek – what do you want me to look at? ...
5 years, 1 month ago (2015-11-10 19:51:00 UTC) #24
spqchan1
On 2015/11/10 19:51:00, Nico wrote: > you have an lg from rsesek – what do you ...
5 years, 1 month ago (2015-11-10 19:53:04 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414033009/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414033009/300001
5 years, 1 month ago (2015-11-10 20:13:28 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/134424) mac_chromium_compile_dbg_ng on ...
5 years, 1 month ago (2015-11-10 20:16:11 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414033009/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414033009/340001
5 years, 1 month ago (2015-11-12 17:43:11 UTC) #31
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/56486) linux_chromium_compile_dbg_ng on ...
5 years, 1 month ago (2015-11-12 17:53:58 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414033009/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414033009/360001
5 years, 1 month ago (2015-11-12 18:11:24 UTC) #35
spqchan
On 2015/11/12 18:11:24, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
5 years, 1 month ago (2015-11-12 19:12:14 UTC) #36
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/139808)
5 years, 1 month ago (2015-11-12 19:44:31 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414033009/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414033009/380001
5 years, 1 month ago (2015-11-13 01:38:37 UTC) #40
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/106400) linux_chromium_rel_ng on ...
5 years, 1 month ago (2015-11-13 01:47:34 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414033009/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414033009/400001
5 years, 1 month ago (2015-11-13 02:18:30 UTC) #44
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/140150) linux_chromium_gn_chromeos_rel on ...
5 years, 1 month ago (2015-11-13 02:29:32 UTC) #46
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414033009/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414033009/400001
5 years, 1 month ago (2015-11-13 18:17:26 UTC) #48
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-13 19:13:21 UTC) #50
spqchan
On 2015/11/13 19:13:21, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
5 years, 1 month ago (2015-11-13 20:45:43 UTC) #51
Nico
lgtm I looked at everything except chrome/browser/ui/cocoa/* Is there a browser test for toggling this? ...
5 years, 1 month ago (2015-11-16 22:10:46 UTC) #52
spqchan
On 2015/11/16 22:10:46, Nico wrote: > lgtm > > I looked at everything except chrome/browser/ui/cocoa/* ...
5 years, 1 month ago (2015-11-16 22:15:43 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414033009/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414033009/400001
5 years, 1 month ago (2015-11-16 22:16:33 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/80410)
5 years, 1 month ago (2015-11-16 22:27:33 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414033009/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414033009/400001
5 years, 1 month ago (2015-11-16 22:47:23 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/80432) linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 1 month ago (2015-11-16 22:54:35 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414033009/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414033009/400001
5 years, 1 month ago (2015-11-17 00:26:47 UTC) #64
commit-bot: I haz the power
Committed patchset #21 (id:400001)
5 years, 1 month ago (2015-11-17 01:17:29 UTC) #65
commit-bot: I haz the power
5 years, 1 month ago (2015-11-17 01:18:22 UTC) #66
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/b8ffc7d9d185857efb041354f41590dfcb05ae27
Cr-Commit-Position: refs/heads/master@{#359968}

Powered by Google App Engine
This is Rietveld 408576698