OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |