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

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

Issue 210013: Making BrowserFocusTest FocusTraversal faster (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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_widget_host.h" 5 #include "chrome/browser/renderer_host/render_widget_host.h"
6 6
7 #include "base/histogram.h" 7 #include "base/histogram.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/keyboard_codes.h" 9 #include "base/keyboard_codes.h"
10 #include "chrome/browser/renderer_host/backing_store.h" 10 #include "chrome/browser/renderer_host/backing_store.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 IPC_BEGIN_MESSAGE_MAP_EX(RenderWidgetHost, msg, msg_is_ok) 125 IPC_BEGIN_MESSAGE_MAP_EX(RenderWidgetHost, msg, msg_is_ok)
126 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewReady, OnMsgRenderViewReady) 126 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewReady, OnMsgRenderViewReady)
127 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewGone, OnMsgRenderViewGone) 127 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewGone, OnMsgRenderViewGone)
128 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnMsgClose) 128 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnMsgClose)
129 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnMsgRequestMove) 129 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnMsgRequestMove)
130 IPC_MESSAGE_HANDLER(ViewHostMsg_PaintRect, OnMsgPaintRect) 130 IPC_MESSAGE_HANDLER(ViewHostMsg_PaintRect, OnMsgPaintRect)
131 IPC_MESSAGE_HANDLER(ViewHostMsg_ScrollRect, OnMsgScrollRect) 131 IPC_MESSAGE_HANDLER(ViewHostMsg_ScrollRect, OnMsgScrollRect)
132 IPC_MESSAGE_HANDLER(ViewHostMsg_HandleInputEvent_ACK, OnMsgInputEventAck) 132 IPC_MESSAGE_HANDLER(ViewHostMsg_HandleInputEvent_ACK, OnMsgInputEventAck)
133 IPC_MESSAGE_HANDLER(ViewHostMsg_Focus, OnMsgFocus) 133 IPC_MESSAGE_HANDLER(ViewHostMsg_Focus, OnMsgFocus)
134 IPC_MESSAGE_HANDLER(ViewHostMsg_Blur, OnMsgBlur) 134 IPC_MESSAGE_HANDLER(ViewHostMsg_Blur, OnMsgBlur)
135 IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeChanged, OnMsgFocusedNodeChanged)
135 IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnMsgSetCursor) 136 IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnMsgSetCursor)
136 IPC_MESSAGE_HANDLER(ViewHostMsg_ImeUpdateStatus, OnMsgImeUpdateStatus) 137 IPC_MESSAGE_HANDLER(ViewHostMsg_ImeUpdateStatus, OnMsgImeUpdateStatus)
137 #if defined(OS_LINUX) 138 #if defined(OS_LINUX)
138 IPC_MESSAGE_HANDLER(ViewHostMsg_CreatePluginContainer, 139 IPC_MESSAGE_HANDLER(ViewHostMsg_CreatePluginContainer,
139 OnMsgCreatePluginContainer) 140 OnMsgCreatePluginContainer)
140 IPC_MESSAGE_HANDLER(ViewHostMsg_DestroyPluginContainer, 141 IPC_MESSAGE_HANDLER(ViewHostMsg_DestroyPluginContainer,
141 OnMsgDestroyPluginContainer) 142 OnMsgDestroyPluginContainer)
142 #elif defined(OS_MACOSX) 143 #elif defined(OS_MACOSX)
143 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowPopup, OnMsgShowPopup) 144 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowPopup, OnMsgShowPopup)
144 IPC_MESSAGE_HANDLER(ViewHostMsg_GetScreenInfo, OnMsgGetScreenInfo) 145 IPC_MESSAGE_HANDLER(ViewHostMsg_GetScreenInfo, OnMsgGetScreenInfo)
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 // Only the user can focus a RenderWidgetHost. 772 // Only the user can focus a RenderWidgetHost.
772 process()->ReceivedBadMessage(ViewHostMsg_Focus__ID); 773 process()->ReceivedBadMessage(ViewHostMsg_Focus__ID);
773 } 774 }
774 775
775 void RenderWidgetHost::OnMsgBlur() { 776 void RenderWidgetHost::OnMsgBlur() {
776 if (view_) { 777 if (view_) {
777 view_->Blur(); 778 view_->Blur();
778 } 779 }
779 } 780 }
780 781
782 void RenderWidgetHost::OnMsgFocusedNodeChanged() {
783 }
784
781 void RenderWidgetHost::OnMsgSetCursor(const WebCursor& cursor) { 785 void RenderWidgetHost::OnMsgSetCursor(const WebCursor& cursor) {
782 if (!view_) { 786 if (!view_) {
783 return; 787 return;
784 } 788 }
785 view_->UpdateCursor(cursor); 789 view_->UpdateCursor(cursor);
786 } 790 }
787 791
788 void RenderWidgetHost::OnMsgImeUpdateStatus(int control, 792 void RenderWidgetHost::OnMsgImeUpdateStatus(int control,
789 const gfx::Rect& caret_rect) { 793 const gfx::Rect& caret_rect) {
790 if (view_) { 794 if (view_) {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 Send(new ViewMsg_ToggleSpellPanel(routing_id(), is_currently_visible)); 892 Send(new ViewMsg_ToggleSpellPanel(routing_id(), is_currently_visible));
889 } 893 }
890 894
891 void RenderWidgetHost::ReplaceWord(const std::wstring& word) { 895 void RenderWidgetHost::ReplaceWord(const std::wstring& word) {
892 Send(new ViewMsg_Replace(routing_id_, word)); 896 Send(new ViewMsg_Replace(routing_id_, word));
893 } 897 }
894 898
895 void RenderWidgetHost::AdvanceToNextMisspelling() { 899 void RenderWidgetHost::AdvanceToNextMisspelling() {
896 Send(new ViewMsg_AdvanceToNextMisspelling(routing_id_)); 900 Send(new ViewMsg_AdvanceToNextMisspelling(routing_id_));
897 } 901 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.h ('k') | chrome/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698