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

Side by Side Diff: ios/chrome/browser/ui/suggestions/suggestions_data_source.h

Issue 2619963004: Suggestions UI - Add Data Source and Item (Closed)
Patch Set: Cleanup Created 3 years, 11 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 2016 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_SUGGESTIONS_SUGGESTIONS_DATA_SOURCE_H_
6 #define IOS_CHROME_BROWSER_UI_SUGGESTIONS_SUGGESTIONS_DATA_SOURCE_H_
7
8 #import <UIKit/UIKit.h>
9
10 @class CollectionViewController;
11
12 // Data Source for a CollectionViewController populating it with some items and
13 // handling the items addition and removal. The items can be added before the
lpromero 2017/01/11 09:47:04 Is removal in one of the follow up CLs?
gambard 2017/01/11 15:10:37 Not yet. I will remove it for now.
14 // CollectionViewController is set.
lpromero 2017/01/11 09:47:04 Is this really useful? It adds a lot of complexity
gambard 2017/01/11 15:10:37 Done.
15 @interface SuggestionsDataSource : NSObject
marq (ping after 24h) 2017/01/11 13:43:09 The name 'DataSource" here is confusing, since tha
gambard 2017/01/11 15:10:37 I have changed the architecture.
16
17 // The CollectionViewController for this Data Source. Setting this
18 // CollectionViewController will add the currents items in the DataSource to the
lpromero 2017/01/11 09:47:04 s/currents/current?
gambard 2017/01/11 15:10:37 Done.
19 // CollectionViewController.
20 @property(nonatomic, strong) CollectionViewController* collectionViewController;
marq (ping after 24h) 2017/01/11 13:43:09 I don't think this object should be owning the vie
21
22 // Adds a text item with a |title| and a |subtitle| in the section numbered
23 // |section|. If |section| > the current number of section, it will add a new
lpromero 2017/01/11 09:47:04 Avoid ">", make full text sentences.
gambard 2017/01/11 15:10:37 Done.
24 // section at the end.
lpromero 2017/01/11 09:47:04 In the impl, passing a section more than "count" w
gambard 2017/01/11 15:10:37 It should not. With the current implementation it
25 - (void)addTextItem:(NSString*)title
26 subtitle:(NSString*)subtitle
27 toSection:(NSUInteger)section;
lpromero 2017/01/11 09:47:04 Add new line.
gambard 2017/01/11 15:10:37 Done.
28 @end
29
30 #endif // IOS_CHROME_BROWSER_UI_SUGGESTIONS_SUGGESTIONS_DATA_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698