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

Unified Diff: chrome/browser/ui/find_bar/find_match_rects_details.h

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/browser/ui/find_bar/find_match_rects_details.h
diff --git a/chrome/browser/ui/find_bar/find_match_rects_details.h b/chrome/browser/ui/find_bar/find_match_rects_details.h
new file mode 100644
index 0000000000000000000000000000000000000000..98c03809466c9801c6e8e1a273aba8f665e828e1
--- /dev/null
+++ b/chrome/browser/ui/find_bar/find_match_rects_details.h
@@ -0,0 +1,41 @@
+// 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.
+
+#ifndef CHROME_BROWSER_UI_FIND_BAR_FIND_MATCH_RECTS_DETAILS_H_
+#define CHROME_BROWSER_UI_FIND_BAR_FIND_MATCH_RECTS_DETAILS_H_
+
+#include <vector>
+
+#include "base/basictypes.h"
+#include "ui/gfx/rect_f.h"
+
+// Holds the result details of a RequestFindMatchRects reply.
+class FindMatchRectsDetails {
+ public:
+ FindMatchRectsDetails();
+
+ FindMatchRectsDetails(int version,
+ const std::vector<gfx::RectF>& rects,
+ const gfx::RectF& active_rect);
+
+ ~FindMatchRectsDetails();
+
+ int version() const { return version_; }
+
+ const std::vector<gfx::RectF>& rects() const { return rects_; }
+
+ const gfx::RectF& active_rect() const { return active_rect_; }
+
+ private:
+ // The version of the rects in this structure.
+ int version_;
+
+ // The rects of the find matches in find-in-page coordinates.
+ std::vector<gfx::RectF> rects_;
+
+ // The rect of the active find match in find-in-page coordinates.
+ gfx::RectF active_rect_;
+};
+
+#endif // CHROME_BROWSER_UI_FIND_BAR_FIND_MATCH_RECTS_DETAILS_H_
« no previous file with comments | « chrome/browser/android/chrome_web_contents_delegate_android.cc ('k') | chrome/browser/ui/find_bar/find_match_rects_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698