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

Side by Side Diff: chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm

Issue 7149013: Remove most of the remaining test dependencies (other than chrome/test). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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) 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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/mac/mac_util.h" 7 #include "base/mac/mac_util.h"
8 #include "base/sys_string_conversions.h" 8 #include "base/sys_string_conversions.h"
9 #include "chrome/browser/ui/cocoa/browser_window_controller.h" 9 #include "chrome/browser/ui/cocoa/browser_window_controller.h"
10 #import "chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.h" 10 #import "chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.h"
11 #import "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h" 11 #import "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h"
12 #import "chrome/browser/ui/cocoa/find_bar/find_bar_text_field.h" 12 #import "chrome/browser/ui/cocoa/find_bar/find_bar_text_field.h"
13 #import "chrome/browser/ui/cocoa/find_bar/find_bar_text_field_cell.h" 13 #import "chrome/browser/ui/cocoa/find_bar/find_bar_text_field_cell.h"
14 #import "chrome/browser/ui/cocoa/find_pasteboard.h"
15 #import "chrome/browser/ui/cocoa/focus_tracker.h" 14 #import "chrome/browser/ui/cocoa/focus_tracker.h"
16 #import "chrome/browser/ui/cocoa/nsview_additions.h" 15 #import "chrome/browser/ui/cocoa/nsview_additions.h"
17 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" 16 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h"
18 #include "chrome/browser/ui/find_bar/find_bar_controller.h" 17 #include "chrome/browser/ui/find_bar/find_bar_controller.h"
19 #include "chrome/browser/ui/find_bar/find_tab_helper.h" 18 #include "chrome/browser/ui/find_bar/find_tab_helper.h"
20 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 19 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
20 #import "content/browser/find_pasteboard.h"
21 #include "content/browser/renderer_host/render_view_host.h" 21 #include "content/browser/renderer_host/render_view_host.h"
22 #include "content/browser/tab_contents/tab_contents.h" 22 #include "content/browser/tab_contents/tab_contents.h"
23 #include "content/browser/tab_contents/tab_contents_view.h" 23 #include "content/browser/tab_contents/tab_contents_view.h"
24 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" 24 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
25 25
26 const float kFindBarOpenDuration = 0.2; 26 const float kFindBarOpenDuration = 0.2;
27 const float kFindBarCloseDuration = 0.15; 27 const float kFindBarCloseDuration = 0.15;
28 const float kFindBarMoveDuration = 0.15; 28 const float kFindBarMoveDuration = 0.15;
29 const float kRightEdgeOffset = 25; 29 const float kRightEdgeOffset = 25;
30 30
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 } 525 }
526 } 526 }
527 527
528 // Has to happen after |ClearResults()| above. 528 // Has to happen after |ClearResults()| above.
529 BOOL buttonsEnabled = [text length] > 0 ? YES : NO; 529 BOOL buttonsEnabled = [text length] > 0 ? YES : NO;
530 [previousButton_ setEnabled:buttonsEnabled]; 530 [previousButton_ setEnabled:buttonsEnabled];
531 [nextButton_ setEnabled:buttonsEnabled]; 531 [nextButton_ setEnabled:buttonsEnabled];
532 } 532 }
533 533
534 @end 534 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698