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

Issue 10117016: Implementation for switching between recently used tabs using ctrl tilde or quoteleft.

Created:
8 years, 8 months ago by NaveenBobbili (Motorola)
Modified:
7 years, 1 month ago
Reviewers:
glen, sky
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Implementation for switching between recently used tabs using ctrl tilde or quoteleft. BUG=43459 TEST=Done UI Testing and unit test cases.

Patch Set 1 #

Patch Set 2 : As per initial comments. #

Patch Set 3 : Added tab mru list manager class. #

Total comments: 12

Patch Set 4 : Uploaded as per comments #

Total comments: 25

Patch Set 5 : Uploading fix for review comments. #

Patch Set 6 : Added unit test #

Total comments: 18

Patch Set 7 : Fixed review comments. #

Patch Set 8 : Fixed review comments. #

Patch Set 9 : Fixed review comments. #

Total comments: 22

Patch Set 10 : Fixed review comments. #

Patch Set 11 : Uploading patch for review after rebase. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+556 lines, -8 lines) Patch
M chrome/app/chrome_command_ids.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -7 lines 0 comments Download
M chrome/app/chrome_dll.rc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_commands.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/accelerators_gtk.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 1 comment Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +30 lines, -0 lines 0 comments Download
A chrome/browser/ui/tabs/mru_tab_controller.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/browser/ui/tabs/mru_tab_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +103 lines, -0 lines 0 comments Download
A chrome/browser/ui/tabs/mru_tab_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +288 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (0 generated)
NaveenBobbili (Motorola)
Hi Scott, This feature is very similar to alt+tab feature in desktop. We are maintaining ...
8 years, 8 months ago (2012-04-18 10:38:03 UTC) #1
sky
Thanks for the patch! Before you embark on ui changes like this you need to ...
8 years, 8 months ago (2012-04-18 14:37:01 UTC) #2
NaveenBobbili (Motorola)
Thanks for letting me know. This patch is mostly back end work . I would ...
8 years, 8 months ago (2012-04-19 07:27:11 UTC) #3
sky
We had such a feature early on in Chrome's life time but removed it because ...
8 years, 8 months ago (2012-04-19 15:45:01 UTC) #4
glen
We shouldn't do a preview (we should just switch the tab, as we do with ...
8 years, 8 months ago (2012-04-23 22:21:58 UTC) #5
NaveenBobbili (Motorola)
Hi Glen, Thanks for your comments. Regards, Naveen.B Hi Scott, Can you please review this ...
8 years, 8 months ago (2012-04-24 05:02:31 UTC) #6
sky
We should track this in the TabStripModel. It's a more natural place. Additionally add unit ...
8 years, 8 months ago (2012-04-24 15:44:04 UTC) #7
NaveenBobbili (Motorola)
Hi, Please review the new patchset. Thanks, Naveen.B
8 years, 7 months ago (2012-05-21 09:26:46 UTC) #8
sky
On second thought I think we should move this into a standalone class
8 years, 7 months ago (2012-05-22 15:39:40 UTC) #9
NaveenBobbili (Motorola)
Please review patchset 2 Added a seperate class for handling MRU list management.
8 years, 7 months ago (2012-05-25 09:19:24 UTC) #10
sky
https://chromiumcodereview.appspot.com/10117016/diff/12002/chrome/app/chrome_command_ids.h File chrome/app/chrome_command_ids.h (right): https://chromiumcodereview.appspot.com/10117016/diff/12002/chrome/app/chrome_command_ids.h#newcode318 chrome/app/chrome_command_ids.h:318: #define IDC_SELECT_NEXT_MRU_TAB 52201 This should be in window management ...
8 years, 7 months ago (2012-05-25 17:56:52 UTC) #11
NaveenBobbili (Motorola)
Please review patch 4. Now that I have removed all my changes from tab_strip_model pls ...
8 years, 6 months ago (2012-05-29 11:41:05 UTC) #12
sky
You'll want to add tests to tab_mru_list_manager_unittest http://codereview.chromium.org/10117016/diff/17002/chrome/app/chrome_command_ids.h File chrome/app/chrome_command_ids.h (right): http://codereview.chromium.org/10117016/diff/17002/chrome/app/chrome_command_ids.h#newcode61 chrome/app/chrome_command_ids.h:61: #define IDC_SELECT_NEXT_MRU_TAB ...
8 years, 6 months ago (2012-05-29 19:48:27 UTC) #13
NaveenBobbili (Motorola)
http://codereview.chromium.org/10117016/diff/17002/chrome/app/chrome_command_ids.h File chrome/app/chrome_command_ids.h (right): http://codereview.chromium.org/10117016/diff/17002/chrome/app/chrome_command_ids.h#newcode61 chrome/app/chrome_command_ids.h:61: #define IDC_SELECT_NEXT_MRU_TAB 34040 On 2012/05/29 19:48:27, sky wrote: > ...
8 years, 6 months ago (2012-06-05 05:34:16 UTC) #14
NaveenBobbili (Motorola)
Please review patchset6. I have considered all your previous review comments.
8 years, 6 months ago (2012-06-05 12:32:01 UTC) #15
NaveenBobbili (Motorola)
Hi Scott, Can you please review patchset 6 during your free cycles? Thanks, Naveen.B
8 years, 6 months ago (2012-06-11 09:45:31 UTC) #16
sky
I think you have the interaction a bit wrong. In particular as long as the ...
8 years, 6 months ago (2012-06-11 18:21:51 UTC) #17
NaveenBobbili (Motorola)
Hi, I am not able to find a specific use case/ code to check if ...
8 years, 6 months ago (2012-06-13 06:07:32 UTC) #18
NaveenBobbili (Motorola)
Hi Scott, Can you please review the change. Got the interaction right this time as ...
8 years, 6 months ago (2012-06-15 06:48:01 UTC) #19
sky
I'm not sure on the linux side. You'll have to ping some one who knows ...
8 years, 6 months ago (2012-06-15 19:35:21 UTC) #20
sky
http://codereview.chromium.org/10117016/diff/28031/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/10117016/diff/28031/chrome/browser/ui/browser.cc#newcode4094 chrome/browser/ui/browser.cc:4094: if (CommandLine::ForCurrentProcess()->HasSwitch( This should be conditionally enabled. http://codereview.chromium.org/10117016/diff/28031/chrome/browser/ui/gtk/browser_window_gtk.cc File ...
8 years, 6 months ago (2012-06-15 19:47:39 UTC) #21
NaveenBobbili (Motorola)
http://codereview.chromium.org/10117016/diff/28031/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/10117016/diff/28031/chrome/browser/ui/browser.cc#newcode4094 chrome/browser/ui/browser.cc:4094: if (CommandLine::ForCurrentProcess()->HasSwitch( On 2012/06/15 19:47:39, sky wrote: > This ...
8 years, 6 months ago (2012-06-25 09:44:22 UTC) #22
NaveenBobbili (Motorola)
Hi Scott, I have addressed all the previous review comments. Can you please take a ...
8 years, 5 months ago (2012-06-27 05:54:30 UTC) #23
alexfh
On 2012/04/23 22:21:58, glen wrote: > We shouldn't do a preview (we should just switch ...
8 years, 5 months ago (2012-07-02 15:16:08 UTC) #24
NaveenBobbili (Motorola)
On 2012/07/02 15:16:08, alexfh wrote: > On 2012/04/23 22:21:58, glen wrote: > > We shouldn't ...
8 years, 5 months ago (2012-07-02 15:20:06 UTC) #25
NaveenBobbili (Motorola)
On 2012/07/02 15:20:06, NaveenBobbili (Motorola) wrote: > On 2012/07/02 15:16:08, alexfh wrote: > > On ...
8 years, 5 months ago (2012-07-10 12:25:14 UTC) #26
Glen Murphy
8 years, 5 months ago (2012-07-10 16:00:20 UTC) #27
sky
browser has changed around quite substantially. Please rebase and I'll take another look.
8 years, 5 months ago (2012-07-17 17:46:31 UTC) #28
NaveenBobbili (Motorola)
Hi Scott, I have rebased and done necessary changes . Please take a look and ...
8 years, 5 months ago (2012-07-19 07:24:11 UTC) #29
sky
Before continuing with this work we need to resolve the keyboard accelerator question. The ball ...
8 years, 5 months ago (2012-07-19 16:13:00 UTC) #30
NaveenBobbili (Motorola)
Hi, How about ctrl + backspace . Does it signify going back to the previous ...
8 years, 5 months ago (2012-07-20 11:26:28 UTC) #31
sky
You need both a back and forward key. ctrl+backspace is no good since it does ...
8 years, 5 months ago (2012-07-20 16:18:02 UTC) #32
NaveenBobbili (Motorola)
I think the current implementation could suffice one key very similar to alt+tab in desktop. ...
8 years, 5 months ago (2012-07-21 06:53:25 UTC) #33
NaveenBobbili (Motorola)
Hi Glen, I couldn't think anything other than ctrl + tilde . All the keys ...
8 years, 3 months ago (2012-08-29 07:22:03 UTC) #34
epere4
On 2012/07/02 15:20:06, NaveenBobbili (Motorola) wrote: > On 2012/07/02 15:16:08, alexfh wrote: > > On ...
8 years, 3 months ago (2012-08-29 07:37:41 UTC) #35
NaveenBobbili (Motorola)
On 2012/08/29 07:37:41, epere4 wrote: > On 2012/07/02 15:20:06, NaveenBobbili (Motorola) wrote: > > On ...
8 years, 3 months ago (2012-09-05 09:05:34 UTC) #36
NaveenBobbili (Motorola)
Hi Glen/Scott, How about using ctrl+left arrow to move to the previous MRU tab? Thanks, ...
8 years, 3 months ago (2012-09-05 09:17:30 UTC) #37
glen
Ctrl+Arrows are heavily used in text editing, so it wouldn't work whenever the omnibox was ...
8 years, 3 months ago (2012-09-06 00:58:56 UTC) #38
alexfh
Naveen, can you try your patch with keyboard layouts that change tilde key behavior? Maybe ...
8 years, 3 months ago (2012-09-10 15:33:58 UTC) #39
NaveenBobbili (Motorola)
Hi Scott/Glen, Can we have ctrl+tab as an experimental override over its basic implementation? I ...
7 years, 10 months ago (2013-02-25 18:49:55 UTC) #40
sky
See Glen's earlier comment: "I could've sworn I'd responded to this already - we're not ...
7 years, 10 months ago (2013-02-25 21:42:51 UTC) #41
deadduck169
On 2013/02/25 21:42:51, sky wrote: > See Glen's earlier comment: > > "I could've sworn ...
7 years, 9 months ago (2013-03-09 05:36:57 UTC) #42
Dave Myron
On 2013/03/09 05:36:57, deadduck169 wrote: > On 2013/02/25 21:42:51, sky wrote: > > See Glen's ...
7 years, 4 months ago (2013-08-06 20:38:51 UTC) #43
deadduck169
7 years, 1 month ago (2013-11-18 22:18:18 UTC) #44
On 2013/02/25 21:42:51, sky wrote:
> See Glen's earlier comment:
> 
> "I could've sworn I'd responded to this already - we're not interested
> in replacing the Ctrl+Tab behavior or adding a pref; if we can't find
> an alternate shortcut for this, we may have to cancel."
> 
>   -Scott
> 

