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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/FindMatchRectsDetails.java

Issue 10905058: Upstream the Android port find-in-page feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit fixes. Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/FindMatchRectsDetails.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/FindMatchRectsDetails.java b/chrome/android/java/src/org/chromium/chrome/browser/FindMatchRectsDetails.java
new file mode 100644
index 0000000000000000000000000000000000000000..a0575d327cc6c57f352ec1b181c1bb26e8ab93f4
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/FindMatchRectsDetails.java
@@ -0,0 +1,28 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.chrome.browser;
+
+import android.graphics.RectF;
+
+/**
+ * Java equivalent to the C++ FindMatchRectsDetails class
+ * defined in chrome/browser/ui/find_bar/find_match_rects_details.h
+ */
+public class FindMatchRectsDetails {
+ /** Version of the the rects in this result. */
+ public final int version;
+
+ /** Rects of the find matches in find-in-page coordinates. */
+ public final RectF[] rects;
+
+ /** Rect of the active match in find-in-page coordinates. */
+ public final RectF activeRect;
+
+ public FindMatchRectsDetails(int version, RectF[] rects, RectF activeRect) {
+ this.version = version;
+ this.rects = rects;
+ this.activeRect = activeRect;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698