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

Side by Side Diff: ios/chrome/browser/ui/toolbar/tools_menu_button_observer_bridge.mm

Issue 2763233003: Move ReadingList model to components/reading_list/core (Closed)
Patch Set: feedback Created 3 years, 9 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
« no previous file with comments | « ios/chrome/browser/ui/toolbar/BUILD.gn ('k') | ios/chrome/browser/ui/tools_menu/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/chrome/browser/ui/toolbar/tools_menu_button_observer_bridge.h" 5 #import "ios/chrome/browser/ui/toolbar/tools_menu_button_observer_bridge.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "components/reading_list/ios/reading_list_model.h" 9 #include "components/reading_list/core/reading_list_model.h"
10 #import "ios/chrome/browser/ui/toolbar/toolbar_tools_menu_button.h" 10 #import "ios/chrome/browser/ui/toolbar/toolbar_tools_menu_button.h"
11 11
12 @interface ToolsMenuButtonObserverBridge () 12 @interface ToolsMenuButtonObserverBridge ()
13 - (void)updateButtonWithModel:(const ReadingListModel*)model; 13 - (void)updateButtonWithModel:(const ReadingListModel*)model;
14 - (void)buttonPressed:(UIButton*)sender; 14 - (void)buttonPressed:(UIButton*)sender;
15 @end 15 @end
16 16
17 @implementation ToolsMenuButtonObserverBridge { 17 @implementation ToolsMenuButtonObserverBridge {
18 base::scoped_nsobject<ToolbarToolsMenuButton> _button; 18 base::scoped_nsobject<ToolbarToolsMenuButton> _button;
19 ReadingListModel* _model; 19 ReadingListModel* _model;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 64
65 - (void)readingListModel:(const ReadingListModel*)model 65 - (void)readingListModel:(const ReadingListModel*)model
66 didAddEntry:(const GURL&)url 66 didAddEntry:(const GURL&)url
67 entrySource:(reading_list::EntrySource)source { 67 entrySource:(reading_list::EntrySource)source {
68 if (source == reading_list::ADDED_VIA_CURRENT_APP) 68 if (source == reading_list::ADDED_VIA_CURRENT_APP)
69 [_button triggerAnimation]; 69 [_button triggerAnimation];
70 } 70 }
71 71
72 @end 72 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/toolbar/BUILD.gn ('k') | ios/chrome/browser/ui/tools_menu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698