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

Issue 2781633003: Allow keyboard shortcuts can be captured by webpage when toolbar is not visible (Closed)

Created:
3 years, 9 months ago by Hzj_jie
Modified:
3 years, 8 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow keyboard shortcuts can be captured by webpage when toolbar is not visible After discussing in http://crbug.com/702251, we decide to enable browser shortcuts when the tab-strip / toolbar is visible on Mac OS. There is no comparable behavior on other platforms. This change adds a BrowserWindow::IsToolbarShowing() function to indicate whether the toolbar is showing up on the screen. BrowserWindowCocoa needs to override this function, which has not been done yet in this change. BUG=680809, 702251 Review-Url: https://codereview.chromium.org/2781633003 Cr-Commit-Position: refs/heads/master@{#462942} Committed: https://chromium.googlesource.com/chromium/src/+/68cd3dc22ddbfddfdcf252f42b129a12e2d39a8b

Patch Set 1 #

Total comments: 8

Patch Set 2 : Resolve review comments #

Total comments: 2

Patch Set 3 : Resolve review comments #

Total comments: 30

Patch Set 4 : Resolve review comments #

Total comments: 18

Patch Set 5 : Resolve review comments #

Total comments: 4

Patch Set 6 : Resolve review comments #

Total comments: 7

Patch Set 7 : Resolve review comments #

