OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |