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

Unified Diff: ui/views/widget/native_widget_mac.mm

Issue 328103002: MacViews: Provide CreateNativeWidget and a stub NativeThemeMac in NativeWidgetMac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cite bug Created 6 years, 6 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
« no previous file with comments | « ui/native_theme/native_theme_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_mac.mm
diff --git a/ui/views/widget/native_widget_mac.mm b/ui/views/widget/native_widget_mac.mm
index 8dc3c40dc1144a08e4f53d4a102cf289137f443f..5a42641ea769d768644329f9ae7869f83d6e5d1f 100644
--- a/ui/views/widget/native_widget_mac.mm
+++ b/ui/views/widget/native_widget_mac.mm
@@ -7,6 +7,7 @@
#include <Cocoa/Cocoa.h>
#include "ui/gfx/font_list.h"
+#include "ui/native_theme/native_theme.h"
namespace views {
@@ -347,8 +348,7 @@ void NativeWidgetMac::SetVisibilityChangedAnimationsEnabled(bool value) {
}
ui::NativeTheme* NativeWidgetMac::GetNativeTheme() const {
- NOTIMPLEMENTED();
- return NULL;
+ return ui::NativeTheme::instance();
}
void NativeWidgetMac::OnRootViewLayout() const {
@@ -376,8 +376,7 @@ namespace internal {
// static
NativeWidgetPrivate* NativeWidgetPrivate::CreateNativeWidget(
internal::NativeWidgetDelegate* delegate) {
- NOTIMPLEMENTED();
- return NULL;
+ return new NativeWidgetMac(delegate);
}
// static
« no previous file with comments | « ui/native_theme/native_theme_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698