| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/android/content_view_core_impl.h" | 5 #include "content/browser/android/content_view_core_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
| 10 #include "base/android/jni_array.h" | 10 #include "base/android/jni_array.h" |
| (...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 manager->SetContentViewCore(GetJavaObject()); | 1377 manager->SetContentViewCore(GetJavaObject()); |
| 1378 return; | 1378 return; |
| 1379 } | 1379 } |
| 1380 } | 1380 } |
| 1381 | 1381 |
| 1382 // Otherwise, enable accessibility globally unless it was | 1382 // Otherwise, enable accessibility globally unless it was |
| 1383 // explicitly disallowed by a command-line flag, then enable it for | 1383 // explicitly disallowed by a command-line flag, then enable it for |
| 1384 // this WebContents if that succeeded. | 1384 // this WebContents if that succeeded. |
| 1385 accessibility_state->OnScreenReaderDetected(); | 1385 accessibility_state->OnScreenReaderDetected(); |
| 1386 if (accessibility_state->IsAccessibleBrowser() && web_contents_) | 1386 if (accessibility_state->IsAccessibleBrowser() && web_contents_) |
| 1387 web_contents_->AddAccessibilityMode(AccessibilityModeComplete); | 1387 web_contents_->AddAccessibilityMode(kAccessibilityModeComplete); |
| 1388 } else { | 1388 } else { |
| 1389 accessibility_state->ResetAccessibilityMode(); | 1389 accessibility_state->ResetAccessibilityMode(); |
| 1390 if (web_contents_) { | 1390 if (web_contents_) { |
| 1391 web_contents_->SetAccessibilityMode( | 1391 web_contents_->SetAccessibilityMode( |
| 1392 accessibility_state->accessibility_mode()); | 1392 accessibility_state->accessibility_mode()); |
| 1393 } | 1393 } |
| 1394 } | 1394 } |
| 1395 } | 1395 } |
| 1396 | 1396 |
| 1397 void ContentViewCoreImpl::SendOrientationChangeEventInternal() { | 1397 void ContentViewCoreImpl::SendOrientationChangeEventInternal() { |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1617 return ScopedJavaLocalRef<jobject>(); | 1617 return ScopedJavaLocalRef<jobject>(); |
| 1618 | 1618 |
| 1619 return view->GetJavaObject(); | 1619 return view->GetJavaObject(); |
| 1620 } | 1620 } |
| 1621 | 1621 |
| 1622 bool RegisterContentViewCore(JNIEnv* env) { | 1622 bool RegisterContentViewCore(JNIEnv* env) { |
| 1623 return RegisterNativesImpl(env); | 1623 return RegisterNativesImpl(env); |
| 1624 } | 1624 } |
| 1625 | 1625 |
| 1626 } // namespace content | 1626 } // namespace content |
| OLD | NEW |