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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 ViewMsg_Navigate_Params* params) { 657 ViewMsg_Navigate_Params* params) {
658 params->page_id = entry.page_id(); 658 params->page_id = entry.page_id();
659 params->url = entry.url(); 659 params->url = entry.url();
660 params->referrer = entry.referrer(); 660 params->referrer = entry.referrer();
661 params->transition = entry.transition_type(); 661 params->transition = entry.transition_type();
662 params->state = entry.content_state(); 662 params->state = entry.content_state();
663 params->reload = reload; 663 params->reload = reload;
664 params->request_time = base::Time::Now(); 664 params->request_time = base::Time::Now();
665 } 665 }
666 666
667 void RenderViewHost::GotFocus() {
668 RenderWidgetHost::GotFocus(); // Notifies the renderer it got focus.
669
670 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
671 if (view)
672 view->GotFocus();
673 }
674
667 bool RenderViewHost::CanBlur() const { 675 bool RenderViewHost::CanBlur() const {
668 return delegate_->CanBlur(); 676 return delegate_->CanBlur();
669 } 677 }
670 678
671 void RenderViewHost::SetInitialFocus(bool reverse) { 679 void RenderViewHost::SetInitialFocus(bool reverse) {
672 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse)); 680 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse));
673 } 681 }
674 682
675 void RenderViewHost::ClearFocusedNode() { 683 void RenderViewHost::ClearFocusedNode() {
676 Send(new ViewMsg_ClearFocusedNode(routing_id())); 684 Send(new ViewMsg_ClearFocusedNode(routing_id()));
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 } 1476 }
1469 1477
1470 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) { 1478 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) {
1471 #if defined(OS_WIN) 1479 #if defined(OS_WIN)
1472 BrowserAccessibilityManager::GetInstance()-> 1480 BrowserAccessibilityManager::GetInstance()->
1473 ChangeAccessibilityFocus(acc_obj_id, process()->pid(), routing_id()); 1481 ChangeAccessibilityFocus(acc_obj_id, process()->pid(), routing_id());
1474 #else 1482 #else
1475 // TODO(port): accessibility not yet implemented. See http://crbug.com/8288. 1483 // TODO(port): accessibility not yet implemented. See http://crbug.com/8288.
1476 #endif 1484 #endif
1477 } 1485 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698