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

Side by Side Diff: content/browser/android/content_view_core_impl.cc

Issue 405983004: Notify RenderWidgetHostView before ScreenOrientationDispatcherHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698