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

Side by Side Diff: chrome/browser/render_view_host.cc

Issue 4057: Adds MSAA/IAccessible exposure of web content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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/render_view_host.h" 5 #include "chrome/browser/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // This RenderViewHost doesn't have a live renderer, so just skip running 239 // This RenderViewHost doesn't have a live renderer, so just skip running
240 // the onbeforeunload handler. 240 // the onbeforeunload handler.
241 OnMsgShouldCloseACK(true); 241 OnMsgShouldCloseACK(true);
242 } 242 }
243 } 243 }
244 244
245 void RenderViewHost::FirePageUnload() { 245 void RenderViewHost::FirePageUnload() {
246 // Start the hang monitor in case the renderer hangs in the unload handler. 246 // Start the hang monitor in case the renderer hangs in the unload handler.
247 is_waiting_for_unload_ack_ = true; 247 is_waiting_for_unload_ack_ = true;
248 StartHangMonitorTimeout(kUnloadTimeoutMS); 248 StartHangMonitorTimeout(kUnloadTimeoutMS);
249 ClosePage(site_instance()->process_host_id(), 249 ClosePage(site_instance()->process_host_id(),
250 routing_id()); 250 routing_id());
251 } 251 }
252 252
253 // static 253 // static
254 void RenderViewHost::ClosePageIgnoringUnloadEvents(int render_process_host_id, 254 void RenderViewHost::ClosePageIgnoringUnloadEvents(int render_process_host_id,
255 int request_id) { 255 int request_id) {
256 RenderViewHost* rvh = RenderViewHost::FromID(render_process_host_id, 256 RenderViewHost* rvh = RenderViewHost::FromID(render_process_host_id,
257 request_id); 257 request_id);
258 if (!rvh) 258 if (!rvh)
259 return; 259 return;
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenURL, OnMsgOpenURL) 647 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenURL, OnMsgOpenURL)
648 IPC_MESSAGE_HANDLER(ViewHostMsg_DomOperationResponse, 648 IPC_MESSAGE_HANDLER(ViewHostMsg_DomOperationResponse,
649 OnMsgDomOperationResponse) 649 OnMsgDomOperationResponse)
650 IPC_MESSAGE_HANDLER(ViewHostMsg_DOMUISend, 650 IPC_MESSAGE_HANDLER(ViewHostMsg_DOMUISend,
651 OnMsgDOMUISend) 651 OnMsgDOMUISend)
652 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardMessageToExternalHost, 652 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardMessageToExternalHost,
653 OnMsgForwardMessageToExternalHost) 653 OnMsgForwardMessageToExternalHost)
654 #ifdef CHROME_PERSONALIZATION 654 #ifdef CHROME_PERSONALIZATION
655 IPC_MESSAGE_HANDLER(ViewHostMsg_PersonalizationEvent, 655 IPC_MESSAGE_HANDLER(ViewHostMsg_PersonalizationEvent,
656 OnPersonalizationEvent) 656 OnPersonalizationEvent)
657 #endif 657 #endif
658 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, 658 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset,
659 OnMsgGoToEntryAtOffset) 659 OnMsgGoToEntryAtOffset)
660 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnMsgSetTooltipText) 660 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnMsgSetTooltipText)
661 IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnMsgRunFileChooser) 661 IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnMsgRunFileChooser)
662 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage, 662 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage,
663 OnMsgRunJavaScriptMessage) 663 OnMsgRunJavaScriptMessage)
664 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm, 664 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm,
665 OnMsgRunBeforeUnloadConfirm) 665 OnMsgRunBeforeUnloadConfirm)
666 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_ShowModalHTMLDialog, 666 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_ShowModalHTMLDialog,
667 OnMsgShowModalHTMLDialog) 667 OnMsgShowModalHTMLDialog)
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 } 1198 }
1199 1199
1200 void RenderViewHost::OnDebugDisconnect() { 1200 void RenderViewHost::OnDebugDisconnect() {
1201 if (debugger_attached_) { 1201 if (debugger_attached_) {
1202 debugger_attached_ = false; 1202 debugger_attached_ = false;
1203 g_browser_process->debugger_wrapper()->OnDebugDisconnect(); 1203 g_browser_process->debugger_wrapper()->OnDebugDisconnect();
1204 } 1204 }
1205 } 1205 }
1206 1206
1207 #ifdef CHROME_PERSONALIZATION 1207 #ifdef CHROME_PERSONALIZATION
1208 void RenderViewHost::RaisePersonalizationEvent(std::string event_name, 1208 void RenderViewHost::RaisePersonalizationEvent(std::string event_name,
1209 std::string event_arg) { 1209 std::string event_arg) {
1210 Send(new ViewMsg_PersonalizationEvent(routing_id_, 1210 Send(new ViewMsg_PersonalizationEvent(routing_id_,
1211 event_name, 1211 event_name,
1212 event_arg)); 1212 event_arg));
1213 } 1213 }
1214 #endif 1214 #endif
1215 1215
1216 void RenderViewHost::ForwardMessageFromExternalHost( 1216 void RenderViewHost::ForwardMessageFromExternalHost(
1217 const std::string& target, const std::string& message) { 1217 const std::string& target, const std::string& message) {
1218 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id_, target, message)); 1218 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id_, target, message));
1219 } 1219 }
1220 1220
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698