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 "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1330 } else { | 1330 } else { |
1331 accessibility_state->ResetAccessibilityMode(); | 1331 accessibility_state->ResetAccessibilityMode(); |
1332 if (web_contents_) { | 1332 if (web_contents_) { |
1333 web_contents_->SetAccessibilityMode( | 1333 web_contents_->SetAccessibilityMode( |
1334 accessibility_state->accessibility_mode()); | 1334 accessibility_state->accessibility_mode()); |
1335 } | 1335 } |
1336 } | 1336 } |
1337 } | 1337 } |
1338 | 1338 |
1339 void ContentViewCoreImpl::SendOrientationChangeEventInternal() { | 1339 void ContentViewCoreImpl::SendOrientationChangeEventInternal() { |
| 1340 ui::WindowAndroid* windowAndroid = GetWindowAndroid(); |
| 1341 if (windowAndroid) |
| 1342 windowAndroid->UpdateDeviceDisplayInfo(); |
| 1343 |
1340 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); | 1344 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); |
1341 if (rwhv) | 1345 if (rwhv) |
1342 rwhv->UpdateScreenInfo(GetViewAndroid()); | 1346 rwhv->UpdateScreenInfo(GetViewAndroid()); |
1343 | 1347 |
1344 static_cast<WebContentsImpl*>(web_contents())-> | 1348 static_cast<WebContentsImpl*>(web_contents())-> |
1345 screen_orientation_dispatcher_host()->OnOrientationChange(); | 1349 screen_orientation_dispatcher_host()->OnOrientationChange(); |
1346 } | 1350 } |
1347 | 1351 |
1348 void ContentViewCoreImpl::ExtractSmartClipData(JNIEnv* env, | 1352 void ContentViewCoreImpl::ExtractSmartClipData(JNIEnv* env, |
1349 jobject obj, | 1353 jobject obj, |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1495 return NULL; | 1499 return NULL; |
1496 | 1500 |
1497 return view->GetJavaObject().Release(); | 1501 return view->GetJavaObject().Release(); |
1498 } | 1502 } |
1499 | 1503 |
1500 bool RegisterContentViewCore(JNIEnv* env) { | 1504 bool RegisterContentViewCore(JNIEnv* env) { |
1501 return RegisterNativesImpl(env); | 1505 return RegisterNativesImpl(env); |
1502 } | 1506 } |
1503 | 1507 |
1504 } // namespace content | 1508 } // namespace content |
OLD | NEW |