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