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

Side by Side Diff: ios/chrome/browser/infobars/infobar_container_view.mm

Issue 2596813002: Remove ChromeBrowserProvider::CreateInfoBarView() method. (Closed)
Patch Set: Created 4 years 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 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/infobars/infobar_container_view.h" 5 #import "ios/chrome/browser/infobars/infobar_container_view.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ios/chrome/browser/infobars/infobar.h" 8 #include "ios/chrome/browser/infobars/infobar.h"
9 #include "ios/public/provider/chrome/browser/ui/infobar_view_protocol.h" 9 #include "ios/chrome/browser/ui/infobars/infobar_view_protocol.h"
10 #include "ui/base/device_form_factor.h" 10 #include "ui/base/device_form_factor.h"
11 11
12 #if !defined(__has_feature) || !__has_feature(objc_arc) 12 #if !defined(__has_feature) || !__has_feature(objc_arc)
13 #error "This file requires ARC support." 13 #error "This file requires ARC support."
14 #endif 14 #endif
15 15
16 @implementation InfoBarContainerView 16 @implementation InfoBarContainerView
17 17
18 - (void)addInfoBar:(InfoBarIOS*)infoBarIOS position:(NSInteger)position { 18 - (void)addInfoBar:(InfoBarIOS*)infoBarIOS position:(NSInteger)position {
19 DCHECK_LE((NSUInteger)position, [[self subviews] count]); 19 DCHECK_LE((NSUInteger)position, [[self subviews] count]);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 - (CGFloat)topmostVisibleInfoBarHeight { 53 - (CGFloat)topmostVisibleInfoBarHeight {
54 for (UIView<InfoBarViewProtocol>* view in 54 for (UIView<InfoBarViewProtocol>* view in
55 [self.subviews reverseObjectEnumerator]) { 55 [self.subviews reverseObjectEnumerator]) {
56 return [view sizeThatFits:self.frame.size].height; 56 return [view sizeThatFits:self.frame.size].height;
57 } 57 }
58 return 0; 58 return 0;
59 } 59 }
60 60
61 @end 61 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698