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

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

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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
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 "chrome/browser/ui/find_bar/find_bar_controller.h" 8 #include "chrome/browser/ui/find_bar/find_bar_controller.h"
9 #include "chrome/browser/ui/find_bar/find_notification_details.h" 9 #include "chrome/browser/ui/find_bar/find_notification_details.h"
10 #include "content/public/browser/web_contents_observer.h" 10 #include "content/public/browser/web_contents_observer.h"
11 #include "content/public/browser/web_contents_user_data.h" 11 #include "content/public/browser/web_contents_user_data.h"
12 #include "ui/gfx/range/range.h" 12 #include "ui/gfx/range/range.h"
13 13
14 namespace gfx { 14 namespace gfx {
15 class RectF; 15 class RectF;
16 } 16 }
17 17
18 // Per-tab find manager. Handles dealing with the life cycle of find sessions. 18 // Per-tab find manager. Handles dealing with the life cycle of find sessions.
19 class FindTabHelper : public content::WebContentsObserver, 19 class FindTabHelper : public content::WebContentsObserver,
20 public content::WebContentsUserData<FindTabHelper> { 20 public content::WebContentsUserData<FindTabHelper> {
21 public: 21 public:
22 virtual ~FindTabHelper(); 22 ~FindTabHelper() override;
23 23
24 // Starts the Find operation by calling StartFinding on the Tab. This function 24 // Starts the Find operation by calling StartFinding on the Tab. This function
25 // can be called from the outside as a result of hot-keys, so it uses the 25 // can be called from the outside as a result of hot-keys, so it uses the
26 // last remembered search string as specified with set_find_string(). This 26 // last remembered search string as specified with set_find_string(). This
27 // function does not block while a search is in progress. The controller will 27 // function does not block while a search is in progress. The controller will
28 // receive the results through the notification mechanism. See Observe(...) 28 // receive the results through the notification mechanism. See Observe(...)
29 // for details. 29 // for details.
30 void StartFinding(base::string16 search_string, 30 void StartFinding(base::string16 search_string,
31 bool forward_direction, 31 bool forward_direction,
32 bool case_sensitive); 32 bool case_sensitive);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 // The last find result. This object contains details about the number of 123 // The last find result. This object contains details about the number of
124 // matches, the find selection rectangle, etc. The UI can access this 124 // matches, the find selection rectangle, etc. The UI can access this
125 // information to build its presentation. 125 // information to build its presentation.
126 FindNotificationDetails last_search_result_; 126 FindNotificationDetails last_search_result_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(FindTabHelper); 128 DISALLOW_COPY_AND_ASSIGN(FindTabHelper);
129 }; 129 };
130 130
131 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_TAB_HELPER_H_ 131 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_TAB_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698