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 #include "chrome/browser/ui/media_stream_infobar_delegate.h" | 5 #include "chrome/browser/ui/media_stream_infobar_delegate.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
9 #include "grit/theme_resources_standard.h" | 9 #include "grit/theme_resources.h" |
10 #include "ui/base/resource/resource_bundle.h" | 10 #include "ui/base/resource/resource_bundle.h" |
11 | 11 |
12 MediaStreamInfoBarDelegate::MediaStreamInfoBarDelegate( | 12 MediaStreamInfoBarDelegate::MediaStreamInfoBarDelegate( |
13 InfoBarTabHelper* tab_helper, | 13 InfoBarTabHelper* tab_helper, |
14 MediaStreamDevicesController* controller) | 14 MediaStreamDevicesController* controller) |
15 : InfoBarDelegate(tab_helper), | 15 : InfoBarDelegate(tab_helper), |
16 controller_(controller) { | 16 controller_(controller) { |
17 DCHECK(controller_.get()); | 17 DCHECK(controller_.get()); |
18 } | 18 } |
19 | 19 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 } | 66 } |
67 | 67 |
68 InfoBarDelegate::Type MediaStreamInfoBarDelegate::GetInfoBarType() const { | 68 InfoBarDelegate::Type MediaStreamInfoBarDelegate::GetInfoBarType() const { |
69 return PAGE_ACTION_TYPE; | 69 return PAGE_ACTION_TYPE; |
70 } | 70 } |
71 | 71 |
72 MediaStreamInfoBarDelegate* | 72 MediaStreamInfoBarDelegate* |
73 MediaStreamInfoBarDelegate::AsMediaStreamInfoBarDelegate() { | 73 MediaStreamInfoBarDelegate::AsMediaStreamInfoBarDelegate() { |
74 return this; | 74 return this; |
75 } | 75 } |
OLD | NEW |