| 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 "app/l10n_util.h" |
| 7 #include "base/mac_util.h" | 8 #include "base/mac_util.h" |
| 8 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
| 9 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
| 10 #include "chrome/browser/find_bar_controller.h" | 11 #include "chrome/browser/find_bar_controller.h" |
| 11 #include "chrome/browser/cocoa/browser_window_cocoa.h" | 12 #include "chrome/browser/cocoa/browser_window_cocoa.h" |
| 12 #import "chrome/browser/cocoa/find_bar_cocoa_controller.h" | 13 #import "chrome/browser/cocoa/find_bar_cocoa_controller.h" |
| 13 #import "chrome/browser/cocoa/find_bar_bridge.h" | 14 #import "chrome/browser/cocoa/find_bar_bridge.h" |
| 14 #import "chrome/browser/cocoa/tab_strip_controller.h" | 15 #import "chrome/browser/cocoa/tab_strip_controller.h" |
| 15 #include "chrome/browser/tab_contents/tab_contents.h" | 16 #include "chrome/browser/tab_contents/tab_contents.h" |
| 16 #include "chrome/common/l10n_util.h" | |
| 17 | 17 |
| 18 @implementation FindBarCocoaController | 18 @implementation FindBarCocoaController |
| 19 | 19 |
| 20 - (id)init { | 20 - (id)init { |
| 21 if ((self = [super initWithNibName:@"FindBar" | 21 if ((self = [super initWithNibName:@"FindBar" |
| 22 bundle:mac_util::MainAppBundle()])) { | 22 bundle:mac_util::MainAppBundle()])) { |
| 23 } | 23 } |
| 24 return self; | 24 return self; |
| 25 } | 25 } |
| 26 | 26 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // area. | 153 // area. |
| 154 [resultsLabel_ setStringValue:@""]; | 154 [resultsLabel_ setStringValue:@""]; |
| 155 } | 155 } |
| 156 } | 156 } |
| 157 | 157 |
| 158 - (BOOL)isFindBarVisible { | 158 - (BOOL)isFindBarVisible { |
| 159 return [[self view] isHidden] ? NO : YES; | 159 return [[self view] isHidden] ? NO : YES; |
| 160 } | 160 } |
| 161 | 161 |
| 162 @end | 162 @end |
| OLD | NEW |