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

Unified Diff: chrome/browser/ui/cocoa/infobars/infobar_gradient_view.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_gradient_view.mm
diff --git a/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm b/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm
index 4b0c70ba192be8fbe30ca13d9b5ac98c42ea7556..e96d5674c9c7c7270fe6c6f39dbbb9cb94ced9c4 100644
--- a/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm
+++ b/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm
@@ -5,13 +5,13 @@
#include "chrome/browser/ui/cocoa/infobars/infobar_gradient_view.h"
#include "base/mac/scoped_nsobject.h"
-#include "chrome/browser/infobars/infobar.h"
#import "chrome/browser/themes/theme_properties.h"
#import "chrome/browser/ui/cocoa/browser_window_controller.h"
#import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h"
#import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h"
#import "chrome/browser/ui/cocoa/nsview_additions.h"
#import "chrome/browser/ui/cocoa/themed_window.h"
+#include "components/infobars/core/infobar.h"
#include "skia/ext/skia_utils_mac.h"
#include "ui/base/theme_provider.h"
@@ -36,9 +36,9 @@
return self;
}
-- (void)setInfobarType:(InfoBarDelegate::Type)infobarType {
- SkColor topColor = InfoBar::GetTopColor(infobarType);
- SkColor bottomColor = InfoBar::GetBottomColor(infobarType);
+- (void)setInfobarType:(infobars::InfoBarDelegate::Type)infobarType {
+ SkColor topColor = infobars::InfoBar::GetTopColor(infobarType);
+ SkColor bottomColor = infobars::InfoBar::GetBottomColor(infobarType);
base::scoped_nsobject<NSGradient> gradient([[NSGradient alloc]
initWithStartingColor:gfx::SkColorToCalibratedNSColor(topColor)
endingColor:gfx::SkColorToCalibratedNSColor(bottomColor)]);
@@ -58,7 +58,7 @@
- (void)drawRect:(NSRect)rect {
NSRect bounds = [self bounds];
- bounds.size.height = InfoBar::kDefaultBarTargetHeight;
+ bounds.size.height = infobars::InfoBar::kDefaultBarTargetHeight;
CGFloat tipXOffset = arrowX_ - arrowHalfWidth_;
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/infobar_gradient_view.h ('k') | chrome/browser/ui/cocoa/infobars/infobar_utilities.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698