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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeWebContentsDelegateAndroid.java

Issue 23264020: Move Android to use new Popup Blocker API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added NOTIMPLEMENTED Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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.chrome.browser; 5 package org.chromium.chrome.browser;
6 6
7 import android.graphics.Rect; 7 import android.graphics.Rect;
8 import android.graphics.RectF; 8 import android.graphics.RectF;
9 9
10 import org.chromium.base.CalledByNative; 10 import org.chromium.base.CalledByNative;
11 import org.chromium.components.web_contents_delegate_android.WebContentsDelegate Android; 11 import org.chromium.components.web_contents_delegate_android.WebContentsDelegate Android;
12 12
13 /** 13 /**
14 * Chromium Android specific WebContentsDelegate. 14 * Chromium Android specific WebContentsDelegate.
15 * This file is the Java version of the native class of the same name. 15 * This file is the Java version of the native class of the same name.
16 * It should contain empty WebContentsDelegate methods to be implemented by the embedder. 16 * It should contain empty WebContentsDelegate methods to be implemented by the embedder.
17 * These methods belong to the Chromium Android port but not to WebView. 17 * These methods belong to the Chromium Android port but not to WebView.
18 */ 18 */
19 public class ChromeWebContentsDelegateAndroid extends WebContentsDelegateAndroid { 19 public class ChromeWebContentsDelegateAndroid extends WebContentsDelegateAndroid {
20 20
21 @CalledByNative 21 @CalledByNative
22 public void onFindResultAvailable(FindNotificationDetails result) { 22 public void onFindResultAvailable(FindNotificationDetails result) {
23 } 23 }
24 24
25 @CalledByNative 25 @CalledByNative
26 public void onFindMatchRectsAvailable(FindMatchRectsDetails result) { 26 public void onFindMatchRectsAvailable(FindMatchRectsDetails result) {
27 } 27 }
28 28
29 @CalledByNative
30 public boolean addNewContents(int nativeSourceWebContents, int nativeWebCont ents,
31 int disposition, Rect initialPosition, boolean userGesture) {
32 return false;
33 }
34
29 // Helper functions used to create types that are part of the public interfa ce 35 // Helper functions used to create types that are part of the public interfa ce
30 @CalledByNative 36 @CalledByNative
31 private static Rect createRect(int x, int y, int right, int bottom) { 37 private static Rect createRect(int x, int y, int right, int bottom) {
32 return new Rect(x, y, right, bottom); 38 return new Rect(x, y, right, bottom);
33 } 39 }
34 40
35 @CalledByNative 41 @CalledByNative
36 private static RectF createRectF(float x, float y, float right, float bottom ) { 42 private static RectF createRectF(float x, float y, float right, float bottom ) {
37 return new RectF(x, y, right, bottom); 43 return new RectF(x, y, right, bottom);
38 } 44 }
(...skipping 11 matching lines...) Expand all
50 int version, int numRects, RectF activeRect) { 56 int version, int numRects, RectF activeRect) {
51 return new FindMatchRectsDetails(version, new RectF[numRects], activeRec t); 57 return new FindMatchRectsDetails(version, new RectF[numRects], activeRec t);
52 } 58 }
53 59
54 @CalledByNative 60 @CalledByNative
55 private static void setMatchRectByIndex( 61 private static void setMatchRectByIndex(
56 FindMatchRectsDetails findMatchRectsDetails, int index, RectF rect) { 62 FindMatchRectsDetails findMatchRectsDetails, int index, RectF rect) {
57 findMatchRectsDetails.rects[index] = rect; 63 findMatchRectsDetails.rects[index] = rect;
58 } 64 }
59 } 65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698