Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Side by Side Diff: chrome/browser/ui/gtk/location_bar_view_gtk.cc

Issue 11011002: Switch FaviconTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/hung_renderer_dialog_gtk.cc ('k') | chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698