| 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.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; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 @CalledByNative | 25 @CalledByNative |
| 26 public void onFindMatchRectsAvailable(FindMatchRectsDetails result) { | 26 public void onFindMatchRectsAvailable(FindMatchRectsDetails result) { |
| 27 } | 27 } |
| 28 | 28 |
| 29 @CalledByNative | 29 @CalledByNative |
| 30 public boolean addNewContents(long nativeSourceWebContents, long nativeWebCo
ntents, | 30 public boolean addNewContents(long nativeSourceWebContents, long nativeWebCo
ntents, |
| 31 int disposition, Rect initialPosition, boolean userGesture) { | 31 int disposition, Rect initialPosition, boolean userGesture) { |
| 32 return false; | 32 return false; |
| 33 } | 33 } |
| 34 | 34 |
| 35 @CalledByNative | |
| 36 public void webContentsCreated(long sourceWebContents, long openerRenderFram
eId, | |
| 37 String frameName, String targetUrl, long newWebContents) { | |
| 38 } | |
| 39 | |
| 40 // 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 |
| 41 @CalledByNative | 36 @CalledByNative |
| 42 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) { |
| 43 return new Rect(x, y, right, bottom); | 38 return new Rect(x, y, right, bottom); |
| 44 } | 39 } |
| 45 | 40 |
| 46 @CalledByNative | 41 @CalledByNative |
| 47 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
) { |
| 48 return new RectF(x, y, right, bottom); | 43 return new RectF(x, y, right, bottom); |
| 49 } | 44 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 61 int version, int numRects, RectF activeRect) { | 56 int version, int numRects, RectF activeRect) { |
| 62 return new FindMatchRectsDetails(version, numRects, activeRect); | 57 return new FindMatchRectsDetails(version, numRects, activeRect); |
| 63 } | 58 } |
| 64 | 59 |
| 65 @CalledByNative | 60 @CalledByNative |
| 66 private static void setMatchRectByIndex( | 61 private static void setMatchRectByIndex( |
| 67 FindMatchRectsDetails findMatchRectsDetails, int index, RectF rect)
{ | 62 FindMatchRectsDetails findMatchRectsDetails, int index, RectF rect)
{ |
| 68 findMatchRectsDetails.rects[index] = rect; | 63 findMatchRectsDetails.rects[index] = rect; |
| 69 } | 64 } |
| 70 } | 65 } |
| OLD | NEW |