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