OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_FIND_BAR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_FIND_BAR_CONTROLLER_H_ |
6 #define CHROME_BROWSER_FIND_BAR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_FIND_BAR_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| 11 #include "chrome/common/notification_observer.h" |
11 #include "chrome/common/notification_registrar.h" | 12 #include "chrome/common/notification_registrar.h" |
12 | 13 |
13 namespace gfx { | 14 namespace gfx { |
14 class Rect; | 15 class Rect; |
15 } | 16 } |
16 | 17 |
17 class FindBar; | 18 class FindBar; |
18 class TabContents; | 19 class TabContents; |
19 | 20 |
20 class FindBarController : public NotificationObserver { | 21 class FindBarController : public NotificationObserver { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 TabContents* tab_contents_; | 80 TabContents* tab_contents_; |
80 | 81 |
81 // The last match count we reported to the user. This is used by | 82 // The last match count we reported to the user. This is used by |
82 // UpdateFindBarForCurrentResult to avoid flickering. | 83 // UpdateFindBarForCurrentResult to avoid flickering. |
83 int last_reported_matchcount_; | 84 int last_reported_matchcount_; |
84 | 85 |
85 DISALLOW_COPY_AND_ASSIGN(FindBarController); | 86 DISALLOW_COPY_AND_ASSIGN(FindBarController); |
86 }; | 87 }; |
87 | 88 |
88 #endif // CHROME_BROWSER_FIND_BAR_CONTROLLER_H_ | 89 #endif // CHROME_BROWSER_FIND_BAR_CONTROLLER_H_ |
OLD | NEW |