OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/intents/register_intent_handler_infobar_delegate.h" | 5 #include "chrome/browser/intents/register_intent_handler_infobar_delegate.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/intents/web_intents_registry.h" | 9 #include "chrome/browser/intents/web_intents_registry.h" |
10 #include "chrome/browser/intents/web_intents_registry_factory.h" | 10 #include "chrome/browser/intents/web_intents_registry_factory.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
13 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
14 | 14 |
15 RegisterIntentHandlerInfoBarDelegate::RegisterIntentHandlerInfoBarDelegate( | 15 RegisterIntentHandlerInfoBarDelegate::RegisterIntentHandlerInfoBarDelegate( |
16 InfoBarTabHelper* infobar_helper, | 16 InfoBarTabHelper* infobar_helper, |
17 WebIntentsRegistry* registry, | 17 WebIntentsRegistry* registry, |
18 const WebIntentServiceData& service) | 18 const webkit_glue::WebIntentServiceData& service) |
19 : ConfirmInfoBarDelegate(infobar_helper), | 19 : ConfirmInfoBarDelegate(infobar_helper), |
20 registry_(registry), | 20 registry_(registry), |
21 service_(service) { | 21 service_(service) { |
22 } | 22 } |
23 | 23 |
24 InfoBarDelegate::Type | 24 InfoBarDelegate::Type |
25 RegisterIntentHandlerInfoBarDelegate::GetInfoBarType() const { | 25 RegisterIntentHandlerInfoBarDelegate::GetInfoBarType() const { |
26 return PAGE_ACTION_TYPE; | 26 return PAGE_ACTION_TYPE; |
27 } | 27 } |
28 | 28 |
(...skipping 24 matching lines...) Expand all Loading... |
53 return l10n_util::GetStringUTF16(IDS_LEARN_MORE); | 53 return l10n_util::GetStringUTF16(IDS_LEARN_MORE); |
54 } | 54 } |
55 | 55 |
56 bool RegisterIntentHandlerInfoBarDelegate::LinkClicked( | 56 bool RegisterIntentHandlerInfoBarDelegate::LinkClicked( |
57 WindowOpenDisposition disposition) { | 57 WindowOpenDisposition disposition) { |
58 // TODO(jhawkins): Open the Web Intents Help Center article once it is | 58 // TODO(jhawkins): Open the Web Intents Help Center article once it is |
59 // written. | 59 // written. |
60 // TODO(jhawkins): Add associated bug for the article here. | 60 // TODO(jhawkins): Add associated bug for the article here. |
61 return false; | 61 return false; |
62 } | 62 } |
OLD | NEW |