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

Unified Diff: chrome/browser/ui/views/infobars/media_stream_infobar.cc

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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/infobars/media_stream_infobar.cc
diff --git a/chrome/browser/ui/views/infobars/media_stream_infobar.cc b/chrome/browser/ui/views/infobars/media_stream_infobar.cc
index 3bd6054d6017aef87208c1942f1e43ddc0b456d9..3213cb3807bf7a788aa7fe0fbf3095eb4c872cdf 100644
--- a/chrome/browser/ui/views/infobars/media_stream_infobar.cc
+++ b/chrome/browser/ui/views/infobars/media_stream_infobar.cc
@@ -60,8 +60,8 @@ void MediaStreamInfoBar::Layout() {
}
void MediaStreamInfoBar::ViewHierarchyChanged(bool is_add,
- View* parent,
- View* child) {
+ views::View* parent,
+ views::View* child) {
if (is_add && child == this && (label_ == NULL)) {
int message_id = IDS_MEDIA_CAPTURE_MIC_AND_VIDEO;
DCHECK(delegate_->has_audio() || delegate_->has_video());
@@ -120,7 +120,8 @@ int MediaStreamInfoBar::ContentMinimumWidth() const {
(kButtonButtonSpacing + devices_menu_button_->GetPreferredSize().width());
}
-void MediaStreamInfoBar::RunMenu(View* source, const gfx::Point& pt) {
+void MediaStreamInfoBar::OnMenuButtonClicked(views::View* source,
+ const gfx::Point& point) {
if (!owned())
return; // We're closing; don't call anything, it might access the owner.
DCHECK_EQ(devices_menu_button_, source);
« no previous file with comments | « chrome/browser/ui/views/infobars/media_stream_infobar.h ('k') | chrome/browser/ui/views/menu_item_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698