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

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

Issue 1144333004: Make WebView work for external displays (over Presentations). Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix another context-use through making WindowAndroid::GetJavaContext public Created 5 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
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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698