| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 5 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1041 | 1041 |
| 1042 void LocationBarView::OnSetFocus() { | 1042 void LocationBarView::OnSetFocus() { |
| 1043 views::FocusManager* focus_manager = GetFocusManager(); | 1043 views::FocusManager* focus_manager = GetFocusManager(); |
| 1044 if (!focus_manager) { | 1044 if (!focus_manager) { |
| 1045 NOTREACHED(); | 1045 NOTREACHED(); |
| 1046 return; | 1046 return; |
| 1047 } | 1047 } |
| 1048 focus_manager->SetFocusedView(view_to_focus_); | 1048 focus_manager->SetFocusedView(view_to_focus_); |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 SkBitmap LocationBarView::GetFavicon() const { | 1051 gfx::Image LocationBarView::GetFavicon() const { |
| 1052 return delegate_->GetTabContents()->favicon_tab_helper()-> | 1052 return delegate_->GetTabContents()->favicon_tab_helper()-> |
| 1053 GetFavicon().AsBitmap(); | 1053 GetFavicon(); |
| 1054 } | 1054 } |
| 1055 | 1055 |
| 1056 string16 LocationBarView::GetTitle() const { | 1056 string16 LocationBarView::GetTitle() const { |
| 1057 return GetWebContentsFromDelegate(delegate_)->GetTitle(); | 1057 return GetWebContentsFromDelegate(delegate_)->GetTitle(); |
| 1058 } | 1058 } |
| 1059 | 1059 |
| 1060 InstantController* LocationBarView::GetInstant() { | 1060 InstantController* LocationBarView::GetInstant() { |
| 1061 return delegate_->GetInstant(); | 1061 return delegate_->GetInstant(); |
| 1062 } | 1062 } |
| 1063 | 1063 |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1500 } | 1500 } |
| 1501 | 1501 |
| 1502 void LocationBarView::CleanupFadeAnimation() { | 1502 void LocationBarView::CleanupFadeAnimation() { |
| 1503 // Since we're no longer animating we don't need our layer. | 1503 // Since we're no longer animating we don't need our layer. |
| 1504 SetPaintToLayer(false); | 1504 SetPaintToLayer(false); |
| 1505 // Bubble labels don't need a transparent background anymore. | 1505 // Bubble labels don't need a transparent background anymore. |
| 1506 ev_bubble_view_->SetLabelBackgroundColor(SK_ColorWHITE); | 1506 ev_bubble_view_->SetLabelBackgroundColor(SK_ColorWHITE); |
| 1507 selected_keyword_view_->SetLabelBackgroundColor(SK_ColorWHITE); | 1507 selected_keyword_view_->SetLabelBackgroundColor(SK_ColorWHITE); |
| 1508 } | 1508 } |
| 1509 #endif // USE_AURA | 1509 #endif // USE_AURA |
| OLD | NEW |