| OLD | NEW |
| 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 "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" | 5 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" |
| 6 | 6 |
| 7 #include "base/stl_util-inl.h" | 7 #include "base/stl_util-inl.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 | 281 |
| 282 string16 LocationBarViewMac::GetTitle() const { | 282 string16 LocationBarViewMac::GetTitle() const { |
| 283 NOTIMPLEMENTED(); | 283 NOTIMPLEMENTED(); |
| 284 return string16(); | 284 return string16(); |
| 285 } | 285 } |
| 286 | 286 |
| 287 InstantController* LocationBarViewMac::GetInstant() { | 287 InstantController* LocationBarViewMac::GetInstant() { |
| 288 return browser_->instant(); | 288 return browser_->instant(); |
| 289 } | 289 } |
| 290 | 290 |
| 291 TabContentsWrapper* LocationBarViewMac::GetTabContentsWrapper() { | 291 TabContentsWrapper* LocationBarViewMac::GetTabContentsWrapper() const { |
| 292 return browser_->GetSelectedTabContentsWrapper(); | 292 return browser_->GetSelectedTabContentsWrapper(); |
| 293 } | 293 } |
| 294 | 294 |
| 295 void LocationBarViewMac::Revert() { | 295 void LocationBarViewMac::Revert() { |
| 296 edit_view_->RevertAll(); | 296 edit_view_->RevertAll(); |
| 297 } | 297 } |
| 298 | 298 |
| 299 const AutocompleteEditView* LocationBarViewMac::location_entry() const { | 299 const AutocompleteEditView* LocationBarViewMac::location_entry() const { |
| 300 return edit_view_.get(); | 300 return edit_view_.get(); |
| 301 } | 301 } |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 | 623 |
| 624 // These need to change anytime the layout changes. | 624 // These need to change anytime the layout changes. |
| 625 // TODO(shess): Anytime the field editor might have changed, the | 625 // TODO(shess): Anytime the field editor might have changed, the |
| 626 // cursor rects almost certainly should have changed. The tooltips | 626 // cursor rects almost certainly should have changed. The tooltips |
| 627 // might change even when the rects don't change. | 627 // might change even when the rects don't change. |
| 628 [field_ resetFieldEditorFrameIfNeeded]; | 628 [field_ resetFieldEditorFrameIfNeeded]; |
| 629 [field_ updateCursorAndToolTipRects]; | 629 [field_ updateCursorAndToolTipRects]; |
| 630 | 630 |
| 631 [field_ setNeedsDisplay:YES]; | 631 [field_ setNeedsDisplay:YES]; |
| 632 } | 632 } |
| OLD | NEW |