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

Issue 2116973002: Added "Exit full screen" to context menu. (Closed)

Created:
4 years, 5 months ago by Matt Giuca
Modified:
4 years, 5 months ago
Reviewers:
Mark P, sky
CC:
chromium-reviews, tfarina, asvitkine+watch_chromium.org, ainslie, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added "Exit full screen" to context menu. This item is only shown when in fullscreen, and allows users to exit fullscreen using the mouse (for users who don't have a keyboard attached). This is still not foolproof (as it won't work on a site that captures the right-click menu) but should work in the majority of cases. BUG=594868 TEST=https://permission.site. Click Fullscreen. Right-click background; should see "Exit full screen ... Esc". TEST=F11 to go fullscreen. Right-click background; should see "Exit full screen ... F11". Committed: https://crrev.com/8490591edaffefb62a0dbbace192115092dab908 Cr-Commit-Position: refs/heads/master@{#404589}

Patch Set 1 #

Patch Set 2 : Added TODO. #

Patch Set 3 : Move to top of context menu and add separator. #

Patch Set 4 : Show F11 on the menu instead of Esc when user-triggered fullscreen. #

Patch Set 5 : Fix null dereference. #

Patch Set 6 : Return the result of GetAcceleratorForCommandId. #

Total comments: 8

Patch Set 7 : Rename IDC_EXIT_FULLSCREEN to IDC_CONTENT_CONTEXT_EXIT_FULLSCREEN. #

Patch Set 8 : Respond to sky review. #

Patch Set 9 : Fix syntax error. #

Patch Set 10 : Do not show an accelerator for user-triggered fullscreen on Chrome OS. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -1 line) Patch
M chrome/app/chrome_command_ids.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.h View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 2 3 4 5 6 7 chunks +47 lines, -1 line 0 comments Download
M chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.cc View 1 2 3 4 5 6 7 8 9 4 chunks +34 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
Matt Giuca
mpearson: Please review changes in histograms.xml. sky: Please review changes in rest of the files. ...
4 years, 5 months ago (2016-07-07 06:35:15 UTC) #4
Mark P
histograms.xml lgtm
4 years, 5 months ago (2016-07-07 16:55:31 UTC) #5
sky
https://codereview.chromium.org/2116973002/diff/100001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): https://codereview.chromium.org/2116973002/diff/100001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode309 chrome/browser/renderer_context_menu/render_view_context_menu.cc:309: {88, -1, IDC_EXIT_FULLSCREEN}, Based upon most of these constants ...
4 years, 5 months ago (2016-07-07 17:00:41 UTC) #6
Matt Giuca
https://codereview.chromium.org/2116973002/diff/100001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): https://codereview.chromium.org/2116973002/diff/100001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode309 chrome/browser/renderer_context_menu/render_view_context_menu.cc:309: {88, -1, IDC_EXIT_FULLSCREEN}, On 2016/07/07 17:00:41, sky wrote: > ...
4 years, 5 months ago (2016-07-08 00:55:46 UTC) #7
sky
LGTM
4 years, 5 months ago (2016-07-08 15:35:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2116973002/180001
4 years, 5 months ago (2016-07-11 00:21:24 UTC) #11
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 5 months ago (2016-07-11 01:17:27 UTC) #13
commit-bot: I haz the power
4 years, 5 months ago (2016-07-11 01:19:33 UTC) #15
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/8490591edaffefb62a0dbbace192115092dab908
Cr-Commit-Position: refs/heads/master@{#404589}

Powered by Google App Engine
This is Rietveld 408576698