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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2255093005: Pass accessible location change messages to the automation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Speculative fix to cast_shell Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 2350 matching lines...) Expand 10 before | Expand all | Expand 10 after
2361 AccessibilityMode WebContentsImpl::GetAccessibilityMode() const { 2361 AccessibilityMode WebContentsImpl::GetAccessibilityMode() const {
2362 return accessibility_mode_; 2362 return accessibility_mode_;
2363 } 2363 }
2364 2364
2365 void WebContentsImpl::AccessibilityEventReceived( 2365 void WebContentsImpl::AccessibilityEventReceived(
2366 const std::vector<AXEventNotificationDetails>& details) { 2366 const std::vector<AXEventNotificationDetails>& details) {
2367 FOR_EACH_OBSERVER( 2367 FOR_EACH_OBSERVER(
2368 WebContentsObserver, observers_, AccessibilityEventReceived(details)); 2368 WebContentsObserver, observers_, AccessibilityEventReceived(details));
2369 } 2369 }
2370 2370
2371 void WebContentsImpl::AccessibilityLocationChangesReceived(
2372 const std::vector<AXLocationChangeNotificationDetails>& details) {
2373 FOR_EACH_OBSERVER(WebContentsObserver,
2374 observers_,
2375 AccessibilityLocationChangesReceived(details));
2376 }
2377
2371 RenderFrameHost* WebContentsImpl::GetGuestByInstanceID( 2378 RenderFrameHost* WebContentsImpl::GetGuestByInstanceID(
2372 RenderFrameHost* render_frame_host, 2379 RenderFrameHost* render_frame_host,
2373 int browser_plugin_instance_id) { 2380 int browser_plugin_instance_id) {
2374 BrowserPluginGuestManager* guest_manager = 2381 BrowserPluginGuestManager* guest_manager =
2375 GetBrowserContext()->GetGuestManager(); 2382 GetBrowserContext()->GetGuestManager();
2376 if (!guest_manager) 2383 if (!guest_manager)
2377 return nullptr; 2384 return nullptr;
2378 2385
2379 WebContents* guest = guest_manager->GetGuestByInstanceID( 2386 WebContents* guest = guest_manager->GetGuestByInstanceID(
2380 render_frame_host->GetProcess()->GetID(), browser_plugin_instance_id); 2387 render_frame_host->GetProcess()->GetID(), browser_plugin_instance_id);
(...skipping 2825 matching lines...) Expand 10 before | Expand all | Expand 10 after
5206 for (RenderViewHost* render_view_host : render_view_host_set) 5213 for (RenderViewHost* render_view_host : render_view_host_set)
5207 render_view_host->OnWebkitPreferencesChanged(); 5214 render_view_host->OnWebkitPreferencesChanged();
5208 } 5215 }
5209 5216
5210 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( 5217 void WebContentsImpl::SetJavaScriptDialogManagerForTesting(
5211 JavaScriptDialogManager* dialog_manager) { 5218 JavaScriptDialogManager* dialog_manager) {
5212 dialog_manager_ = dialog_manager; 5219 dialog_manager_ = dialog_manager;
5213 } 5220 }
5214 5221
5215 } // namespace content 5222 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/accessibility_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698