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

Side by Side Diff: content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java

Issue 2178973004: DialogSurfaceManager implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 package org.chromium.content.app; 5 package org.chromium.content.app;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.content.Intent; 8 import android.content.Intent;
9 import android.graphics.SurfaceTexture; 9 import android.graphics.SurfaceTexture;
10 import android.os.Binder; 10 import android.os.Binder;
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 390
391 try { 391 try {
392 SurfaceWrapper wrapper = mCallback.getViewSurface(surfaceId); 392 SurfaceWrapper wrapper = mCallback.getViewSurface(surfaceId);
393 return wrapper != null ? wrapper.getSurface() : null; 393 return wrapper != null ? wrapper.getSurface() : null;
394 } catch (RemoteException e) { 394 } catch (RemoteException e) {
395 Log.e(TAG, "Unable to call getViewSurface: %s", e); 395 Log.e(TAG, "Unable to call getViewSurface: %s", e);
396 return null; 396 return null;
397 } 397 }
398 } 398 }
399 399
400 @SuppressWarnings("unused")
401 @CalledByNative
402 private IBinder getAndroidOverlayProvider() {
403 try {
boliu 2017/02/08 00:01:58 all the other calls have a null check for mCallbac
404 return mCallback.getAndroidOverlayProvider();
405 } catch (RemoteException e) {
406 Log.e(TAG, "Unable to call getAndroidOverlayProvider: %s", e);
407 return null;
408 }
409 }
410
400 /** 411 /**
401 * Helper for registering FileDescriptorInfo objects with GlobalFileDescript ors. 412 * Helper for registering FileDescriptorInfo objects with GlobalFileDescript ors.
402 * This includes the IPC channel, the crash dump signals and resource relate d 413 * This includes the IPC channel, the crash dump signals and resource relate d
403 * files. 414 * files.
404 */ 415 */
405 private static native void nativeRegisterGlobalFileDescriptor( 416 private static native void nativeRegisterGlobalFileDescriptor(
406 int id, int fd, long offset, long size); 417 int id, int fd, long offset, long size);
407 418
408 /** 419 /**
409 * The main entry point for a child process. This should be called from a ne w thread since 420 * The main entry point for a child process. This should be called from a ne w thread since
410 * it will not return until the child process exits. See child_process_servi ce.{h,cc} 421 * it will not return until the child process exits. See child_process_servi ce.{h,cc}
411 * 422 *
412 * @param serviceImpl The current ChildProcessServiceImpl object. 423 * @param serviceImpl The current ChildProcessServiceImpl object.
413 * renderer. 424 * renderer.
414 */ 425 */
415 private static native void nativeInitChildProcessImpl( 426 private static native void nativeInitChildProcessImpl(
416 ChildProcessServiceImpl serviceImpl, int cpuCount, long cpuFeatures) ; 427 ChildProcessServiceImpl serviceImpl, int cpuCount, long cpuFeatures) ;
417 428
418 /** 429 /**
419 * Force the child process to exit. 430 * Force the child process to exit.
420 */ 431 */
421 private static native void nativeExitChildProcess(); 432 private static native void nativeExitChildProcess();
422 433
423 private native void nativeShutdownMainThread(); 434 private native void nativeShutdownMainThread();
424 } 435 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698