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

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

Issue 7841012: Get chrome to link 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/native_constrained_window_aura.cc
===================================================================
--- chrome/browser/ui/views/native_constrained_window_aura.cc (revision 0)
+++ chrome/browser/ui/views/native_constrained_window_aura.cc (revision 0)
@@ -0,0 +1,40 @@
+// Copyright (c) 2011 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/views/constrained_window_views.h"
+
+#include "views/widget/native_widget_aura.h"
+
+class NativeConstrainedWindowAura : public NativeConstrainedWindow,
+ public views::NativeWidgetAura {
+ public:
+ explicit NativeConstrainedWindowAura(NativeConstrainedWindowDelegate* delegate)
+ : views::NativeWidgetAura(delegate->AsNativeWidgetDelegate()),
+ delegate_(delegate) {
+ }
+
+ virtual ~NativeConstrainedWindowAura() {
+ }
+
+ private:
+ // Overridden from NativeConstrainedWindow:
+ virtual views::NativeWidget* AsNativeWidget() OVERRIDE {
+ return this;
+ }
+
+ // Overridden from views::NativeWidgetAura:
+
+ NativeConstrainedWindowDelegate* delegate_;
+
+ DISALLOW_COPY_AND_ASSIGN(NativeConstrainedWindowAura);
+};
+
+////////////////////////////////////////////////////////////////////////////////
+// NativeConstrainedWindow, public:
+
+// static
+NativeConstrainedWindow* NativeConstrainedWindow::CreateNativeConstrainedWindow(
+ NativeConstrainedWindowDelegate* delegate) {
+ return new NativeConstrainedWindowAura(delegate);
+}
Property changes on: chrome\browser\ui\views\native_constrained_window_aura.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | chrome/browser/ui/views/shell_dialogs_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698