OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/views/constrained_window_views.h" | 5 #include "chrome/browser/ui/views/constrained_window_views.h" |
6 | 6 |
7 #include "views/widget/native_widget_aura.h" | 7 #include "ui/views/widget/native_widget_aura.h" |
8 | 8 |
9 class NativeConstrainedWindowAura : public NativeConstrainedWindow, | 9 class NativeConstrainedWindowAura : public NativeConstrainedWindow, |
10 public views::NativeWidgetAura { | 10 public views::NativeWidgetAura { |
11 public: | 11 public: |
12 explicit NativeConstrainedWindowAura( | 12 explicit NativeConstrainedWindowAura( |
13 NativeConstrainedWindowDelegate* delegate) | 13 NativeConstrainedWindowDelegate* delegate) |
14 : views::NativeWidgetAura(delegate->AsNativeWidgetDelegate()), | 14 : views::NativeWidgetAura(delegate->AsNativeWidgetDelegate()), |
15 delegate_(delegate) { | 15 delegate_(delegate) { |
16 } | 16 } |
17 | 17 |
(...skipping 14 matching lines...) Expand all Loading... |
32 }; | 32 }; |
33 | 33 |
34 //////////////////////////////////////////////////////////////////////////////// | 34 //////////////////////////////////////////////////////////////////////////////// |
35 // NativeConstrainedWindow, public: | 35 // NativeConstrainedWindow, public: |
36 | 36 |
37 // static | 37 // static |
38 NativeConstrainedWindow* NativeConstrainedWindow::CreateNativeConstrainedWindow( | 38 NativeConstrainedWindow* NativeConstrainedWindow::CreateNativeConstrainedWindow( |
39 NativeConstrainedWindowDelegate* delegate) { | 39 NativeConstrainedWindowDelegate* delegate) { |
40 return new NativeConstrainedWindowAura(delegate); | 40 return new NativeConstrainedWindowAura(delegate); |
41 } | 41 } |
OLD | NEW |