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

Side by Side Diff: chrome/browser/ui/views/infobars/infobar_view.h

Issue 9693022: views: Rename MenuButtonDelegate::RunMenu to something more obvious. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: menu_button_listener.h Created 8 years, 9 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 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 10 matching lines...) Expand all
21 namespace views { 21 namespace views {
22 class ExternalFocusTracker; 22 class ExternalFocusTracker;
23 class ImageButton; 23 class ImageButton;
24 class ImageView; 24 class ImageView;
25 class Label; 25 class Label;
26 class Link; 26 class Link;
27 class LinkListener; 27 class LinkListener;
28 class MenuButton; 28 class MenuButton;
29 class MenuRunner; 29 class MenuRunner;
30 class TextButton; 30 class TextButton;
31 class MenuButtonDelegate; 31 class MenuButtonListener;
32 } 32 }
33 33
34 class InfoBarView : public InfoBar, 34 class InfoBarView : public InfoBar,
35 public views::View, 35 public views::View,
36 public views::ButtonListener, 36 public views::ButtonListener,
37 public views::FocusChangeListener { 37 public views::FocusChangeListener {
38 public: 38 public:
39 InfoBarView(InfoBarTabHelper* owner, InfoBarDelegate* delegate); 39 InfoBarView(InfoBarTabHelper* owner, InfoBarDelegate* delegate);
40 40
41 const SkPath& fill_path() const { return fill_path_; } 41 const SkPath& fill_path() const { return fill_path_; }
(...skipping 10 matching lines...) Expand all
52 52
53 // Creates a link with the appropriate font and color for an infobar. 53 // Creates a link with the appropriate font and color for an infobar.
54 // NOTE: Subclasses must ignore link clicks if we're unowned. 54 // NOTE: Subclasses must ignore link clicks if we're unowned.
55 views::Link* CreateLink(const string16& text, 55 views::Link* CreateLink(const string16& text,
56 views::LinkListener* listener) const; 56 views::LinkListener* listener) const;
57 57
58 // Creates a menu button with an infobar-specific appearance. 58 // Creates a menu button with an infobar-specific appearance.
59 // NOTE: Subclasses must ignore button presses if we're unowned. 59 // NOTE: Subclasses must ignore button presses if we're unowned.
60 static views::MenuButton* CreateMenuButton( 60 static views::MenuButton* CreateMenuButton(
61 const string16& text, 61 const string16& text,
62 views::MenuButtonDelegate* menu_delegate); 62 views::MenuButtonListener* menu_button_listener);
63 63
64 // Creates a text button with an infobar-specific appearance. 64 // Creates a text button with an infobar-specific appearance.
65 // NOTE: Subclasses must ignore button presses if we're unowned. 65 // NOTE: Subclasses must ignore button presses if we're unowned.
66 static views::TextButton* CreateTextButton(views::ButtonListener* listener, 66 static views::TextButton* CreateTextButton(views::ButtonListener* listener,
67 const string16& text, 67 const string16& text,
68 bool needs_elevation); 68 bool needs_elevation);
69 69
70 // views::View: 70 // views::View:
71 virtual void Layout() OVERRIDE; 71 virtual void Layout() OVERRIDE;
72 virtual void ViewHierarchyChanged(bool is_add, 72 virtual void ViewHierarchyChanged(bool is_add,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 SkPath fill_path_; 133 SkPath fill_path_;
134 SkPath stroke_path_; 134 SkPath stroke_path_;
135 135
136 // Used to run the menu. 136 // Used to run the menu.
137 scoped_ptr<views::MenuRunner> menu_runner_; 137 scoped_ptr<views::MenuRunner> menu_runner_;
138 138
139 DISALLOW_COPY_AND_ASSIGN(InfoBarView); 139 DISALLOW_COPY_AND_ASSIGN(InfoBarView);
140 }; 140 };
141 141
142 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ 142 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/extension_infobar.cc ('k') | chrome/browser/ui/views/infobars/infobar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698