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

Issue 1091173005: Removed the context menu in kiosk mode (Closed)

Created:
5 years, 8 months ago by frederic.jacob.78
Modified:
5 years, 5 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Removed the context menu in kiosk mode This is my first change request so... BUG=475506 TEST=Start Chrome with --kiosk and the context menu most not be shown. Start Chrome without the --kiosk flag and the context menu must be shown. Committed: https://crrev.com/25e2a6ce5742821aedf91746804487ae64ce2190 Cr-Commit-Position: refs/heads/master@{#337741}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Disable the context menu in kiosk mode #

Total comments: 14

Patch Set 3 : Change Cocoa codes and fix style problems after reviews" #

Total comments: 10

Patch Set 4 : Apply Cocoa code review comments #

Patch Set 5 : Add comments and reformat sendEvent condition #

Total comments: 4

Patch Set 6 : Changed the comments #

Total comments: 8

Patch Set 7 : Add @typedef Appinfo for kioskMode and clean parens #

Total comments: 6

Patch Set 8 : Move the code in the mouse down switch case #

Total comments: 2

Patch Set 9 : Use the Objective-C method invocation format #

Total comments: 2

Patch Set 10 : Add the FALL THROUGH comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -4 lines) Patch
M AUTHORS View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/chrome_browser_application_mac.mm View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/resources/ntp4/apps_page.js View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/resources/ntp4/page_list_view.js View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_context_menu.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 2 3 4 5 3 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 65 (13 generated)
Peter Kasting
https://codereview.chromium.org/1091173005/diff/1/chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.cc File chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.cc (right): https://codereview.chromium.org/1091173005/diff/1/chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.cc#newcode216 chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.cc:216: if (base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode)) Pretty simple fix. I'll test this locally ...
5 years, 7 months ago (2015-04-29 21:17:15 UTC) #2
frederic.jacob.78
Yes I have a Mac that I dual boot with Ubuntu, right now it is ...
5 years, 7 months ago (2015-04-29 21:47:27 UTC) #3
frederic.jacob.78
Ok, I tested it on my Mac and on Windows and the --kiosk flag work. ...
5 years, 7 months ago (2015-04-30 00:51:06 UTC) #4
Peter Kasting
On 2015/04/30 00:51:06, frederic.jacob.78 wrote: > Ok, I tested it on my Mac and on ...
5 years, 7 months ago (2015-04-30 08:45:15 UTC) #5
Peter Kasting
OK, I looked at this more. I'm adding sky@ as a reviewer for input on ...
5 years, 7 months ago (2015-05-01 02:26:02 UTC) #7
jam
On 2015/05/01 02:26:02, Peter Kasting wrote: > OK, I looked at this more. I'm adding ...
5 years, 7 months ago (2015-05-01 16:09:22 UTC) #8
frederic.jacob.78
On Fri, May 1, 2015 at 12:09 PM, <jam@chromium.org> wrote: > On 2015/05/01 02:26:02, Peter ...
5 years, 7 months ago (2015-05-01 22:43:52 UTC) #9
Peter Kasting
On 2015/05/01 22:43:52, frederic.jacob.78 wrote: > So here is what I understand: the code need ...
5 years, 7 months ago (2015-05-01 23:02:22 UTC) #10
frederic.jacob.78
On Fri, May 1, 2015 at 7:02 PM, <pkasting@chromium.org> wrote: > On 2015/05/01 22:43:52, frederic.jacob.78 ...
5 years, 6 months ago (2015-05-29 20:58:08 UTC) #11
Peter Kasting
On Fri, May 29, 2015 at 1:58 PM, Frédéric Jacob <frederic.jacob.78@gmail.com > wrote: > For ...
5 years, 6 months ago (2015-05-29 23:09:45 UTC) #12
frederic.jacob.78
I added the changes to disable the context menu in Views and Cocoa for web ...
5 years, 6 months ago (2015-06-13 16:09:43 UTC) #13
Peter Kasting
https://codereview.chromium.org/1091173005/diff/20001/chrome/browser/resources/ntp4/apps_page.js File chrome/browser/resources/ntp4/apps_page.js (right): https://codereview.chromium.org/1091173005/diff/20001/chrome/browser/resources/ntp4/apps_page.js#newcode282 chrome/browser/resources/ntp4/apps_page.js:282: if (!this.appData_.kioskMode) Nit: {} https://codereview.chromium.org/1091173005/diff/20001/chrome/browser/resources/ntp4/apps_page.js#newcode284 chrome/browser/resources/ntp4/apps_page.js:284: cr.ui.contextMenuHandler); Nit: Indenting ...
5 years, 6 months ago (2015-06-15 20:16:34 UTC) #14
frederic.jacob.78
I looked at the comments and I made changes to reflect all the comments. As ...
5 years, 6 months ago (2015-06-18 00:41:38 UTC) #15
Peter Kasting
On 2015/06/18 00:41:38, frederic.jacob.78 wrote: > I looked at the comments and I made changes ...
5 years, 6 months ago (2015-06-18 00:50:34 UTC) #16
frederic.jacob.78
On 2015/06/18 00:50:34, Peter Kasting wrote: > On 2015/06/18 00:41:38, frederic.jacob.78 wrote: > > I ...
5 years, 6 months ago (2015-06-19 10:36:32 UTC) #18
Robert Sesek
Can you swallow the event in -[BrowserCrApplication sendEvent:] instead? If that works, it's better than ...
5 years, 6 months ago (2015-06-19 10:59:16 UTC) #19
frederic.jacob.78
On Fri, Jun 19, 2015 at 6:59 AM, <rsesek@chromium.org> wrote: > Can you swallow the ...
5 years, 6 months ago (2015-06-19 12:03:34 UTC) #20
frederic.jacob.78
On 2015/06/19 12:03:34, frederic.jacob.78 wrote: > On Fri, Jun 19, 2015 at 6:59 AM, <mailto:rsesek@chromium.org> ...
5 years, 6 months ago (2015-06-22 11:32:01 UTC) #21
Robert Sesek
On 2015/06/22 11:32:01, frederic.jacob.78 wrote: > On 2015/06/19 12:03:34, frederic.jacob.78 wrote: > > On Fri, ...
5 years, 6 months ago (2015-06-22 13:30:37 UTC) #22
frederic.jacob.78
I have corrected the style problems as recommended in the review and I reverted all ...
5 years, 6 months ago (2015-06-24 18:07:53 UTC) #23
Robert Sesek
I definitely think this is a nicer solution. Thanks! https://codereview.chromium.org/1091173005/diff/40001/chrome/browser/chrome_browser_application_mac.mm File chrome/browser/chrome_browser_application_mac.mm (right): https://codereview.chromium.org/1091173005/diff/40001/chrome/browser/chrome_browser_application_mac.mm#newcode492 chrome/browser/chrome_browser_application_mac.mm:492: ...
5 years, 6 months ago (2015-06-24 18:36:12 UTC) #24
Peter Kasting
LGTM https://codereview.chromium.org/1091173005/diff/40001/chrome/browser/chrome_browser_application_mac.mm File chrome/browser/chrome_browser_application_mac.mm (right): https://codereview.chromium.org/1091173005/diff/40001/chrome/browser/chrome_browser_application_mac.mm#newcode494 chrome/browser/chrome_browser_application_mac.mm:494: const bool kioskMode = command_line->HasSwitch(switches::kKioskMode); Nit: Personally I ...
5 years, 6 months ago (2015-06-24 20:40:57 UTC) #25
frederic.jacob.78
I finally reformat the if in the sendEvent function following pkasting comments. For the rest ...
5 years, 6 months ago (2015-06-24 21:35:03 UTC) #26
Peter Kasting
Still LGTM https://codereview.chromium.org/1091173005/diff/80001/chrome/browser/chrome_browser_application_mac.mm File chrome/browser/chrome_browser_application_mac.mm (right): https://codereview.chromium.org/1091173005/diff/80001/chrome/browser/chrome_browser_application_mac.mm#newcode496 chrome/browser/chrome_browser_application_mac.mm:496: // swallow the events when in kiosk ...
5 years, 6 months ago (2015-06-24 21:54:37 UTC) #27
frederic.jacob.78
I changed the comments as suggested. https://codereview.chromium.org/1091173005/diff/80001/chrome/browser/chrome_browser_application_mac.mm File chrome/browser/chrome_browser_application_mac.mm (right): https://codereview.chromium.org/1091173005/diff/80001/chrome/browser/chrome_browser_application_mac.mm#newcode496 chrome/browser/chrome_browser_application_mac.mm:496: // swallow the ...
5 years, 6 months ago (2015-06-24 22:34:29 UTC) #28
Robert Sesek
LGTM
5 years, 6 months ago (2015-06-24 22:47:23 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1091173005/100001
5 years, 6 months ago (2015-06-24 23:12:57 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/73789)
5 years, 6 months ago (2015-06-24 23:23:27 UTC) #34
Peter Kasting
Looks like you need to get an OWNER approval for chrome/browser/resources/ntp4/apps_page.js.
5 years, 6 months ago (2015-06-24 23:24:18 UTC) #35
frederic.jacob.78
On 2015/06/24 23:24:18, Peter Kasting wrote: > Looks like you need to get an OWNER ...
5 years, 6 months ago (2015-06-25 00:01:39 UTC) #37
Dan Beam
https://codereview.chromium.org/1091173005/diff/100001/chrome/browser/chrome_browser_application_mac.mm File chrome/browser/chrome_browser_application_mac.mm (right): https://codereview.chromium.org/1091173005/diff/100001/chrome/browser/chrome_browser_application_mac.mm#newcode493 chrome/browser/chrome_browser_application_mac.mm:493: const bool isLeftMouseMenu = (event.type == NSLeftMouseDown) && nit: ...
5 years, 6 months ago (2015-06-25 00:36:15 UTC) #38
frederic.jacob.78
I added the @typedef AppInfo for the kioskMode variable and removed the extra parens. https://codereview.chromium.org/1091173005/diff/100001/chrome/browser/chrome_browser_application_mac.mm ...
5 years, 6 months ago (2015-06-25 22:25:34 UTC) #39
Dan Beam
https://codereview.chromium.org/1091173005/diff/120001/chrome/browser/chrome_browser_application_mac.mm File chrome/browser/chrome_browser_application_mac.mm (right): https://codereview.chromium.org/1091173005/diff/120001/chrome/browser/chrome_browser_application_mac.mm#newcode477 chrome/browser/chrome_browser_application_mac.mm:477: case NSLeftMouseDown: I think you should be left mouse ...
5 years, 6 months ago (2015-06-25 23:18:23 UTC) #40
frederic.jacob.78
https://codereview.chromium.org/1091173005/diff/120001/chrome/browser/chrome_browser_application_mac.mm File chrome/browser/chrome_browser_application_mac.mm (right): https://codereview.chromium.org/1091173005/diff/120001/chrome/browser/chrome_browser_application_mac.mm#newcode477 chrome/browser/chrome_browser_application_mac.mm:477: case NSLeftMouseDown: On 2015/06/25 23:18:23, Dan Beam wrote: > ...
5 years, 6 months ago (2015-06-26 00:24:22 UTC) #41
Dan Beam
https://codereview.chromium.org/1091173005/diff/120001/chrome/browser/chrome_browser_application_mac.mm File chrome/browser/chrome_browser_application_mac.mm (right): https://codereview.chromium.org/1091173005/diff/120001/chrome/browser/chrome_browser_application_mac.mm#newcode477 chrome/browser/chrome_browser_application_mac.mm:477: case NSLeftMouseDown: On 2015/06/26 00:24:22, frederic.jacob.78 wrote: > On ...
5 years, 6 months ago (2015-06-26 00:57:38 UTC) #42
frederic.jacob.78
I must admit that I am not super comfortable changing this code because it was ...
5 years, 5 months ago (2015-06-28 21:25:50 UTC) #43
Peter Kasting
Sorry, I wasn't paying enough attention to realize there was an assumption made that I ...
5 years, 5 months ago (2015-06-28 22:44:52 UTC) #44
frederic.jacob.78
On 2015/06/28 22:44:52, Peter Kasting wrote: > Sorry, I wasn't paying enough attention to realize ...
5 years, 5 months ago (2015-06-29 00:09:50 UTC) #45
Peter Kasting
On 2015/06/29 00:09:50, frederic.jacob.78 wrote: > But my main concern here was that Dan suggested ...
5 years, 5 months ago (2015-06-29 05:36:13 UTC) #46
Robert Sesek
I'm fine with the code as-written.
5 years, 5 months ago (2015-06-29 15:12:17 UTC) #47
Dan Beam
chrome/browser/resources and chrome/browser/ui/webui lgtm but I'd still rather do less work in chrome_browser_application_mac.mm
5 years, 5 months ago (2015-07-06 21:44:00 UTC) #48
frederic.jacob.78
Here the change.
5 years, 5 months ago (2015-07-07 10:52:59 UTC) #49
Robert Sesek
https://codereview.chromium.org/1091173005/diff/140001/chrome/browser/chrome_browser_application_mac.mm File chrome/browser/chrome_browser_application_mac.mm (right): https://codereview.chromium.org/1091173005/diff/140001/chrome/browser/chrome_browser_application_mac.mm#newcode484 chrome/browser/chrome_browser_application_mac.mm:484: if (kioskMode && (event.type == NSRightMouseDown || ctrlDown)) You ...
5 years, 5 months ago (2015-07-07 15:38:36 UTC) #50
frederic.jacob.78
I changed the code to use the [] notation. https://codereview.chromium.org/1091173005/diff/140001/chrome/browser/chrome_browser_application_mac.mm File chrome/browser/chrome_browser_application_mac.mm (right): https://codereview.chromium.org/1091173005/diff/140001/chrome/browser/chrome_browser_application_mac.mm#newcode484 chrome/browser/chrome_browser_application_mac.mm:484: ...
5 years, 5 months ago (2015-07-07 22:48:48 UTC) #51
Robert Sesek
LGTM
5 years, 5 months ago (2015-07-07 22:49:35 UTC) #52
Peter Kasting
lgtm https://codereview.chromium.org/1091173005/diff/160001/chrome/browser/chrome_browser_application_mac.mm File chrome/browser/chrome_browser_application_mac.mm (right): https://codereview.chromium.org/1091173005/diff/160001/chrome/browser/chrome_browser_application_mac.mm#newcode487 chrome/browser/chrome_browser_application_mac.mm:487: Please put an explicit "// FALL THROUGH" comment ...
5 years, 5 months ago (2015-07-07 23:02:50 UTC) #53
frederic.jacob.78
https://codereview.chromium.org/1091173005/diff/160001/chrome/browser/chrome_browser_application_mac.mm File chrome/browser/chrome_browser_application_mac.mm (right): https://codereview.chromium.org/1091173005/diff/160001/chrome/browser/chrome_browser_application_mac.mm#newcode487 chrome/browser/chrome_browser_application_mac.mm:487: On 2015/07/07 23:02:49, Peter Kasting wrote: > Please put ...
5 years, 5 months ago (2015-07-07 23:10:56 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1091173005/180001
5 years, 5 months ago (2015-07-07 23:17:36 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: linux_arm_compile on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_arm_compile/builds/18569) linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 5 months ago (2015-07-08 01:11:54 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1091173005/180001
5 years, 5 months ago (2015-07-08 01:19:27 UTC) #63
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 5 months ago (2015-07-08 02:18:17 UTC) #64
commit-bot: I haz the power
5 years, 5 months ago (2015-07-08 02:19:08 UTC) #65
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/25e2a6ce5742821aedf91746804487ae64ce2190
Cr-Commit-Position: refs/heads/master@{#337741}

Powered by Google App Engine
This is Rietveld 408576698