Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: chrome/browser/ui/find_bar/find_tab_helper.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/find_bar/find_bar_state.h ('k') | chrome/browser/ui/hung_plugin_tab_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/ui/find_bar/find_bar_controller.h" 10 #include "chrome/browser/ui/find_bar/find_bar_controller.h"
11 #include "chrome/browser/ui/find_bar/find_notification_details.h" 11 #include "chrome/browser/ui/find_bar/find_notification_details.h"
12 #include "content/public/browser/web_contents_observer.h" 12 #include "content/public/browser/web_contents_observer.h"
13 #include "content/public/browser/web_contents_user_data.h" 13 #include "content/public/browser/web_contents_user_data.h"
14 #include "ui/gfx/range/range.h" 14 #include "ui/gfx/range/range.h"
15 15
16 namespace gfx {
17 class RectF;
18 }
19
20 // Per-tab find manager. Handles dealing with the life cycle of find sessions. 16 // Per-tab find manager. Handles dealing with the life cycle of find sessions.
21 class FindTabHelper : public content::WebContentsObserver, 17 class FindTabHelper : public content::WebContentsObserver,
22 public content::WebContentsUserData<FindTabHelper> { 18 public content::WebContentsUserData<FindTabHelper> {
23 public: 19 public:
24 ~FindTabHelper() override; 20 ~FindTabHelper() override;
25 21
26 // Starts the Find operation by calling StartFinding on the Tab. This function 22 // Starts the Find operation by calling StartFinding on the Tab. This function
27 // can be called from the outside as a result of hot-keys, so it uses the 23 // can be called from the outside as a result of hot-keys, so it uses the
28 // last remembered search string as specified with set_find_string(). This 24 // last remembered search string as specified with set_find_string(). This
29 // function does not block while a search is in progress. The controller will 25 // function does not block while a search is in progress. The controller will
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 128
133 // The last find result. This object contains details about the number of 129 // The last find result. This object contains details about the number of
134 // matches, the find selection rectangle, etc. The UI can access this 130 // matches, the find selection rectangle, etc. The UI can access this
135 // information to build its presentation. 131 // information to build its presentation.
136 FindNotificationDetails last_search_result_; 132 FindNotificationDetails last_search_result_;
137 133
138 DISALLOW_COPY_AND_ASSIGN(FindTabHelper); 134 DISALLOW_COPY_AND_ASSIGN(FindTabHelper);
139 }; 135 };
140 136
141 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_TAB_HELPER_H_ 137 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/find_bar/find_bar_state.h ('k') | chrome/browser/ui/hung_plugin_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698