OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/renderer_host/render_view_host.h" | 9 #include "chrome/browser/renderer_host/render_view_host.h" |
10 #include "chrome/browser/tab_contents/tab_contents.h" | 10 #include "chrome/browser/tab_contents/tab_contents.h" |
11 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h" | 11 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h" |
12 #import "chrome/browser/ui/cocoa/find_bar_cocoa_controller.h" | 12 #import "chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.h" |
13 #import "chrome/browser/ui/cocoa/find_bar_bridge.h" | 13 #import "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h" |
14 #import "chrome/browser/ui/cocoa/find_bar_text_field.h" | 14 #import "chrome/browser/ui/cocoa/find_bar/find_bar_text_field.h" |
15 #import "chrome/browser/ui/cocoa/find_bar_text_field_cell.h" | 15 #import "chrome/browser/ui/cocoa/find_bar/find_bar_text_field_cell.h" |
16 #import "chrome/browser/ui/cocoa/find_pasteboard.h" | 16 #import "chrome/browser/ui/cocoa/find_pasteboard.h" |
17 #import "chrome/browser/ui/cocoa/focus_tracker.h" | 17 #import "chrome/browser/ui/cocoa/focus_tracker.h" |
18 #import "chrome/browser/ui/cocoa/tab_strip_controller.h" | 18 #import "chrome/browser/ui/cocoa/tab_strip_controller.h" |
19 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 19 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
20 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" | 20 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" |
21 | 21 |
22 namespace { | 22 namespace { |
23 const float kFindBarOpenDuration = 0.2; | 23 const float kFindBarOpenDuration = 0.2; |
24 const float kFindBarCloseDuration = 0.15; | 24 const float kFindBarCloseDuration = 0.15; |
25 } | 25 } |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 } | 375 } |
376 } | 376 } |
377 | 377 |
378 // Has to happen after |ClearResults()| above. | 378 // Has to happen after |ClearResults()| above. |
379 BOOL buttonsEnabled = [text length] > 0 ? YES : NO; | 379 BOOL buttonsEnabled = [text length] > 0 ? YES : NO; |
380 [previousButton_ setEnabled:buttonsEnabled]; | 380 [previousButton_ setEnabled:buttonsEnabled]; |
381 [nextButton_ setEnabled:buttonsEnabled]; | 381 [nextButton_ setEnabled:buttonsEnabled]; |
382 } | 382 } |
383 | 383 |
384 @end | 384 @end |
OLD | NEW |