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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_win.cc

Issue 122002: Moving the WM_SETFOCUS message processing out of FocusManager (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/renderer_host/render_widget_host_view_win.h" 5 #include "chrome/browser/renderer_host/render_widget_host_view_win.h"
6 6
7 #include "app/gfx/canvas.h" 7 #include "app/gfx/canvas.h"
8 #include "app/l10n_util.h" 8 #include "app/l10n_util.h"
9 #include "app/l10n_util_win.h" 9 #include "app/l10n_util_win.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 return 1; 784 return 1;
785 } 785 }
786 786
787 LRESULT RenderWidgetHostViewWin::OnSetCursor(HWND window, UINT hittest_code, 787 LRESULT RenderWidgetHostViewWin::OnSetCursor(HWND window, UINT hittest_code,
788 UINT mouse_message_id) { 788 UINT mouse_message_id) {
789 UpdateCursorIfOverSelf(); 789 UpdateCursorIfOverSelf();
790 return 0; 790 return 0;
791 } 791 }
792 792
793 void RenderWidgetHostViewWin::OnSetFocus(HWND window) { 793 void RenderWidgetHostViewWin::OnSetFocus(HWND window) {
794 render_widget_host_->Focus(); 794 render_widget_host_->GotFocus();
795 } 795 }
796 796
797 void RenderWidgetHostViewWin::OnKillFocus(HWND window) { 797 void RenderWidgetHostViewWin::OnKillFocus(HWND window) {
798 render_widget_host_->Blur(); 798 render_widget_host_->Blur();
799 } 799 }
800 800
801 void RenderWidgetHostViewWin::OnCaptureChanged(HWND window) { 801 void RenderWidgetHostViewWin::OnCaptureChanged(HWND window) {
802 render_widget_host_->LostCapture(); 802 render_widget_host_->LostCapture();
803 } 803 }
804 804
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
1313 // WM_LBUTTONDOWN. 1313 // WM_LBUTTONDOWN.
1314 SetFocus(); 1314 SetFocus();
1315 } 1315 }
1316 } 1316 }
1317 1317
1318 void RenderWidgetHostViewWin::ShutdownHost() { 1318 void RenderWidgetHostViewWin::ShutdownHost() {
1319 shutdown_factory_.RevokeAll(); 1319 shutdown_factory_.RevokeAll();
1320 render_widget_host_->Shutdown(); 1320 render_widget_host_->Shutdown();
1321 // Do not touch any members at this point, |this| has been deleted. 1321 // Do not touch any members at this point, |this| has been deleted.
1322 } 1322 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | chrome/browser/tab_contents/interstitial_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698