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 "chrome/browser/cocoa/location_bar_view_mac.h" | 5 #import "chrome/browser/cocoa/location_bar_view_mac.h" |
6 | 6 |
7 #include "app/l10n_util_mac.h" | 7 #include "app/l10n_util_mac.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/sys_string_conversions.h" | 10 #include "base/sys_string_conversions.h" |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 edit_view_->model()->is_keyword_hint(), | 258 edit_view_->model()->is_keyword_hint(), |
259 edit_view_->model()->show_search_hint(), | 259 edit_view_->model()->show_search_hint(), |
260 GetTabButtonImage()); | 260 GetTabButtonImage()); |
261 } | 261 } |
262 | 262 |
263 void LocationBarViewMac::OnInputInProgress(bool in_progress) { | 263 void LocationBarViewMac::OnInputInProgress(bool in_progress) { |
264 toolbar_model_->set_input_in_progress(in_progress); | 264 toolbar_model_->set_input_in_progress(in_progress); |
265 Update(NULL, false); | 265 Update(NULL, false); |
266 } | 266 } |
267 | 267 |
| 268 void LocationBarViewMac::OnKillFocus() { |
| 269 } |
| 270 |
268 void LocationBarViewMac::OnSetFocus() { | 271 void LocationBarViewMac::OnSetFocus() { |
269 } | 272 } |
270 | 273 |
271 SkBitmap LocationBarViewMac::GetFavIcon() const { | 274 SkBitmap LocationBarViewMac::GetFavIcon() const { |
272 NOTIMPLEMENTED(); | 275 NOTIMPLEMENTED(); |
273 return SkBitmap(); | 276 return SkBitmap(); |
274 } | 277 } |
275 | 278 |
276 std::wstring LocationBarViewMac::GetTitle() const { | 279 std::wstring LocationBarViewMac::GetTitle() const { |
277 NOTIMPLEMENTED(); | 280 NOTIMPLEMENTED(); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 break; | 336 break; |
334 case ToolbarModel::NO_ICON: | 337 case ToolbarModel::NO_ICON: |
335 [cell setHintIcon:nil label:nil color:nil]; | 338 [cell setHintIcon:nil label:nil color:nil]; |
336 break; | 339 break; |
337 default: | 340 default: |
338 NOTREACHED(); | 341 NOTREACHED(); |
339 break; | 342 break; |
340 } | 343 } |
341 [field_ resetFieldEditorFrameIfNeeded]; | 344 [field_ resetFieldEditorFrameIfNeeded]; |
342 } | 345 } |
OLD | NEW |