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

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: Minor naming/comment fixes 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 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 if (windowAndroid)
boliu 2015/07/15 06:38:46 Don't need this null check. window_android_ is nev
gsennton 2015/07/15 19:26:20 Done.
1343 windowAndroid->UpdateDeviceDisplayInfo();
1344
1341 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); 1345 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid();
1342 if (rwhv) 1346 if (rwhv)
1343 rwhv->UpdateScreenInfo(GetViewAndroid()); 1347 rwhv->UpdateScreenInfo(GetViewAndroid());
1344 1348
1345 static_cast<WebContentsImpl*>(web_contents())-> 1349 static_cast<WebContentsImpl*>(web_contents())->
1346 screen_orientation_dispatcher_host()->OnOrientationChange(); 1350 screen_orientation_dispatcher_host()->OnOrientationChange();
1347 } 1351 }
1348 1352
1349 void ContentViewCoreImpl::ExtractSmartClipData(JNIEnv* env, 1353 void ContentViewCoreImpl::ExtractSmartClipData(JNIEnv* env,
1350 jobject obj, 1354 jobject obj,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 return NULL; 1500 return NULL;
1497 1501
1498 return view->GetJavaObject().Release(); 1502 return view->GetJavaObject().Release();
1499 } 1503 }
1500 1504
1501 bool RegisterContentViewCore(JNIEnv* env) { 1505 bool RegisterContentViewCore(JNIEnv* env) {
1502 return RegisterNativesImpl(env); 1506 return RegisterNativesImpl(env);
1503 } 1507 }
1504 1508
1505 } // namespace content 1509 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698