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

Side by Side Diff: chrome/browser/ui/find_bar/find_bar_controller.cc

Issue 5875005: Cleanup: Remove unneeded includes of notification_service.h.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: put includes in right order Created 10 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 | Annotate | Revision Log
OLDNEW
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 #include "chrome/browser/ui/find_bar/find_bar_controller.h" 5 #include "chrome/browser/ui/find_bar/find_bar_controller.h"
6 6
7 #include <algorithm>
8
7 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
8 #include "build/build_config.h" 10 #include "build/build_config.h"
9 #include "chrome/browser/tab_contents/navigation_entry.h" 11 #include "chrome/browser/tab_contents/navigation_entry.h"
10 #include "chrome/browser/ui/find_bar/find_bar.h" 12 #include "chrome/browser/ui/find_bar/find_bar.h"
11 #include "chrome/browser/ui/find_bar/find_bar_state.h" 13 #include "chrome/browser/ui/find_bar/find_bar_state.h"
12 #include "chrome/common/notification_service.h"
13 #include "chrome/browser/tab_contents/tab_contents.h" 14 #include "chrome/browser/tab_contents/tab_contents.h"
15 #include "chrome/common/notification_details.h"
16 #include "chrome/common/notification_source.h"
14 #include "gfx/rect.h" 17 #include "gfx/rect.h"
15 18
16 // The minimum space between the FindInPage window and the search result. 19 // The minimum space between the FindInPage window and the search result.
17 static const int kMinFindWndDistanceFromSelection = 5; 20 static const int kMinFindWndDistanceFromSelection = 5;
18 21
19 FindBarController::FindBarController(FindBar* find_bar) 22 FindBarController::FindBarController(FindBar* find_bar)
20 : find_bar_(find_bar), 23 : find_bar_(find_bar),
21 tab_contents_(NULL), 24 tab_contents_(NULL),
22 last_reported_matchcount_(0) { 25 last_reported_matchcount_(0) {
23 } 26 }
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // shown it is showing the right state for this tab. We update the find text 219 // shown it is showing the right state for this tab. We update the find text
217 // _first_ since the FindBarView checks its emptiness to see if it should 220 // _first_ since the FindBarView checks its emptiness to see if it should
218 // clear the result count display when there's nothing in the box. 221 // clear the result count display when there's nothing in the box.
219 find_bar_->SetFindText(find_string); 222 find_bar_->SetFindText(find_string);
220 #else 223 #else
221 // Having a per-tab find_string is not compatible with OS X's find pasteboard, 224 // Having a per-tab find_string is not compatible with OS X's find pasteboard,
222 // so we always have the same find text in all find bars. This is done through 225 // so we always have the same find text in all find bars. This is done through
223 // the find pasteboard mechanism, so don't set the text here. 226 // the find pasteboard mechanism, so don't set the text here.
224 #endif 227 #endif
225 } 228 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_gtk.cc ('k') | chrome/browser/ui/login/login_prompt_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698