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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_FIND_BAR_FIND_MATCH_RECTS_DETAILS_H_
6 #define CHROME_BROWSER_UI_FIND_BAR_FIND_MATCH_RECTS_DETAILS_H_
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11 #include "ui/gfx/rect_f.h"
12
13 // Holds the result details of a RequestFindMatchRects reply.
14 class FindMatchRectsDetails {
15 public:
16 FindMatchRectsDetails();
17
18 FindMatchRectsDetails(int version,
19 const std::vector<gfx::RectF>& rects,
20 const gfx::RectF& active_rect);
21
22 ~FindMatchRectsDetails();
23
24 int version() const { return version_; }
25
26 const std::vector<gfx::RectF>& rects() const { return rects_; }
27
28 const gfx::RectF& active_rect() const { return active_rect_; }
29
30 private:
31 // The version of the rects in this structure.
32 int version_;
33
34 // The rects of the find matches in find-in-page coordinates.
35 std::vector<gfx::RectF> rects_;
36
37 // The rect of the active find match in find-in-page coordinates.
38 gfx::RectF active_rect_;
39 };
40
41 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_MATCH_RECTS_DETAILS_H_
OLDNEW
« 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