OLD | NEW |
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 package org.chromium.android_webview; | 5 package org.chromium.android_webview; |
6 | 6 |
7 import android.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
8 import android.app.Activity; | 8 import android.app.Activity; |
9 import android.content.ActivityNotFoundException; | 9 import android.content.ActivityNotFoundException; |
10 import android.content.Context; | 10 import android.content.Context; |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 // | 366 // |
367 public abstract void onFindResultReceived(int activeMatchOrdinal, int number
OfMatches, | 367 public abstract void onFindResultReceived(int activeMatchOrdinal, int number
OfMatches, |
368 boolean isDoneCounting); | 368 boolean isDoneCounting); |
369 | 369 |
370 /** | 370 /** |
371 * Called whenever there is a new content picture available. | 371 * Called whenever there is a new content picture available. |
372 * @param picture New picture. | 372 * @param picture New picture. |
373 */ | 373 */ |
374 public abstract void onNewPicture(Picture picture); | 374 public abstract void onNewPicture(Picture picture); |
375 | 375 |
376 public abstract WebActionMode startActionMode( | 376 /** |
377 View view, ActionHandler actionHandler, boolean floating); | 377 * TODO(jdduke): Remove when all embedders have been updated. |
| 378 */ |
| 379 public WebActionMode startActionMode(View view, ActionHandler actionHandler,
boolean floating) { |
| 380 return null; |
| 381 } |
378 | 382 |
379 public abstract boolean supportsFloatingActionMode(); | 383 /** |
| 384 * TODO(jdduke): Remove when all embedders have been updated. |
| 385 */ |
| 386 public boolean supportsFloatingActionMode() { |
| 387 return false; |
| 388 } |
380 | 389 |
381 public void updateTitle(String title, boolean forceNotification) { | 390 public void updateTitle(String title, boolean forceNotification) { |
382 if (!forceNotification && TextUtils.equals(mTitle, title)) return; | 391 if (!forceNotification && TextUtils.equals(mTitle, title)) return; |
383 mTitle = title; | 392 mTitle = title; |
384 mCallbackHelper.postOnReceivedTitle(mTitle); | 393 mCallbackHelper.postOnReceivedTitle(mTitle); |
385 } | 394 } |
386 } | 395 } |
OLD | NEW |