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

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

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
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 #include "chrome/browser/ui/cocoa/infobars/infobar_cocoa.h" 5 #include "chrome/browser/ui/cocoa/infobars/infobar_cocoa.h"
6 6
7 const int InfoBar::kSeparatorLineHeight = 1; 7 const int InfoBar::kSeparatorLineHeight = 1;
8 const int InfoBar::kDefaultArrowTargetHeight = 11; 8 const int InfoBar::kDefaultArrowTargetHeight = 11;
9 const int InfoBar::kMaximumArrowTargetHeight = 24; 9 const int InfoBar::kMaximumArrowTargetHeight = 24;
10 const int InfoBar::kDefaultArrowTargetHalfWidth = kDefaultArrowTargetHeight; 10 const int InfoBar::kDefaultArrowTargetHalfWidth = kDefaultArrowTargetHeight;
11 const int InfoBar::kMaximumArrowTargetHalfWidth = 14; 11 const int InfoBar::kMaximumArrowTargetHalfWidth = 14;
12 const int InfoBar::kDefaultBarTargetHeight = 36; 12 const int InfoBar::kDefaultBarTargetHeight = 36;
13 13
14 InfoBarCocoa::InfoBarCocoa(InfoBarService* owner, InfoBarDelegate* delegate) 14 InfoBarCocoa::InfoBarCocoa(scoped_ptr<InfoBarDelegate> delegate)
15 : InfoBar(owner, delegate) { 15 : InfoBar(delegate.Pass()) {
16 } 16 }
17 17
18 InfoBarCocoa::~InfoBarCocoa() { 18 InfoBarCocoa::~InfoBarCocoa() {
19 } 19 }
20 20
21 void InfoBarCocoa::RemoveSelfCocoa() {
22 RemoveSelf();
23 }
24
25 InfoBarService* InfoBarCocoa::OwnerCocoa() { 21 InfoBarService* InfoBarCocoa::OwnerCocoa() {
26 return owner(); 22 return owner();
27 } 23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698