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

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

Issue 273423004: Migrate accessibility from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix more compile errors Created 6 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) 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 8
9 #include "base/android/sys_utils.h" 9 #include "base/android/sys_utils.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 } 1160 }
1161 1161
1162 void RenderWidgetHostViewAndroid::OnSetNeedsFlushInput() { 1162 void RenderWidgetHostViewAndroid::OnSetNeedsFlushInput() {
1163 if (flush_input_requested_ || !content_view_core_) 1163 if (flush_input_requested_ || !content_view_core_)
1164 return; 1164 return;
1165 TRACE_EVENT0("input", "RenderWidgetHostViewAndroid::OnSetNeedsFlushInput"); 1165 TRACE_EVENT0("input", "RenderWidgetHostViewAndroid::OnSetNeedsFlushInput");
1166 flush_input_requested_ = true; 1166 flush_input_requested_ = true;
1167 content_view_core_->GetWindowAndroid()->RequestVSyncUpdate(); 1167 content_view_core_->GetWindowAndroid()->RequestVSyncUpdate();
1168 } 1168 }
1169 1169
1170 void RenderWidgetHostViewAndroid::CreateBrowserAccessibilityManagerIfNeeded() { 1170 void RenderWidgetHostViewAndroid::CreateBrowserAccessibilityManagerIfNeeded(
1171 BrowserAccessibilityDelegate* delegate) {
1171 if (!host_ || host_->accessibility_mode() != AccessibilityModeComplete) 1172 if (!host_ || host_->accessibility_mode() != AccessibilityModeComplete)
1172 return; 1173 return;
1173 1174
1174 if (!GetBrowserAccessibilityManager()) { 1175 if (!GetBrowserAccessibilityManager()) {
1175 base::android::ScopedJavaLocalRef<jobject> obj; 1176 base::android::ScopedJavaLocalRef<jobject> obj;
1176 if (content_view_core_) 1177 if (content_view_core_)
1177 obj = content_view_core_->GetJavaObject(); 1178 obj = content_view_core_->GetJavaObject();
1178 SetBrowserAccessibilityManager( 1179 SetBrowserAccessibilityManager(
1179 new BrowserAccessibilityManagerAndroid( 1180 new BrowserAccessibilityManagerAndroid(
1180 obj, 1181 obj,
1181 BrowserAccessibilityManagerAndroid::GetEmptyDocument(), 1182 BrowserAccessibilityManagerAndroid::GetEmptyDocument(),
1182 host_)); 1183 delegate));
1183 } 1184 }
1184 } 1185 }
1185 1186
1186 bool RenderWidgetHostViewAndroid::LockMouse() { 1187 bool RenderWidgetHostViewAndroid::LockMouse() {
1187 NOTIMPLEMENTED(); 1188 NOTIMPLEMENTED();
1188 return false; 1189 return false;
1189 } 1190 }
1190 1191
1191 void RenderWidgetHostViewAndroid::UnlockMouse() { 1192 void RenderWidgetHostViewAndroid::UnlockMouse() {
1192 NOTIMPLEMENTED(); 1193 NOTIMPLEMENTED();
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 results->availableRect = display.work_area(); 1456 results->availableRect = display.work_area();
1456 results->deviceScaleFactor = display.device_scale_factor(); 1457 results->deviceScaleFactor = display.device_scale_factor();
1457 results->orientationAngle = display.RotationAsDegree(); 1458 results->orientationAngle = display.RotationAsDegree();
1458 gfx::DeviceDisplayInfo info; 1459 gfx::DeviceDisplayInfo info;
1459 results->depth = info.GetBitsPerPixel(); 1460 results->depth = info.GetBitsPerPixel();
1460 results->depthPerComponent = info.GetBitsPerComponent(); 1461 results->depthPerComponent = info.GetBitsPerComponent();
1461 results->isMonochrome = (results->depthPerComponent == 0); 1462 results->isMonochrome = (results->depthPerComponent == 0);
1462 } 1463 }
1463 1464
1464 } // namespace content 1465 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698