Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: ios/chrome/browser/ui/content_suggestions/content_suggestion_id.h

Issue 2708623002: Add an ID to the ContentSuggestion (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTION_ID_H_
6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTION_ID_H_
7
8 #import <Foundation/Foundation.h>
9
10 #include <string>
11
12 @class ContentSuggestionsSectionInformation;
13
14 // An class identifying a suggestion.
15 @interface ContentSuggestionID : NSObject
16
17 @property(nonatomic, strong) ContentSuggestionsSectionInformation* sectionInfo;
gambard 2017/02/20 09:33:14 I am not sure about using a ContentSuggestionsSect
lpromero 2017/02/21 10:33:34 I am more unsure about ContentSuggestionID.IDInSec
gambard 2017/02/21 14:37:48 Done.
18 // Must be unique inside a section.
19 @property(nonatomic, assign) std::string IDInSection;
20
21 @end
22
23 // A protocol for an object having an ID.
24 @protocol ContentSuggestionIDHolder
25
26 @property(nonatomic, strong) ContentSuggestionID* suggestionID;
27
28 @end
29
30 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTION_ID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698