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

Issue 122002: Moving the WM_SETFOCUS message processing out of FocusManager (Closed)

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

Description

Changing the focus manager to not subclass HWNDs (but for the top-windows).Components that have HWND now need to specifically let the FocusManager know when they get the native focus.This is the reason for the new GotFocus() notification on the RenderWidgetHostViewWin class.BUG=NoneTEST=Run the interactive tests, the unit-tests. Test that the focus is remembered correctly when switching windows, switching tabs. Test that focus traversal in the browser and in the option dialog works as expected. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=18301

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -163 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view_win.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/browser.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/browser.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_focus_uitest.cc View 1 2 3 4 14 chunks +26 lines, -20 lines 0 comments Download
M chrome/browser/browser_window.h View 1 2 3 4 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.h View 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.mm View 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_host.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/gtk/browser_window_gtk.h View 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/gtk/browser_window_gtk.cc View 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/interstitial_page.cc View 1 2 3 4 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_delegate.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_gtk.h View 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_gtk.cc View 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_mac.h View 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_mac.mm View 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_win.h View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_win.cc View 1 2 3 4 3 chunks +24 lines, -24 lines 0 comments Download
M chrome/browser/views/frame/browser_view.h View 1 2 3 4 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/views/frame/browser_view.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/views/tab_contents/native_tab_contents_container.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/views/tab_contents/native_tab_contents_container_gtk.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/views/tab_contents/native_tab_contents_container_gtk.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/views/tab_contents/native_tab_contents_container_win.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/tab_contents/native_tab_contents_container_win.cc View 1 2 3 4 7 chunks +24 lines, -60 lines 0 comments Download
M chrome/browser/views/tab_contents/tab_contents_container.h View 1 2 3 4 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/views/tab_contents/tab_contents_container.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/test/test_browser_window.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M views/controls/native/native_view_host_gtk.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M views/controls/native/native_view_host_win.cc View 1 2 3 4 1 chunk +0 lines, -7 lines 0 comments Download
M views/controls/native_control.cc View 1 2 3 4 2 chunks +9 lines, -2 lines 0 comments Download
M views/controls/native_control_win.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M views/controls/textfield/native_textfield_win.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M views/controls/textfield/native_textfield_win.cc View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M views/focus/focus_manager.h View 1 2 3 4 2 chunks +10 lines, -10 lines 0 comments Download
M views/focus/focus_manager.cc View 1 2 3 4 2 chunks +0 lines, -19 lines 0 comments Download
M views/focus/focus_manager_unittest.cc View 1 2 3 4 3 chunks +29 lines, -0 lines 0 comments Download
M views/widget/widget_win.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
jcampan
Sorry for the big review. Note that I could not removed the native_tab_contents_container just yet. ...
11 years, 6 months ago (2009-06-11 05:36:33 UTC) #1
Ben Goodger (Google)
LGTM http://codereview.chromium.org/122002/diff/60/1093 File chrome/browser/renderer_host/render_view_host.cc (right): http://codereview.chromium.org/122002/diff/60/1093#newcode672 Line 672: return; why not just if (view) view->GotFocus(); ...
11 years, 6 months ago (2009-06-11 21:42:56 UTC) #2
Evan Stade
11 years, 6 months ago (2009-06-12 21:29:59 UTC) #3
I don't think that we want the changes to *_gtk*. We don't use the focus
manager. Can you remove this extra cruft?

Powered by Google App Engine
This is Rietveld 408576698