OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/geolocation/geolocation_infobar_delegate_android.h" | 5 #include "chrome/browser/geolocation/geolocation_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 GeolocationInfoBarDelegateAndroid::GeolocationInfoBarDelegateAndroid( | 10 GeolocationInfoBarDelegateAndroid::GeolocationInfoBarDelegateAndroid( |
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::GEOLOCATION, | |
17 CONTENT_SETTINGS_TYPE_GEOLOCATION, | 16 CONTENT_SETTINGS_TYPE_GEOLOCATION, |
18 user_gesture, | 17 user_gesture, |
19 profile, | 18 profile, |
20 callback) {} | 19 callback) {} |
21 | 20 |
22 GeolocationInfoBarDelegateAndroid::~GeolocationInfoBarDelegateAndroid() {} | 21 GeolocationInfoBarDelegateAndroid::~GeolocationInfoBarDelegateAndroid() {} |
23 | 22 |
24 infobars::InfoBarDelegate::InfoBarIdentifier | 23 infobars::InfoBarDelegate::InfoBarIdentifier |
25 GeolocationInfoBarDelegateAndroid::GetIdentifier() const { | 24 GeolocationInfoBarDelegateAndroid::GetIdentifier() const { |
26 return GEOLOCATION_INFOBAR_DELEGATE_ANDROID; | 25 return GEOLOCATION_INFOBAR_DELEGATE_ANDROID; |
27 } | 26 } |
28 | 27 |
29 int GeolocationInfoBarDelegateAndroid::GetIconId() const { | 28 int GeolocationInfoBarDelegateAndroid::GetIconId() const { |
30 return IDR_ANDROID_INFOBAR_GEOLOCATION; | 29 return IDR_ANDROID_INFOBAR_GEOLOCATION; |
31 } | 30 } |
32 | 31 |
33 int GeolocationInfoBarDelegateAndroid::GetMessageResourceId() const { | 32 int GeolocationInfoBarDelegateAndroid::GetMessageResourceId() const { |
34 return IDS_GEOLOCATION_INFOBAR_QUESTION; | 33 return IDS_GEOLOCATION_INFOBAR_QUESTION; |
35 } | 34 } |
OLD | NEW |