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

Side by Side Diff: chrome/browser/ui/views/toolbar/browser_action_view.h

Issue 275183002: patch from issue 218843002 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTION_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTION_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTION_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTION_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/extension_action_icon_factory.h" 10 #include "chrome/browser/extensions/extension_action_icon_factory.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // Gets browser action button icon with the badge. 71 // Gets browser action button icon with the badge.
72 gfx::ImageSkia GetIconWithBadge(); 72 gfx::ImageSkia GetIconWithBadge();
73 73
74 // Overridden from views::View: 74 // Overridden from views::View:
75 virtual void Layout() OVERRIDE; 75 virtual void Layout() OVERRIDE;
76 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 76 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
77 virtual gfx::Size GetPreferredSize() OVERRIDE; 77 virtual gfx::Size GetPreferredSize() OVERRIDE;
78 78
79 protected: 79 protected:
80 // Overridden from views::View to paint the badge on top of children. 80 // Overridden from views::View to paint the badge on top of children.
81 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; 81 virtual void PaintChildren(gfx::Canvas* canvas,
82 const views::CullSet& cull_set) OVERRIDE;
82 83
83 private: 84 private:
84 // The Browser object this view is associated with. 85 // The Browser object this view is associated with.
85 Browser* browser_; 86 Browser* browser_;
86 87
87 // Usually a container for this view. 88 // Usually a container for this view.
88 Delegate* delegate_; 89 Delegate* delegate_;
89 90
90 // The button this view contains. 91 // The button this view contains.
91 BrowserActionButton* button_; 92 BrowserActionButton* button_;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // The observer that we need to notify when the icon of the button has been 248 // The observer that we need to notify when the icon of the button has been
248 // updated. 249 // updated.
249 IconObserver* icon_observer_; 250 IconObserver* icon_observer_;
250 251
251 friend class base::DeleteHelper<BrowserActionButton>; 252 friend class base::DeleteHelper<BrowserActionButton>;
252 253
253 DISALLOW_COPY_AND_ASSIGN(BrowserActionButton); 254 DISALLOW_COPY_AND_ASSIGN(BrowserActionButton);
254 }; 255 };
255 256
256 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTION_VIEW_H_ 257 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTION_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | chrome/browser/ui/views/toolbar/browser_action_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698