| 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 "ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.h" | 5 #include "ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.h" |
| 6 | 6 |
| 7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/mac/scoped_nsobject.h" |
| 12 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 13 #include "base/strings/sys_string_conversions.h" | 14 #include "base/strings/sys_string_conversions.h" |
| 14 #include "components/infobars/core/infobar_manager.h" | 15 #include "components/infobars/core/infobar_manager.h" |
| 15 #import "ios/chrome/browser/native_app_launcher/native_app_infobar_controller.h" | 16 #import "ios/chrome/browser/native_app_launcher/native_app_infobar_controller.h" |
| 16 #import "ios/chrome/browser/native_app_launcher/native_app_navigation_controller
_protocol.h" | 17 #import "ios/chrome/browser/native_app_launcher/native_app_navigation_controller
_protocol.h" |
| 17 #include "ios/chrome/grit/ios_strings.h" | 18 #include "ios/chrome/grit/ios_strings.h" |
| 18 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
| 19 | 20 |
| 20 namespace native_app_infobar { | 21 namespace native_app_infobar { |
| 21 const CGSize kSmallIconSize = {29.0, 29.0}; | 22 const CGSize kSmallIconSize = {29.0, 29.0}; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 case NATIVE_APP_ACTION_IGNORE: | 140 case NATIVE_APP_ACTION_IGNORE: |
| 140 case NATIVE_APP_ACTION_COUNT: | 141 case NATIVE_APP_ACTION_COUNT: |
| 141 NOTREACHED(); | 142 NOTREACHED(); |
| 142 break; | 143 break; |
| 143 } | 144 } |
| 144 } | 145 } |
| 145 | 146 |
| 146 NativeAppControllerType NativeAppInfoBarDelegate::GetControllerType() const { | 147 NativeAppControllerType NativeAppInfoBarDelegate::GetControllerType() const { |
| 147 return type_; | 148 return type_; |
| 148 } | 149 } |
| OLD | NEW |