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