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

Unified Diff: chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa.mm

Issue 1461923002: Change name of NativeTheme::instance() to make it clear it's web only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NATIVE_THEME_EXPORT for mac Created 5 years, 1 month 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/screen_capture_notification_ui_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa.mm b/chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa.mm
index 8b4a10439df7a53036759dd3fb68ee20ac62e7fe..5953fb9f92ee269ae6b21e1c6a7e7d46b7592380 100644
--- a/chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa.mm
+++ b/chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa.mm
@@ -24,6 +24,7 @@
#include "ui/gfx/image/image_skia_util_mac.h"
#include "ui/gfx/text_elider.h"
#include "ui/native_theme/native_theme.h"
+#include "ui/native_theme/native_theme_mac.h"
const CGFloat kMinimumWidth = 460;
const CGFloat kMaximumWidth = 1000;
@@ -236,7 +237,7 @@ scoped_ptr<ScreenCaptureNotificationUI> ScreenCaptureNotificationUI::Create(
@implementation ScreenCaptureNotificationView
- (void)drawRect:(NSRect)dirtyRect {
- [gfx::SkColorToSRGBNSColor(ui::NativeTheme::instance()->GetSystemColor(
+ [gfx::SkColorToSRGBNSColor(ui::NativeThemeMac::instance()->GetSystemColor(
ui::NativeTheme::kColorId_DialogBackground)) set];
[[NSBezierPath bezierPathWithRoundedRect:[self bounds]
xRadius:kWindowCornerRadius

Powered by Google App Engine
This is Rietveld 408576698