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

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

Issue 10209022: Refactor media stream infobar delegate code and also fix a typo (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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 (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_MEDIA_STREAM_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_MEDIA_STREAM_INFOBAR_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_MEDIA_STREAM_INFOBAR_H_ 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_MEDIA_STREAM_INFOBAR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/infobars/infobar_delegate.h" 9 #include "chrome/browser/infobars/infobar_delegate.h"
10 #include "chrome/browser/media/media_stream_devices_menu_model.h" 10 #include "chrome/browser/media/media_stream_devices_menu_model.h"
(...skipping 26 matching lines...) Expand all
37 views::View* parent, 37 views::View* parent,
38 views::View* child) OVERRIDE; 38 views::View* child) OVERRIDE;
39 virtual void ButtonPressed(views::Button* sender, 39 virtual void ButtonPressed(views::Button* sender,
40 const views::Event& event) OVERRIDE; 40 const views::Event& event) OVERRIDE;
41 virtual int ContentMinimumWidth() const OVERRIDE; 41 virtual int ContentMinimumWidth() const OVERRIDE;
42 42
43 // views::MenuButtonListener: 43 // views::MenuButtonListener:
44 virtual void OnMenuButtonClicked(views::View* source, 44 virtual void OnMenuButtonClicked(views::View* source,
45 const gfx::Point& point) OVERRIDE; 45 const gfx::Point& point) OVERRIDE;
46 46
47 MediaStreamInfoBarDelegate* delegate_; 47 MediaStreamInfoBarDelegate* GetDelegate();
48 48
49 views::Label* label_; 49 views::Label* label_;
50 views::TextButton* allow_button_; 50 views::TextButton* allow_button_;
51 views::TextButton* deny_button_; 51 views::TextButton* deny_button_;
52 views::MenuButton* devices_menu_button_; 52 views::MenuButton* devices_menu_button_;
53 53
54 MediaStreamDevicesMenuModel devices_menu_model_; 54 MediaStreamDevicesMenuModel devices_menu_model_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBar); 56 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBar);
57 }; 57 };
58 58
59 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_MEDIA_STREAM_INFOBAR_H_ 59 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_MEDIA_STREAM_INFOBAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/media_stream_infobar_delegate.cc ('k') | chrome/browser/ui/views/infobars/media_stream_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698