| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BAR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_FIND_BAR_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 "content/common/notification_observer.h" |
| 12 #include "chrome/common/notification_registrar.h" | 12 #include "content/common/notification_registrar.h" |
| 13 | 13 |
| 14 namespace gfx { | 14 namespace gfx { |
| 15 class Rect; | 15 class Rect; |
| 16 } | 16 } |
| 17 | 17 |
| 18 class FindBar; | 18 class FindBar; |
| 19 class TabContentsWrapper; | 19 class TabContentsWrapper; |
| 20 | 20 |
| 21 class FindBarController : public NotificationObserver { | 21 class FindBarController : public NotificationObserver { |
| 22 public: | 22 public: |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 TabContentsWrapper* tab_contents_; | 80 TabContentsWrapper* tab_contents_; |
| 81 | 81 |
| 82 // 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 |
| 83 // UpdateFindBarForCurrentResult to avoid flickering. | 83 // UpdateFindBarForCurrentResult to avoid flickering. |
| 84 int last_reported_matchcount_; | 84 int last_reported_matchcount_; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(FindBarController); | 86 DISALLOW_COPY_AND_ASSIGN(FindBarController); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_CONTROLLER_H_ | 89 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_CONTROLLER_H_ |
| OLD | NEW |