예제 #1
0
 public void onReadyToRender() {
   mDelegate.installWebContentsObserver(getContentViewCore());
   for (Runnable task : pendingTasks) {
     task.run();
   }
   pendingTasks.clear();
 }
예제 #2
0
 private void postTask(Runnable task) {
   ContentViewCore contentView = this.getContentViewCore();
   if (contentView != null) {
     task.run();
   } else {
     pendingTasks.add(task);
   }
 }