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

Unified Diff: chrome/browser/ui/cocoa/infobars/infobar_cocoa.mm

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nib name on mac Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/infobars/infobar_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/infobars/infobar_cocoa.mm b/chrome/browser/ui/cocoa/infobars/infobar_cocoa.mm
index 7ba03e59c1b89435a17e6dc1cc2401de5d5211e5..dd25e546333eb0491b9544cf4c28a2f1a25df0fc 100644
--- a/chrome/browser/ui/cocoa/infobars/infobar_cocoa.mm
+++ b/chrome/browser/ui/cocoa/infobars/infobar_cocoa.mm
@@ -6,15 +6,16 @@
#import "chrome/browser/ui/cocoa/infobars/infobar_controller.h"
-const int InfoBar::kSeparatorLineHeight = 1;
-const int InfoBar::kDefaultArrowTargetHeight = 11;
-const int InfoBar::kMaximumArrowTargetHeight = 24;
-const int InfoBar::kDefaultArrowTargetHalfWidth = kDefaultArrowTargetHeight;
-const int InfoBar::kMaximumArrowTargetHalfWidth = 14;
-const int InfoBar::kDefaultBarTargetHeight = 36;
+const int infobars::InfoBar::kSeparatorLineHeight = 1;
+const int infobars::InfoBar::kDefaultArrowTargetHeight = 11;
+const int infobars::InfoBar::kMaximumArrowTargetHeight = 24;
+const int infobars::InfoBar::kDefaultArrowTargetHalfWidth =
+ kDefaultArrowTargetHeight;
+const int infobars::InfoBar::kMaximumArrowTargetHalfWidth = 14;
+const int infobars::InfoBar::kDefaultBarTargetHeight = 36;
-InfoBarCocoa::InfoBarCocoa(scoped_ptr<InfoBarDelegate> delegate)
- : InfoBar(delegate.Pass()),
+InfoBarCocoa::InfoBarCocoa(scoped_ptr<infobars::InfoBarDelegate> delegate)
+ : infobars::InfoBar(delegate.Pass()),
weak_ptr_factory_(this) {
}
@@ -23,9 +24,7 @@ InfoBarCocoa::~InfoBarCocoa() {
[controller() infobarWillClose];
}
-InfoBarManager* InfoBarCocoa::OwnerCocoa() {
- return owner();
-}
+infobars::InfoBarManager* InfoBarCocoa::OwnerCocoa() { return owner(); }
base::WeakPtr<InfoBarCocoa> InfoBarCocoa::GetWeakPtr() {
return weak_ptr_factory_.GetWeakPtr();
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/infobar_cocoa.h ('k') | chrome/browser/ui/cocoa/infobars/infobar_container_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698