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

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

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 | 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> 7 #include <algorithm>
8 8
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "chrome/browser/tab_contents/navigation_entry.h" 11 #include "chrome/browser/tab_contents/navigation_entry.h"
12 #include "chrome/browser/ui/find_bar/find_bar.h" 12 #include "chrome/browser/ui/find_bar/find_bar.h"
13 #include "chrome/browser/ui/find_bar/find_bar_state.h" 13 #include "chrome/browser/ui/find_bar/find_bar_state.h"
14 #include "chrome/browser/ui/find_bar/find_manager.h" 14 #include "chrome/browser/ui/find_bar/find_manager.h"
15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
16 #include "chrome/common/notification_details.h" 16 #include "chrome/common/notification_details.h"
17 #include "chrome/common/notification_source.h" 17 #include "chrome/common/notification_source.h"
18 #include "gfx/rect.h" 18 #include "ui/gfx/rect.h"
19 19
20 // The minimum space between the FindInPage window and the search result. 20 // The minimum space between the FindInPage window and the search result.
21 static const int kMinFindWndDistanceFromSelection = 5; 21 static const int kMinFindWndDistanceFromSelection = 5;
22 22
23 FindBarController::FindBarController(FindBar* find_bar) 23 FindBarController::FindBarController(FindBar* find_bar)
24 : find_bar_(find_bar), 24 : find_bar_(find_bar),
25 tab_contents_(NULL), 25 tab_contents_(NULL),
26 last_reported_matchcount_(0) { 26 last_reported_matchcount_(0) {
27 } 27 }
28 28
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // shown it is showing the right state for this tab. We update the find text 227 // shown it is showing the right state for this tab. We update the find text
228 // _first_ since the FindBarView checks its emptiness to see if it should 228 // _first_ since the FindBarView checks its emptiness to see if it should
229 // clear the result count display when there's nothing in the box. 229 // clear the result count display when there's nothing in the box.
230 find_bar_->SetFindText(find_string); 230 find_bar_->SetFindText(find_string);
231 #else 231 #else
232 // Having a per-tab find_string is not compatible with OS X's find pasteboard, 232 // Having a per-tab find_string is not compatible with OS X's find pasteboard,
233 // so we always have the same find text in all find bars. This is done through 233 // so we always have the same find text in all find bars. This is done through
234 // the find pasteboard mechanism, so don't set the text here. 234 // the find pasteboard mechanism, so don't set the text here.
235 #endif 235 #endif
236 } 236 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/find_bar/find_bar.h ('k') | chrome/browser/ui/find_bar/find_notification_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698