Chromium Code Reviews| Index: ios/chrome/browser/content_suggestions/content_suggestions_category_wrapper.h |
| diff --git a/ios/chrome/browser/content_suggestions/content_suggestions_category_wrapper.h b/ios/chrome/browser/content_suggestions/content_suggestions_category_wrapper.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..77d32522d40bb71b0df76df0c7489b6a79461910 |
| --- /dev/null |
| +++ b/ios/chrome/browser/content_suggestions/content_suggestions_category_wrapper.h |
| @@ -0,0 +1,23 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef IOS_CHROME_BROWSER_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_CATEGORY_WRAPPER_H_ |
| +#define IOS_CHROME_BROWSER_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_CATEGORY_WRAPPER_H_ |
| + |
| +#import <Foundation/Foundation.h> |
| + |
| +#include "components/ntp_snippets/category.h" |
| + |
| +// Objective-C wrapper for ntp_snippets::Category. |
| +@interface ContentSuggestionsCategoryWrapper : NSObject<NSCopying> |
| + |
| +- (instancetype)initWithCategory:(ntp_snippets::Category)category |
| + NS_DESIGNATED_INITIALIZER; |
| +- (instancetype)init NS_UNAVAILABLE; |
| + |
| +@property(nonatomic, assign, readonly) ntp_snippets::Category category; |
|
stkhapugin
2017/02/13 12:19:18
This is not a property, you create a new object ev
gambard
2017/02/13 14:51:41
Done.
|
| + |
| +@end |
| + |
| +#endif // IOS_CHROME_BROWSER_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_CATEGORY_WRAPPER_H_ |