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

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

Issue 23338005: Mac InfoBar: Use cross platform infobar classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
new file mode 100644
index 0000000000000000000000000000000000000000..f0ac0fa733fc183330a84b6c243a23dc97c4d2c5
--- /dev/null
+++ b/chrome/browser/ui/cocoa/infobars/infobar_cocoa.mm
@@ -0,0 +1,27 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/cocoa/infobars/infobar_cocoa.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;
+
+InfoBarCocoa::InfoBarCocoa(InfoBarService* owner, InfoBarDelegate* delegate)
+ : InfoBar(owner, delegate) {
+}
+
+InfoBarCocoa::~InfoBarCocoa() {
+}
+
+void InfoBarCocoa::RemoveSelfCocoa() {
+ RemoveSelf();
+}
+
+InfoBarService* InfoBarCocoa::OwnerCocoa() {
+ return owner();
+}
« 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