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 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1456 } else { | 1456 } else { |
1457 accessibility_state->ResetAccessibilityMode(); | 1457 accessibility_state->ResetAccessibilityMode(); |
1458 if (web_contents_) { | 1458 if (web_contents_) { |
1459 web_contents_->SetAccessibilityMode( | 1459 web_contents_->SetAccessibilityMode( |
1460 accessibility_state->accessibility_mode()); | 1460 accessibility_state->accessibility_mode()); |
1461 } | 1461 } |
1462 } | 1462 } |
1463 } | 1463 } |
1464 | 1464 |
1465 void ContentViewCoreImpl::SendOrientationChangeEventInternal() { | 1465 void ContentViewCoreImpl::SendOrientationChangeEventInternal() { |
1466 static_cast<WebContentsImpl*>(web_contents())-> | |
1467 screen_orientation_dispatcher_host()->OnOrientationChange(); | |
1468 | |
1469 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); | 1466 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); |
1470 if (rwhv) | 1467 if (rwhv) |
1471 rwhv->UpdateScreenInfo(GetViewAndroid()); | 1468 rwhv->UpdateScreenInfo(GetViewAndroid()); |
| 1469 |
| 1470 static_cast<WebContentsImpl*>(web_contents())-> |
| 1471 screen_orientation_dispatcher_host()->OnOrientationChange(); |
1472 } | 1472 } |
1473 | 1473 |
1474 void ContentViewCoreImpl::ExtractSmartClipData(JNIEnv* env, | 1474 void ContentViewCoreImpl::ExtractSmartClipData(JNIEnv* env, |
1475 jobject obj, | 1475 jobject obj, |
1476 jint x, | 1476 jint x, |
1477 jint y, | 1477 jint y, |
1478 jint width, | 1478 jint width, |
1479 jint height) { | 1479 jint height) { |
1480 gfx::Rect rect( | 1480 gfx::Rect rect( |
1481 static_cast<int>(x / dpi_scale()), | 1481 static_cast<int>(x / dpi_scale()), |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1592 reinterpret_cast<ui::WindowAndroid*>(window_android), | 1592 reinterpret_cast<ui::WindowAndroid*>(window_android), |
1593 retained_objects_set); | 1593 retained_objects_set); |
1594 return reinterpret_cast<intptr_t>(view); | 1594 return reinterpret_cast<intptr_t>(view); |
1595 } | 1595 } |
1596 | 1596 |
1597 bool RegisterContentViewCore(JNIEnv* env) { | 1597 bool RegisterContentViewCore(JNIEnv* env) { |
1598 return RegisterNativesImpl(env); | 1598 return RegisterNativesImpl(env); |
1599 } | 1599 } |
1600 | 1600 |
1601 } // namespace content | 1601 } // namespace content |
OLD | NEW |