| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "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/stl_util-inl.h" | 9 #include "base/stl_util-inl.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 SkBitmap LocationBarViewMac::GetFavIcon() const { | 360 SkBitmap LocationBarViewMac::GetFavIcon() const { |
| 361 NOTIMPLEMENTED(); | 361 NOTIMPLEMENTED(); |
| 362 return SkBitmap(); | 362 return SkBitmap(); |
| 363 } | 363 } |
| 364 | 364 |
| 365 std::wstring LocationBarViewMac::GetTitle() const { | 365 std::wstring LocationBarViewMac::GetTitle() const { |
| 366 NOTIMPLEMENTED(); | 366 NOTIMPLEMENTED(); |
| 367 return std::wstring(); | 367 return std::wstring(); |
| 368 } | 368 } |
| 369 | 369 |
| 370 bool LocationBarViewMac::IsKeywordHintVisible() const { |
| 371 return keyword_hint_decoration_->IsVisible(); |
| 372 } |
| 373 |
| 370 void LocationBarViewMac::Revert() { | 374 void LocationBarViewMac::Revert() { |
| 371 edit_view_->RevertAll(); | 375 edit_view_->RevertAll(); |
| 372 } | 376 } |
| 373 | 377 |
| 374 // TODO(pamg): Change all these, here and for other platforms, to size_t. | 378 // TODO(pamg): Change all these, here and for other platforms, to size_t. |
| 375 int LocationBarViewMac::PageActionCount() { | 379 int LocationBarViewMac::PageActionCount() { |
| 376 return static_cast<int>(page_action_decorations_.size()); | 380 return static_cast<int>(page_action_decorations_.size()); |
| 377 } | 381 } |
| 378 | 382 |
| 379 int LocationBarViewMac::PageActionVisibleCount() { | 383 int LocationBarViewMac::PageActionVisibleCount() { |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 | 690 |
| 687 // These need to change anytime the layout changes. | 691 // These need to change anytime the layout changes. |
| 688 // TODO(shess): Anytime the field editor might have changed, the | 692 // TODO(shess): Anytime the field editor might have changed, the |
| 689 // cursor rects almost certainly should have changed. The tooltips | 693 // cursor rects almost certainly should have changed. The tooltips |
| 690 // might change even when the rects don't change. | 694 // might change even when the rects don't change. |
| 691 [field_ resetFieldEditorFrameIfNeeded]; | 695 [field_ resetFieldEditorFrameIfNeeded]; |
| 692 [field_ updateCursorAndToolTipRects]; | 696 [field_ updateCursorAndToolTipRects]; |
| 693 | 697 |
| 694 [field_ setNeedsDisplay:YES]; | 698 [field_ setNeedsDisplay:YES]; |
| 695 } | 699 } |
| OLD | NEW |