| OLD | NEW |
| 1 // Copyright (c) 2011 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_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_FIND_BAR_FIND_TAB_HELPER_H_ |
| 6 #define CHROME_BROWSER_UI_FIND_BAR_FIND_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_UI_FIND_BAR_FIND_TAB_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/tab_contents/tab_contents_observer.h" | |
| 10 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 9 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
| 11 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 10 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
| 11 #include "content/browser/tab_contents/tab_contents_observer.h" |
| 12 | 12 |
| 13 // Per-tab find manager. Handles dealing with the life cycle of find sessions. | 13 // Per-tab find manager. Handles dealing with the life cycle of find sessions. |
| 14 class FindTabHelper : public TabContentsObserver { | 14 class FindTabHelper : public TabContentsObserver { |
| 15 public: | 15 public: |
| 16 explicit FindTabHelper(TabContents* tab_contents); | 16 explicit FindTabHelper(TabContents* tab_contents); |
| 17 virtual ~FindTabHelper(); | 17 virtual ~FindTabHelper(); |
| 18 | 18 |
| 19 // Starts the Find operation by calling StartFinding on the Tab. This function | 19 // Starts the Find operation by calling StartFinding on the Tab. This function |
| 20 // can be called from the outside as a result of hot-keys, so it uses the | 20 // can be called from the outside as a result of hot-keys, so it uses the |
| 21 // last remembered search string as specified with set_find_string(). This | 21 // last remembered search string as specified with set_find_string(). This |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 // The last find result. This object contains details about the number of | 101 // The last find result. This object contains details about the number of |
| 102 // matches, the find selection rectangle, etc. The UI can access this | 102 // matches, the find selection rectangle, etc. The UI can access this |
| 103 // information to build its presentation. | 103 // information to build its presentation. |
| 104 FindNotificationDetails last_search_result_; | 104 FindNotificationDetails last_search_result_; |
| 105 | 105 |
| 106 DISALLOW_COPY_AND_ASSIGN(FindTabHelper); | 106 DISALLOW_COPY_AND_ASSIGN(FindTabHelper); |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_TAB_HELPER_H_ | 109 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_TAB_HELPER_H_ |
| OLD | NEW |