| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_BROWSER_UI_FIND_BAR_FIND_NOTIFICATION_DETAILS_H_ | 5 #ifndef CHROME_BROWSER_UI_FIND_BAR_FIND_NOTIFICATION_DETAILS_H_ |
| 6 #define CHROME_BROWSER_UI_FIND_BAR_FIND_NOTIFICATION_DETAILS_H_ | 6 #define CHROME_BROWSER_UI_FIND_BAR_FIND_NOTIFICATION_DETAILS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
| 10 | 10 |
| 11 class FindNotificationDetails { | 11 class FindNotificationDetails { |
| 12 public: | 12 public: |
| 13 FindNotificationDetails(int request_id, | 13 FindNotificationDetails(int request_id, |
| 14 int number_of_matches, | 14 int number_of_matches, |
| 15 const gfx::Rect& selection_rect, | 15 const gfx::Rect& selection_rect, |
| 16 int active_match_ordinal, | 16 int active_match_ordinal, |
| 17 bool final_update) | 17 bool final_update) |
| 18 : request_id_(request_id), | 18 : request_id_(request_id), |
| 19 number_of_matches_(number_of_matches), | 19 number_of_matches_(number_of_matches), |
| (...skipping 21 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 int request_id_; // The find-in-page request whose results we're returning. | 43 int request_id_; // The find-in-page request whose results we're returning. |
| 44 int number_of_matches_; // How many matches were found. | 44 int number_of_matches_; // How many matches were found. |
| 45 gfx::Rect selection_rect_; // Where selection occurred (screen coordinate). | 45 gfx::Rect selection_rect_; // Where selection occurred (screen coordinate). |
| 46 int active_match_ordinal_; // The ordinal of the currently selected match. | 46 int active_match_ordinal_; // The ordinal of the currently selected match. |
| 47 bool final_update_; // Whether this is the last Find Result update. | 47 bool final_update_; // Whether this is the last Find Result update. |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_NOTIFICATION_DETAILS_H_ | 50 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_NOTIFICATION_DETAILS_H_ |
| OLD | NEW |