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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 10800054: Add pin icon to the omnibar in windows 8 metro mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: linux tests Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/location_bar/location_bar_view.h
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.h b/chrome/browser/ui/views/location_bar/location_bar_view.h
index d045e53e64fff072f5686c2191fd47dc2a414918..fade943b5c6782d7ef15ba708c1dfc4896c34b7c 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
@@ -42,6 +42,7 @@ class GURL;
class InstantController;
class KeywordHintView;
class LocationIconView;
+class MetroPinView;
class PageActionWithBadgeView;
class PageActionImageView;
class Profile;
@@ -209,6 +210,9 @@ class LocationBarView : public LocationBar,
// Shows the bookmark bubble.
void ShowStarBubble(const GURL& url, bool newly_bookmarked);
+ // Toggles the metro pin on or off.
+ void SetMetroPinnedState(bool is_pinned);
+
// Shows the Chrome To Mobile bubble.
void ShowChromeToMobileBubble();
@@ -526,6 +530,9 @@ class LocationBarView : public LocationBar,
// The Chrome To Mobile page action icon view.
ChromeToMobileView* chrome_to_mobile_view_;
+ // The button to pin the page to the Metro start screen.
+ MetroPinView* metro_pin_view_;
+
// The mode that dictates how the bar shows.
Mode mode_;
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698