| OLD | NEW |
| 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/shared/chrome/browser/ui/tools_menu/tools_menu_configuration.h" | 5 #import "ios/shared/chrome/browser/ui/tools_menu/tools_menu_configuration.h" |
| 6 | 6 |
| 7 #import "base/ios/weak_nsobject.h" | 7 #import "base/ios/weak_nsobject.h" |
| 8 #import "base/logging.h" | 8 #import "base/logging.h" |
| 9 #include "ios/web/public/user_agent.h" | 9 #include "ios/web/public/user_agent.h" |
| 10 | 10 |
| 11 @implementation ToolsMenuConfiguration { | 11 @implementation ToolsMenuConfiguration { |
| 12 base::WeakNSObject<UIView> _displayView; | 12 base::WeakNSObject<UIView> _displayView; |
| 13 base::WeakNSObject<UIButton> _toolsMenuButton; | 13 base::WeakNSObject<UIButton> _toolsMenuButton; |
| 14 base::WeakNSObject<ReadingListMenuNotifier> _readingListMenuNotifier; | 14 base::WeakNSObject<ReadingListMenuNotifier> _readingListMenuNotifier; |
| 15 } | 15 } |
| 16 | 16 |
| 17 @synthesize inTabSwitcher = _inTabSwitcher; | 17 @synthesize inTabSwitcher = _inTabSwitcher; |
| 18 @synthesize noOpenedTabs = _noOpenedTabs; | 18 @synthesize noOpenedTabs = _noOpenedTabs; |
| 19 @synthesize inIncognito = _inIncognito; | 19 @synthesize inIncognito = _inIncognito; |
| 20 @synthesize userAgentType = _userAgentType; | 20 @synthesize userAgentType = _userAgentType; |
| 21 @synthesize requestStartTime = _requestStartTime; |
| 21 | 22 |
| 22 - (instancetype)initWithDisplayView:(UIView*)displayView { | 23 - (instancetype)initWithDisplayView:(UIView*)displayView { |
| 23 if (self = [super init]) { | 24 if (self = [super init]) { |
| 24 _userAgentType = web::UserAgentType::NONE; | 25 _userAgentType = web::UserAgentType::NONE; |
| 25 _displayView.reset(displayView); | 26 _displayView.reset(displayView); |
| 26 _readingListMenuNotifier.reset(); | 27 _readingListMenuNotifier.reset(); |
| 27 } | 28 } |
| 28 return self; | 29 return self; |
| 29 } | 30 } |
| 30 | 31 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 - (void)setReadingListMenuNotifier: | 63 - (void)setReadingListMenuNotifier: |
| 63 (ReadingListMenuNotifier*)readingListMenuNotifier { | 64 (ReadingListMenuNotifier*)readingListMenuNotifier { |
| 64 _readingListMenuNotifier.reset(readingListMenuNotifier); | 65 _readingListMenuNotifier.reset(readingListMenuNotifier); |
| 65 } | 66 } |
| 66 | 67 |
| 67 - (ReadingListMenuNotifier*)readingListMenuNotifier { | 68 - (ReadingListMenuNotifier*)readingListMenuNotifier { |
| 68 return _readingListMenuNotifier; | 69 return _readingListMenuNotifier; |
| 69 } | 70 } |
| 70 | 71 |
| 71 @end | 72 @end |
| OLD | NEW |