Patch Set 8 : Resolve review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -111 lines) Patch
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 4 1 chunk +21 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_command_controller_unittest.cc View 1 2 3 4 5 4 chunks +100 lines, -108 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 2 3 4 5 6 1 chunk +11 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 115 (84 generated)
Hzj_jie
3 years, 9 months ago (2017-03-28 01:20:41 UTC) #28
dominickn
Can you please change the title to something more descriptive, e.g. Allow browser shortcuts to ...
3 years, 9 months ago (2017-03-28 02:01:39 UTC) #32
Hzj_jie
https://codereview.chromium.org/2781633003/diff/120001/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (right): https://codereview.chromium.org/2781633003/diff/120001/chrome/browser/ui/browser_command_controller.cc#newcode201 chrome/browser/ui/browser_command_controller.cc:201: if (window()->IsToolbarVisible()) { On 2017/03/28 02:01:38, dominickn wrote: > ...
3 years, 8 months ago (2017-03-29 00:47:54 UTC) #34
Hzj_jie
A new API has been added to BrowserWindow. Please kindly include the right person to ...
3 years, 8 months ago (2017-03-31 00:00:00 UTC) #45
Hzj_jie
Hi, Mike and Dominick, Do you have time to have a look at this change?
3 years, 8 months ago (2017-04-03 22:06:14 UTC) #46
dominickn
Seems fine to me, but I'll defer to msw as I'm a non-OWNER here.
3 years, 8 months ago (2017-04-04 05:48:18 UTC) #47
dominickn
On 2017/04/04 05:48:18, dominickn wrote: > Seems fine to me, but I'll defer to msw ...
3 years, 8 months ago (2017-04-04 05:50:13 UTC) #48
Hzj_jie
On 2017/04/04 05:50:13, dominickn wrote: > On 2017/04/04 05:48:18, dominickn wrote: > > Seems fine ...
3 years, 8 months ago (2017-04-04 18:29:21 UTC) #49
msw
https://codereview.chromium.org/2781633003/diff/120001/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (right): https://codereview.chromium.org/2781633003/diff/120001/chrome/browser/ui/browser_command_controller.cc#newcode194 chrome/browser/ui/browser_command_controller.cc:194: // This behavior is different on Mac OS, which ...
3 years, 8 months ago (2017-04-04 19:32:48 UTC) #50
msw
https://codereview.chromium.org/2781633003/diff/120001/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (right): https://codereview.chromium.org/2781633003/diff/120001/chrome/browser/ui/browser_command_controller.cc#newcode194 chrome/browser/ui/browser_command_controller.cc:194: // This behavior is different on Mac OS, which ...
3 years, 8 months ago (2017-04-04 19:33:28 UTC) #51
Hzj_jie
https://codereview.chromium.org/2781633003/diff/120001/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (right): https://codereview.chromium.org/2781633003/diff/120001/chrome/browser/ui/browser_command_controller.cc#newcode194 chrome/browser/ui/browser_command_controller.cc:194: // This behavior is different on Mac OS, which ...
3 years, 8 months ago (2017-04-04 20:54:43 UTC) #54
msw
https://codereview.chromium.org/2781633003/diff/160001/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (right): https://codereview.chromium.org/2781633003/diff/160001/chrome/browser/ui/browser_command_controller.cc#newcode193 chrome/browser/ui/browser_command_controller.cc:193: // https://goo.gl/4tJ32G. I still don't think that we should ...
3 years, 8 months ago (2017-04-04 22:46:39 UTC) #57
Hzj_jie
It looks like the failures of both ios and chromeos builds do not relate to ...
3 years, 8 months ago (2017-04-05 18:09:17 UTC) #72
msw
https://codereview.chromium.org/2781633003/diff/220001/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (right): https://codereview.chromium.org/2781633003/diff/220001/chrome/browser/ui/browser_command_controller.cc#newcode192 chrome/browser/ui/browser_command_controller.cc:192: // be delivered to the web page. See, intent ...
3 years, 8 months ago (2017-04-05 23:55:12 UTC) #73
Hzj_jie
https://codereview.chromium.org/2781633003/diff/220001/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (right): https://codereview.chromium.org/2781633003/diff/220001/chrome/browser/ui/browser_command_controller.cc#newcode192 chrome/browser/ui/browser_command_controller.cc:192: // be delivered to the web page. See, intent ...
3 years, 8 months ago (2017-04-06 02:37:59 UTC) #79
msw
lgtm with nits; thanks for all the improvements! https://codereview.chromium.org/2781633003/diff/240001/chrome/browser/ui/browser_command_controller_unittest.cc File chrome/browser/ui/browser_command_controller_unittest.cc (right): https://codereview.chromium.org/2781633003/diff/240001/chrome/browser/ui/browser_command_controller_unittest.cc#newcode372 chrome/browser/ui/browser_command_controller_unittest.cc:372: SCOPED_TRACE(testing::Message() ...
3 years, 8 months ago (2017-04-06 03:03:49 UTC) #80
Hzj_jie
The test failure is DownloadExtensionTest.DownloadExtensionTest_SearchState; it definitely does not relate to my change. https://codereview.chromium.org/2781633003/diff/240001/chrome/browser/ui/browser_command_controller_unittest.cc File ...
3 years, 8 months ago (2017-04-06 18:34:24 UTC) #83
msw
Nice! lgtm
3 years, 8 months ago (2017-04-06 18:51:47 UTC) #88
Hzj_jie
Will Scott lgtm for test_browser_window.* change, or I can TBR him? IMO, it's a tiny ...
3 years, 8 months ago (2017-04-06 18:56:50 UTC) #89
msw
On 2017/04/06 18:56:50, Hzj_jie wrote: > Will Scott lgtm for test_browser_window.* change, or I can ...
3 years, 8 months ago (2017-04-06 19:05:10 UTC) #90
Hzj_jie
On 2017/04/06 19:05:10, msw wrote: > On 2017/04/06 18:56:50, Hzj_jie wrote: > > Will Scott ...
3 years, 8 months ago (2017-04-06 19:06:59 UTC) #91
sky
https://codereview.chromium.org/2781633003/diff/260002/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): https://codereview.chromium.org/2781633003/diff/260002/chrome/browser/ui/browser_window.h#newcode232 chrome/browser/ui/browser_window.h:232: virtual bool IsToolbarShowing() const = 0; Will this be ...
3 years, 8 months ago (2017-04-06 20:38:12 UTC) #94
Hzj_jie
https://codereview.chromium.org/2781633003/diff/260002/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): https://codereview.chromium.org/2781633003/diff/260002/chrome/browser/ui/browser_window.h#newcode232 chrome/browser/ui/browser_window.h:232: virtual bool IsToolbarShowing() const = 0; On 2017/04/06 20:38:10, ...
3 years, 8 months ago (2017-04-06 20:42:09 UTC) #96
sky
https://codereview.chromium.org/2781633003/diff/260002/chrome/test/base/test_browser_window.cc File chrome/test/base/test_browser_window.cc (right): https://codereview.chromium.org/2781633003/diff/260002/chrome/test/base/test_browser_window.cc#newcode147 chrome/test/base/test_browser_window.cc:147: return IsToolbarVisible(); On 2017/04/06 20:42:09, Hzj_jie wrote: > On ...
3 years, 8 months ago (2017-04-06 21:43:56 UTC) #100
Hzj_jie
https://codereview.chromium.org/2781633003/diff/260002/chrome/test/base/test_browser_window.cc File chrome/test/base/test_browser_window.cc (right): https://codereview.chromium.org/2781633003/diff/260002/chrome/test/base/test_browser_window.cc#newcode147 chrome/test/base/test_browser_window.cc:147: return IsToolbarVisible(); On 2017/04/06 21:43:56, sky wrote: > On ...
3 years, 8 months ago (2017-04-06 21:48:11 UTC) #101
sky
https://codereview.chromium.org/2781633003/diff/260002/chrome/test/base/test_browser_window.cc File chrome/test/base/test_browser_window.cc (right): https://codereview.chromium.org/2781633003/diff/260002/chrome/test/base/test_browser_window.cc#newcode147 chrome/test/base/test_browser_window.cc:147: return IsToolbarVisible(); On 2017/04/06 21:48:11, Hzj_jie wrote: > On ...
3 years, 8 months ago (2017-04-06 23:26:00 UTC) #102
Hzj_jie
On 2017/04/06 23:26:00, sky wrote: > https://codereview.chromium.org/2781633003/diff/260002/chrome/test/base/test_browser_window.cc > File chrome/test/base/test_browser_window.cc (right): > > https://codereview.chromium.org/2781633003/diff/260002/chrome/test/base/test_browser_window.cc#newcode147 > ...
3 years, 8 months ago (2017-04-06 23:27:42 UTC) #104
sky
Thanks, LGTM - also, in the future please include chromium-reviews on the cc list. It's ...
3 years, 8 months ago (2017-04-07 14:18:23 UTC) #108
Hzj_jie
On 2017/04/07 14:18:23, sky wrote: > Thanks, LGTM - also, in the future please include ...
3 years, 8 months ago (2017-04-07 18:42:26 UTC) #109
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/2781633003/310001
3 years, 8 months ago (2017-04-07 18:43:35 UTC) #112
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 18:51:21 UTC) #115
Message was sent while issue was closed.
Committed patchset #8 (id:310001) as
https://chromium.googlesource.com/chromium/src/+/68cd3dc22ddbfddfdcf252f42b12...

Powered by Google App Engine
This is Rietveld 408576698