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

Side by Side Diff: components/reading_list/reading_list_model_bridge_observer.h

Issue 2514333003: Componentize Reading List (Closed)
Patch Set: rebase Created 4 years, 1 month 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
1 1
2 // Copyright 2016 The Chromium Authors. All rights reserved. 2 // Copyright 2016 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #ifndef IOS_INTERNAL_CHROME_BROWSER_UI_READING_LIST_READING_LIST_MODEL_BRIDGE_OB SERVER_H_ 6 #ifndef COMPONENTS_READING_LIST_READING_LIST_MODEL_BRIDGE_OBSERVER_H_
7 #define IOS_INTERNAL_CHROME_BROWSER_UI_READING_LIST_READING_LIST_MODEL_BRIDGE_OB SERVER_H_ 7 #define COMPONENTS_READING_LIST_READING_LIST_MODEL_BRIDGE_OBSERVER_H_
8 8
9 #import <Foundation/Foundation.h> 9 #import <Foundation/Foundation.h>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "ios/chrome/browser/reading_list/reading_list_model_observer.h" 12 #include "components/reading_list/reading_list_model_observer.h"
13 13
14 // Protocol duplicating all Reading List Model Observer methods in Objective-C. 14 // Protocol duplicating all Reading List Model Observer methods in Objective-C.
15 @protocol ReadingListModelBridgeObserver<NSObject> 15 @protocol ReadingListModelBridgeObserver<NSObject>
16 16
17 @required 17 @required
18 - (void)readingListModelLoaded:(const ReadingListModel*)model; 18 - (void)readingListModelLoaded:(const ReadingListModel*)model;
19 - (void)readingListModelDidApplyChanges:(const ReadingListModel*)model; 19 - (void)readingListModelDidApplyChanges:(const ReadingListModel*)model;
20 20
21 @optional 21 @optional
22 - (void)readingListModel:(const ReadingListModel*)model 22 - (void)readingListModel:(const ReadingListModel*)model
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 size_t index) override; 77 size_t index) override;
78 void ReadingListWillUpdateReadEntry(const ReadingListModel* model, 78 void ReadingListWillUpdateReadEntry(const ReadingListModel* model,
79 size_t index) override; 79 size_t index) override;
80 80
81 __unsafe_unretained id<ReadingListModelBridgeObserver> observer_; 81 __unsafe_unretained id<ReadingListModelBridgeObserver> observer_;
82 ReadingListModel* model_; // weak 82 ReadingListModel* model_; // weak
83 83
84 DISALLOW_COPY_AND_ASSIGN(ReadingListModelBridge); 84 DISALLOW_COPY_AND_ASSIGN(ReadingListModelBridge);
85 }; 85 };
86 86
87 #endif // IOS_INTERNAL_CHROME_BROWSER_UI_READING_LIST_READING_LIST_MODEL_BRIDGE _OBSERVER_H_ 87 #endif // COMPONENTS_READING_LIST_READING_LIST_MODEL_BRIDGE_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/reading_list/reading_list_model.cc ('k') | components/reading_list/reading_list_model_bridge_observer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698