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

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

Issue 2121004: Windows accessibility improvements: 1. All WebKit roles are now passed to the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 net::LoadState load_state, 669 net::LoadState load_state,
670 uint64 upload_position, 670 uint64 upload_position,
671 uint64 upload_size) { 671 uint64 upload_size) {
672 delegate_->LoadStateChanged(url, load_state, upload_position, upload_size); 672 delegate_->LoadStateChanged(url, load_state, upload_position, upload_size);
673 } 673 }
674 674
675 bool RenderViewHost::SuddenTerminationAllowed() const { 675 bool RenderViewHost::SuddenTerminationAllowed() const {
676 return sudden_termination_allowed_ || process()->sudden_termination_allowed(); 676 return sudden_termination_allowed_ || process()->sudden_termination_allowed();
677 } 677 }
678 678
679 void RenderViewHost::RequestAccessibilityTree() {
680 Send(new ViewMsg_GetAccessibilityTree(routing_id()));
681 }
682
683 /////////////////////////////////////////////////////////////////////////////// 679 ///////////////////////////////////////////////////////////////////////////////
684 // RenderViewHost, IPC message handlers: 680 // RenderViewHost, IPC message handlers:
685 681
686 void RenderViewHost::OnMessageReceived(const IPC::Message& msg) { 682 void RenderViewHost::OnMessageReceived(const IPC::Message& msg) {
687 #if defined(OS_WIN) 683 #if defined(OS_WIN)
688 // On Windows there's a potential deadlock with sync messsages going in 684 // On Windows there's a potential deadlock with sync messsages going in
689 // a circle from browser -> plugin -> renderer -> browser. 685 // a circle from browser -> plugin -> renderer -> browser.
690 // On Linux we can avoid this by avoiding sync messages from browser->plugin. 686 // On Linux we can avoid this by avoiding sync messages from browser->plugin.
691 // On Mac we avoid this by not supporting windowed plugins. 687 // On Mac we avoid this by not supporting windowed plugins.
692 if (msg.is_sync() && !msg.is_caller_pumping_messages()) { 688 if (msg.is_sync() && !msg.is_caller_pumping_messages()) {
(...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after
1881 integration_delegate->OnPageTranslated(page_id, original_lang, 1877 integration_delegate->OnPageTranslated(page_id, original_lang,
1882 translated_lang, error_type); 1878 translated_lang, error_type);
1883 } 1879 }
1884 1880
1885 void RenderViewHost::OnContentBlocked(ContentSettingsType type) { 1881 void RenderViewHost::OnContentBlocked(ContentSettingsType type) {
1886 RenderViewHostDelegate::Resource* resource_delegate = 1882 RenderViewHostDelegate::Resource* resource_delegate =
1887 delegate_->GetResourceDelegate(); 1883 delegate_->GetResourceDelegate();
1888 if (resource_delegate) 1884 if (resource_delegate)
1889 resource_delegate->OnContentBlocked(type); 1885 resource_delegate->OnContentBlocked(type);
1890 } 1886 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/renderer_host/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698