| OLD | NEW |
| (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_ |
| OLD | NEW |