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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_view.h

Issue 75873002: [SiteChip] Add the basic painting of the site chip button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move painter, etc. Created 7 years 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/toolbar/toolbar_view.h
diff --git a/chrome/browser/ui/views/toolbar/toolbar_view.h b/chrome/browser/ui/views/toolbar/toolbar_view.h
index 6818931c37a59f596a2834882bd00db59d053f9e..f84a818815b190ddbec2a90e4322e176c8883de7 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_view.h
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.h
@@ -25,6 +25,7 @@ class BrowserActionsContainer;
class Browser;
class HomeButton;
class ReloadButton;
+class SiteChipView;
class ToolbarButton;
class WrenchMenu;
class WrenchMenuModel;
@@ -86,6 +87,7 @@ class ToolbarView : public views::AccessiblePaneView,
BrowserActionsContainer* browser_actions() const { return browser_actions_; }
ReloadButton* reload_button() const { return reload_; }
LocationBarView* location_bar() const { return location_bar_; }
+ SiteChipView* site_chip() const { return site_chip_view_; }
views::MenuButton* app_menu() const;
// Overridden from AccessiblePaneView
@@ -154,6 +156,9 @@ class ToolbarView : public views::AccessiblePaneView,
bool ShouldPaintBackground() const;
enum {
+ // The apparent horizontal space around the site chip.
Peter Kasting 2013/12/03 23:04:52 Based on my comments on the bug: we should nuke th
Greg Billock 2013/12/04 00:33:34 Done.
+ kSiteChipSpacing = 2,
+
// The apparent horizontal space between most items, and the vertical
// padding above and below them.
kStandardSpacing = 3,
@@ -217,6 +222,7 @@ class ToolbarView : public views::AccessiblePaneView,
ReloadButton* reload_;
HomeButton* home_;
LocationBarView* location_bar_;
+ SiteChipView* site_chip_view_;
BrowserActionsContainer* browser_actions_;
WrenchToolbarButton* app_menu_;
Browser* browser_;

Powered by Google App Engine
This is Rietveld 408576698