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

Unified Diff: chrome/browser/ui/views/constrained_window_views.cc

Issue 7834048: Preliminary work to allow Chrome to build with USE_AURA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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/views/constrained_window_views.cc
===================================================================
--- chrome/browser/ui/views/constrained_window_views.cc (revision 99764)
+++ chrome/browser/ui/views/constrained_window_views.cc (working copy)
@@ -35,7 +35,7 @@
#include "views/window/window_resources.h"
#include "views/window/window_shape.h"
-#if defined(OS_WIN)
+#if defined(OS_WIN) && !defined(USE_AURA)
#include "views/widget/native_widget_win.h"
#endif
@@ -205,7 +205,7 @@
SkColor GetTitleColor() const {
return container_->owner()->browser_context()->IsOffTheRecord()
-#if defined(OS_WIN)
+#if defined(OS_WIN) && !defined(USE_AURA)
|| !views::NativeWidgetWin::IsAeroGlassEnabled()
#endif
? SK_ColorWHITE : SK_ColorBLACK;
@@ -545,17 +545,23 @@
}
void ConstrainedWindowFrameView::InitWindowResources() {
+#if !defined(USE_AURA)
resources_.reset(views::NativeWidgetWin::IsAeroGlassEnabled() ?
- static_cast<views::WindowResources*>(new VistaWindowResources) :
- new XPWindowResources);
+ static_cast<views::WindowResources*>(new VistaWindowResources) :
+ new XPWindowResources);
+#endif
}
// static
void ConstrainedWindowFrameView::InitClass() {
static bool initialized = false;
if (!initialized) {
-#if defined(OS_WIN)
+#if defined(OS_WIN) && !defined(USE_AURA)
title_font_ = new gfx::Font(views::NativeWidgetWin::GetWindowTitleFont());
+#elif defined(USE_AURA)
+ // TODO(beng):
+ NOTIMPLEMENTED();
+ title_font_ = NULL;
#endif
initialized = true;
}

Powered by Google App Engine
This is Rietveld 408576698