| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/media/midi_permission_infobar_delegate_android.h" | 5 #include "chrome/browser/media/midi_permission_infobar_delegate_android.h" |
| 6 | 6 |
| 7 #include "chrome/browser/android/android_theme_resources.h" | 7 #include "chrome/browser/android/android_theme_resources.h" |
| 8 #include "chrome/grit/generated_resources.h" | 8 #include "chrome/grit/generated_resources.h" |
| 9 | 9 |
| 10 MidiPermissionInfoBarDelegateAndroid::MidiPermissionInfoBarDelegateAndroid( | 10 MidiPermissionInfoBarDelegateAndroid::MidiPermissionInfoBarDelegateAndroid( |
| 11 const GURL& requesting_frame, | 11 const GURL& requesting_frame, |
| 12 bool user_gesture, | 12 bool user_gesture, |
| 13 Profile* profile, | 13 Profile* profile, |
| 14 const PermissionSetCallback& callback) | 14 const PermissionSetCallback& callback) |
| 15 : PermissionInfoBarDelegate(requesting_frame, | 15 : PermissionInfoBarDelegate(requesting_frame, |
| 16 content::PermissionType::MIDI_SYSEX, | |
| 17 CONTENT_SETTINGS_TYPE_MIDI_SYSEX, | 16 CONTENT_SETTINGS_TYPE_MIDI_SYSEX, |
| 18 user_gesture, | 17 user_gesture, |
| 19 profile, | 18 profile, |
| 20 callback) {} | 19 callback) {} |
| 21 | 20 |
| 22 MidiPermissionInfoBarDelegateAndroid::~MidiPermissionInfoBarDelegateAndroid() {} | 21 MidiPermissionInfoBarDelegateAndroid::~MidiPermissionInfoBarDelegateAndroid() {} |
| 23 | 22 |
| 24 infobars::InfoBarDelegate::InfoBarIdentifier | 23 infobars::InfoBarDelegate::InfoBarIdentifier |
| 25 MidiPermissionInfoBarDelegateAndroid::GetIdentifier() const { | 24 MidiPermissionInfoBarDelegateAndroid::GetIdentifier() const { |
| 26 return MIDI_PERMISSION_INFOBAR_DELEGATE_ANDROID; | 25 return MIDI_PERMISSION_INFOBAR_DELEGATE_ANDROID; |
| 27 } | 26 } |
| 28 | 27 |
| 29 int MidiPermissionInfoBarDelegateAndroid::GetIconId() const { | 28 int MidiPermissionInfoBarDelegateAndroid::GetIconId() const { |
| 30 return IDR_ANDROID_INFOBAR_MIDI; | 29 return IDR_ANDROID_INFOBAR_MIDI; |
| 31 } | 30 } |
| 32 | 31 |
| 33 int MidiPermissionInfoBarDelegateAndroid::GetMessageResourceId() const { | 32 int MidiPermissionInfoBarDelegateAndroid::GetMessageResourceId() const { |
| 34 return IDS_MIDI_SYSEX_INFOBAR_QUESTION; | 33 return IDS_MIDI_SYSEX_INFOBAR_QUESTION; |
| 35 } | 34 } |
| OLD | NEW |