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

Side by Side Diff: content/browser/accessibility/browser_accessibility_manager_android.cc

Issue 143473003: Generate ax enums from idl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Caught Blink enum conversion bug! Created 6 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/accessibility/browser_accessibility_manager_android.h" 5 #include "content/browser/accessibility/browser_accessibility_manager_android.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 return; 70 return;
71 71
72 Java_BrowserAccessibilityManager_onNativeObjectDestroyed(env, obj.obj()); 72 Java_BrowserAccessibilityManager_onNativeObjectDestroyed(env, obj.obj());
73 } 73 }
74 74
75 // static 75 // static
76 ui::AXNodeData BrowserAccessibilityManagerAndroid::GetEmptyDocument() { 76 ui::AXNodeData BrowserAccessibilityManagerAndroid::GetEmptyDocument() {
77 ui::AXNodeData empty_document; 77 ui::AXNodeData empty_document;
78 empty_document.id = 0; 78 empty_document.id = 0;
79 empty_document.role = ui::AX_ROLE_ROOT_WEB_AREA; 79 empty_document.role = ui::AX_ROLE_ROOT_WEB_AREA;
80 empty_document.state = 1 << ui::AX_STATE_READONLY; 80 empty_document.state = 1 << ui::AX_STATE_READ_ONLY;
81 return empty_document; 81 return empty_document;
82 } 82 }
83 83
84 void BrowserAccessibilityManagerAndroid::SetContentViewCore( 84 void BrowserAccessibilityManagerAndroid::SetContentViewCore(
85 ScopedJavaLocalRef<jobject> content_view_core) { 85 ScopedJavaLocalRef<jobject> content_view_core) {
86 if (content_view_core.is_null()) 86 if (content_view_core.is_null())
87 return; 87 return;
88 88
89 JNIEnv* env = AttachCurrentThread(); 89 JNIEnv* env = AttachCurrentThread();
90 java_ref_ = JavaObjectWeakGlobalRef( 90 java_ref_ = JavaObjectWeakGlobalRef(
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 BrowserAccessibilityManagerAndroid::UseRootScrollOffsetsWhenComputingBounds() { 450 BrowserAccessibilityManagerAndroid::UseRootScrollOffsetsWhenComputingBounds() {
451 // The Java layer handles the root scroll offset. 451 // The Java layer handles the root scroll offset.
452 return false; 452 return false;
453 } 453 }
454 454
455 bool RegisterBrowserAccessibilityManager(JNIEnv* env) { 455 bool RegisterBrowserAccessibilityManager(JNIEnv* env) {
456 return RegisterNativesImpl(env); 456 return RegisterNativesImpl(env);
457 } 457 }
458 458
459 } // namespace content 459 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698