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 | 7 |
8 #include "chrome/browser/infobars/infobar_delegate.h" | 8 #include "chrome/browser/infobars/infobar_delegate.h" |
9 #include "chrome/browser/media/media_stream_devices_menu_model.h" | 9 #include "chrome/browser/media/media_stream_devices_menu_model.h" |
10 #include "chrome/browser/ui/views/infobars/infobar_background.h" | 10 #include "chrome/browser/ui/views/infobars/infobar_background.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 private: | 30 private: |
31 virtual ~MediaStreamInfoBar(); | 31 virtual ~MediaStreamInfoBar(); |
32 | 32 |
33 // InfoBarView: | 33 // InfoBarView: |
34 virtual void Layout() OVERRIDE; | 34 virtual void Layout() OVERRIDE; |
35 virtual void ViewHierarchyChanged(bool is_add, | 35 virtual void ViewHierarchyChanged(bool is_add, |
36 views::View* parent, | 36 views::View* parent, |
37 views::View* child) OVERRIDE; | 37 views::View* child) OVERRIDE; |
38 virtual void ButtonPressed(views::Button* sender, | 38 virtual void ButtonPressed(views::Button* sender, |
39 const views::Event& event) OVERRIDE; | 39 const ui::Event& event) OVERRIDE; |
40 virtual int ContentMinimumWidth() const OVERRIDE; | 40 virtual int ContentMinimumWidth() const OVERRIDE; |
41 | 41 |
42 // views::MenuButtonListener: | 42 // views::MenuButtonListener: |
43 virtual void OnMenuButtonClicked(views::View* source, | 43 virtual void OnMenuButtonClicked(views::View* source, |
44 const gfx::Point& point) OVERRIDE; | 44 const gfx::Point& point) OVERRIDE; |
45 | 45 |
46 MediaStreamInfoBarDelegate* GetDelegate(); | 46 MediaStreamInfoBarDelegate* GetDelegate(); |
47 | 47 |
48 views::Label* label_; | 48 views::Label* label_; |
49 views::TextButton* allow_button_; | 49 views::TextButton* allow_button_; |
50 views::TextButton* deny_button_; | 50 views::TextButton* deny_button_; |
51 views::MenuButton* devices_menu_button_; | 51 views::MenuButton* devices_menu_button_; |
52 | 52 |
53 MediaStreamDevicesMenuModel devices_menu_model_; | 53 MediaStreamDevicesMenuModel devices_menu_model_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBar); | 55 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBar); |
56 }; | 56 }; |
57 | 57 |
58 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_MEDIA_STREAM_INFOBAR_H_ | 58 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_MEDIA_STREAM_INFOBAR_H_ |
OLD | NEW |