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

Side by Side Diff: chrome/browser/ui/cocoa/infobars/infobar_container_cocoa.mm

Issue 793783003: Move infobar constants and the code that uses them from components/ to chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NULL -> nullptr Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/ui/cocoa/infobars/infobar_container_cocoa.h" 5 #import "chrome/browser/ui/cocoa/infobars/infobar_container_cocoa.h"
6 6
7 #import "chrome/browser/ui/cocoa/infobars/infobar_cocoa.h" 7 #import "chrome/browser/ui/cocoa/infobars/infobar_cocoa.h"
8 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h" 8 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h"
9 9
10 const int InfoBarContainerDelegate::kSeparatorLineHeight = 1;
11 const int InfoBarContainerDelegate::kDefaultArrowTargetHeight = 11;
12
10 InfoBarContainerCocoa::InfoBarContainerCocoa( 13 InfoBarContainerCocoa::InfoBarContainerCocoa(
11 InfoBarContainerController* controller) 14 InfoBarContainerController* controller)
12 : infobars::InfoBarContainer(this), 15 : infobars::InfoBarContainer(this),
13 controller_(controller) { 16 controller_(controller) {
14 } 17 }
15 18
16 InfoBarContainerCocoa::~InfoBarContainerCocoa() { 19 InfoBarContainerCocoa::~InfoBarContainerCocoa() {
17 RemoveAllInfoBarsForDestruction(); 20 RemoveAllInfoBarsForDestruction();
18 } 21 }
19 22
(...skipping 16 matching lines...) Expand all
36 39
37 void InfoBarContainerCocoa::InfoBarContainerStateChanged(bool is_animating) { 40 void InfoBarContainerCocoa::InfoBarContainerStateChanged(bool is_animating) {
38 [controller_ positionInfoBarsAndRedraw:is_animating]; 41 [controller_ positionInfoBarsAndRedraw:is_animating];
39 } 42 }
40 43
41 bool InfoBarContainerCocoa::DrawInfoBarArrows(int* x) const { 44 bool InfoBarContainerCocoa::DrawInfoBarArrows(int* x) const {
42 if (x) 45 if (x)
43 *x = [controller_ infobarArrowX]; 46 *x = [controller_ infobarArrowX];
44 return ![controller_ shouldSuppressTopInfoBarTip]; 47 return ![controller_ shouldSuppressTopInfoBarTip];
45 } 48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698