Weird. I don't see this comment anywhere. Did he change his mind and delete it?
Anyway, if the only thing that is preventing this from being included is
deciding on a keyboard shortcut. I have a few suggestions:

* Ideally, add a setting to toggle the Ctrl-Tab/Ctrl-Shift-Tab behavior between
prev/next and MRU. If not, I would love if someone could elaborate more on
Glen's comment above. There are obviously many people interested in this
feature, so there must be some valid reason to not include it beyond one dev
simply not being interested. I'm not interested in painting my house pink, but
it doesn't mean that my paint store should eliminate all pink paint.

If overriding Ctrl-Tab is absolutely not possible, then perhaps any combination
of the following could be worth exploring:

* Set the shortcut to something logical based on the current keyboard layout, or
the layout at browser start up. For example, use Ctrl+{key in the English
keyboard ~ location}. For Spanish, this would be something like Ctrl+º.
* Similar to the above, set the shortcut to something logical based on the
current browser language. For each language, assume the most common layout for
that language
* Make this default to a specific shortcut (like Ctrl+~) and allow the user to
override it in the settings to whatever key combination they want. If this
combination is already assigned to something else, either prevent the change or
prompt the user with a dialog box to override the other shortcut or cancel.

Powered by Google App Engine
This is Rietveld 408576698