| 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/geolocation/geolocation_confirm_infobar_delegate_androi
d.h" | 5 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate_androi
d.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "grit/generated_resources.h" | 8 #include "grit/generated_resources.h" |
| 9 #include "grit/locale_settings.h" | 9 #include "grit/locale_settings.h" |
| 10 #include "grit/theme_resources.h" | 10 #include "grit/theme_resources.h" |
| 11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
| 12 | 12 |
| 13 GeolocationConfirmInfoBarDelegateAndroid:: | 13 GeolocationConfirmInfoBarDelegateAndroid:: |
| 14 GeolocationConfirmInfoBarDelegateAndroid( | 14 GeolocationConfirmInfoBarDelegateAndroid( |
| 15 InfoBarTabHelper* infobar_helper, | 15 InfoBarTabHelper* infobar_helper, |
| 16 GeolocationInfoBarQueueController* controller, | 16 GeolocationInfoBarQueueController* controller, |
| 17 int render_process_id, | 17 const content::GeolocationPermissionRequestID& id, |
| 18 int render_view_id, | |
| 19 int bridge_id, | |
| 20 const GURL& requesting_frame_url, | 18 const GURL& requesting_frame_url, |
| 21 const std::string& display_languages) | 19 const std::string& display_languages) |
| 22 : GeolocationConfirmInfoBarDelegate(infobar_helper, | 20 : GeolocationConfirmInfoBarDelegate(infobar_helper, controller, id, |
| 23 controller, | |
| 24 render_process_id, | |
| 25 render_view_id, | |
| 26 bridge_id, | |
| 27 requesting_frame_url, | 21 requesting_frame_url, |
| 28 display_languages) { | 22 display_languages) { |
| 29 } | 23 } |
| 30 | 24 |
| 31 string16 GeolocationConfirmInfoBarDelegateAndroid::GetButtonLabel( | 25 string16 GeolocationConfirmInfoBarDelegateAndroid::GetButtonLabel( |
| 32 InfoBarButton button) const { | 26 InfoBarButton button) const { |
| 33 return l10n_util::GetStringUTF16((button == BUTTON_OK) ? | 27 return l10n_util::GetStringUTF16((button == BUTTON_OK) ? |
| 34 IDS_GEOLOCATION_ALLOW_BUTTON : IDS_GEOLOCATION_DENY_BUTTON); | 28 IDS_GEOLOCATION_ALLOW_BUTTON : IDS_GEOLOCATION_DENY_BUTTON); |
| 35 } | 29 } |
| OLD | NEW |