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

Issue 42190: Linux accelerators cleanup (Closed)

Created:
11 years, 9 months ago by Evan Stade
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Linux accelerators cleanup: - Give renderer a chance to handle accelerators before browser does. - Handle browser accelerators that aren't attached to any particular UI element in BrowserWindowGtk rather than in BrowserToolbarGtk - Use Browser::ExecuteCommand() to handle accelerator activation - Switch a random void* to gfx::NativeWindow - Enable three browser commands on linux : Focus Location, Focus Search, Open file This fully enables ctrl-l, ctrl-k, and ctrl-o. This fixes copy-pasta in the omnibox. This fixes the problem Dean described with <http://www.quirksmode.org/js/keys.html>;. bug=8659 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=11759

Patch Set 1 #

Total comments: 10

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 23

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -57 lines) Patch
M chrome/browser/browser.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/browser.cc View 1 2 3 4 3 chunks +16 lines, -4 lines 0 comments Download
M chrome/browser/browser_window.h View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gtk/browser_toolbar_gtk.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/gtk/browser_toolbar_gtk.cc View 1 2 3 4 5 6 5 chunks +10 lines, -30 lines 1 comment Download
M chrome/browser/gtk/browser_window_gtk.h View 1 2 3 4 3 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 8 chunks +65 lines, -9 lines 2 comments Download
M chrome/browser/renderer_host/render_widget_host_view_gtk.cc View 3 4 1 chunk +3 lines, -1 line 1 comment Download
M chrome/browser/tab_contents/web_contents_view_gtk.cc View 3 4 2 chunks +2 lines, -3 lines 2 comments Download
M chrome/browser/views/frame/browser_view.h View 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/frame/browser_view.cc View 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/test_browser_window.h View 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Evan Stade
11 years, 9 months ago (2009-03-13 21:47:28 UTC) #1
Evan Martin
+dean, who was talking about how these should work http://codereview.chromium.org/42190/diff/1/5 File chrome/browser/browser.cc (right): http://codereview.chromium.org/42190/diff/1/5#newcode901 Line ...
11 years, 9 months ago (2009-03-13 21:54:40 UTC) #2
Elliot Glaysher
http://codereview.chromium.org/42190/diff/1/5 File chrome/browser/browser.cc (right): http://codereview.chromium.org/42190/diff/1/5#newcode902 Line 902: void Browser::OpenFile() { +1 to both of these ...
11 years, 9 months ago (2009-03-13 22:15:52 UTC) #3
Evan Stade
comments addressed. Should be a bit easier to review now. http://codereview.chromium.org/42190/diff/1/5 File chrome/browser/browser.cc (right): http://codereview.chromium.org/42190/diff/1/5#newcode901 ...
11 years, 9 months ago (2009-03-13 23:11:42 UTC) #4
Elliot Glaysher
> http://codereview.chromium.org/42190/diff/1/2#newcode493 > Line 493: gtk_accel_group_query(accel_group, keyval, modifier, &handlers); > On 2009/03/13 22:15:53, Elliot Glaysher ...
11 years, 9 months ago (2009-03-14 01:26:02 UTC) #5
Evan Stade
have another look everybody (added a fix for Dean's bug)
11 years, 9 months ago (2009-03-14 23:45:32 UTC) #6
Dean McNamee
Will patch in your change today and play around with it. http://codereview.chromium.org/42190/diff/29/1043 File chrome/browser/browser.cc (right): ...
11 years, 9 months ago (2009-03-16 12:00:48 UTC) #7
Evan Stade
http://codereview.chromium.org/42190/diff/29/1043 File chrome/browser/browser.cc (right): http://codereview.chromium.org/42190/diff/29/1043#newcode911 Line 911: window_->SetFocusToLocationBar(); On 2009/03/16 12:00:48, Dean McNamee wrote: > ...
11 years, 9 months ago (2009-03-16 18:16:17 UTC) #8
Dean McNamee
LG with these changes, and if it valgrinds / etc. http://codereview.chromium.org/42190/diff/35/2048 File chrome/browser/gtk/browser_toolbar_gtk.cc (right): http://codereview.chromium.org/42190/diff/35/2048#newcode68 ...
11 years, 9 months ago (2009-03-16 19:19:01 UTC) #9
Evan Stade
11 years, 9 months ago (2009-03-16 19:25:49 UTC) #10
thanks for speedy reviews

http://codereview.chromium.org/42190/diff/35/2053
File chrome/browser/tab_contents/web_contents_view_gtk.cc (right):

http://codereview.chromium.org/42190/diff/35/2053#newcode182
Line 182: GtkWindow* window = GetTopLevelNativeView();
On 2009/03/16 19:19:02, Dean McNamee wrote:
> GetTopLevelNativeView returning a Window still seems wrong... Can you fix it?

will change the name of that function in a follow up patch as it touches a
numebr of files.

Powered by Google App Engine
This is Rietveld 408576698