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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 1761633002: One accessibility tree per frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix is-richly-editable test Created 4 years, 9 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/renderer_host/render_widget_host_view_android.h" 5 #include "content/browser/renderer_host/render_widget_host_view_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/android/build_info.h" 10 #include "base/android/build_info.h"
(...skipping 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after
1601 } 1601 }
1602 1602
1603 void RenderWidgetHostViewAndroid::OnSetNeedsFlushInput() { 1603 void RenderWidgetHostViewAndroid::OnSetNeedsFlushInput() {
1604 TRACE_EVENT0("input", "RenderWidgetHostViewAndroid::OnSetNeedsFlushInput"); 1604 TRACE_EVENT0("input", "RenderWidgetHostViewAndroid::OnSetNeedsFlushInput");
1605 RequestVSyncUpdate(FLUSH_INPUT); 1605 RequestVSyncUpdate(FLUSH_INPUT);
1606 } 1606 }
1607 1607
1608 BrowserAccessibilityManager* 1608 BrowserAccessibilityManager*
1609 RenderWidgetHostViewAndroid::CreateBrowserAccessibilityManager( 1609 RenderWidgetHostViewAndroid::CreateBrowserAccessibilityManager(
1610 BrowserAccessibilityDelegate* delegate) { 1610 BrowserAccessibilityDelegate* delegate) {
1611 // TODO(dmazzoni): Currently there can only be one
1612 // BrowserAccessibilityManager per ContentViewCore, so return NULL
1613 // if there's already a BrowserAccessibilityManager for the main
1614 // frame. Eventually, in order to support cross-process iframes on
1615 // Android we'll need to add support for a
1616 // BrowserAccessibilityManager for a child frame.
1617 // http://crbug.com/423846
1618 if (!host_ || host_->GetRootBrowserAccessibilityManager())
1619 return NULL;
1620
1621 base::android::ScopedJavaLocalRef<jobject> obj; 1611 base::android::ScopedJavaLocalRef<jobject> obj;
1622 if (content_view_core_) 1612 if (host_ &&
1613 host_->GetRootBrowserAccessibilityManager() &&
1614 content_view_core_) {
1623 obj = content_view_core_->GetJavaObject(); 1615 obj = content_view_core_->GetJavaObject();
1616 }
1624 return new BrowserAccessibilityManagerAndroid( 1617 return new BrowserAccessibilityManagerAndroid(
1625 obj, 1618 obj,
1626 BrowserAccessibilityManagerAndroid::GetEmptyDocument(), 1619 BrowserAccessibilityManagerAndroid::GetEmptyDocument(),
1627 delegate); 1620 delegate);
1628 } 1621 }
1629 1622
1630 bool RenderWidgetHostViewAndroid::LockMouse() { 1623 bool RenderWidgetHostViewAndroid::LockMouse() {
1631 NOTIMPLEMENTED(); 1624 NOTIMPLEMENTED();
1632 return false; 1625 return false;
1633 } 1626 }
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
2021 results->orientationAngle = display.RotationAsDegree(); 2014 results->orientationAngle = display.RotationAsDegree();
2022 results->orientationType = 2015 results->orientationType =
2023 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 2016 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
2024 gfx::DeviceDisplayInfo info; 2017 gfx::DeviceDisplayInfo info;
2025 results->depth = info.GetBitsPerPixel(); 2018 results->depth = info.GetBitsPerPixel();
2026 results->depthPerComponent = info.GetBitsPerComponent(); 2019 results->depthPerComponent = info.GetBitsPerComponent();
2027 results->isMonochrome = (results->depthPerComponent == 0); 2020 results->isMonochrome = (results->depthPerComponent == 0);
2028 } 2021 }
2029 2022
2030 } // namespace content 2023 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/common/accessibility_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698