| 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/gtk/location_bar_view_gtk.h" | 5 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 content::NotificationService::current()->Notify( | 880 content::NotificationService::current()->Notify( |
| 881 chrome::NOTIFICATION_ACCESSIBILITY_CONTROL_FOCUSED, | 881 chrome::NOTIFICATION_ACCESSIBILITY_CONTROL_FOCUSED, |
| 882 content::Source<Profile>(profile), | 882 content::Source<Profile>(profile), |
| 883 content::Details<AccessibilityTextBoxInfo>(&info)); | 883 content::Details<AccessibilityTextBoxInfo>(&info)); |
| 884 | 884 |
| 885 // Update the keyword and search hint states. | 885 // Update the keyword and search hint states. |
| 886 OnChanged(); | 886 OnChanged(); |
| 887 } | 887 } |
| 888 | 888 |
| 889 gfx::Image LocationBarViewGtk::GetFavicon() const { | 889 gfx::Image LocationBarViewGtk::GetFavicon() const { |
| 890 return GetTabContents()->favicon_tab_helper()->GetFavicon(); | 890 return FaviconTabHelper::FromWebContents(GetWebContents())->GetFavicon(); |
| 891 } | 891 } |
| 892 | 892 |
| 893 string16 LocationBarViewGtk::GetTitle() const { | 893 string16 LocationBarViewGtk::GetTitle() const { |
| 894 return GetWebContents()->GetTitle(); | 894 return GetWebContents()->GetTitle(); |
| 895 } | 895 } |
| 896 | 896 |
| 897 InstantController* LocationBarViewGtk::GetInstant() { | 897 InstantController* LocationBarViewGtk::GetInstant() { |
| 898 return browser_->instant_controller()->instant(); | 898 return browser_->instant_controller()->instant(); |
| 899 } | 899 } |
| 900 | 900 |
| (...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2138 } | 2138 } |
| 2139 | 2139 |
| 2140 void LocationBarViewGtk::PageActionViewGtk::InspectPopup( | 2140 void LocationBarViewGtk::PageActionViewGtk::InspectPopup( |
| 2141 ExtensionAction* action) { | 2141 ExtensionAction* action) { |
| 2142 ExtensionPopupGtk::Show( | 2142 ExtensionPopupGtk::Show( |
| 2143 action->GetPopupUrl(current_tab_id_), | 2143 action->GetPopupUrl(current_tab_id_), |
| 2144 owner_->browser_, | 2144 owner_->browser_, |
| 2145 event_box_.get(), | 2145 event_box_.get(), |
| 2146 ExtensionPopupGtk::SHOW_AND_INSPECT); | 2146 ExtensionPopupGtk::SHOW_AND_INSPECT); |
| 2147 } | 2147 } |
| OLD | NEW |