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/tab_contents/native_tab_contents_view_aura.h" | 5 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.h" |
6 | 6 |
7 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate
.h" | 7 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate
.h" |
8 #include "content/browser/renderer_host/render_widget_host_view_aura.h" | 8 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
9 #include "content/browser/tab_contents/tab_contents.h" | 9 #include "content/browser/tab_contents/tab_contents.h" |
10 #include "content/browser/tab_contents/tab_contents_view.h" | 10 #include "content/browser/tab_contents/tab_contents_view.h" |
11 #include "ui/aura/event.h" | 11 #include "ui/aura/event.h" |
12 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
13 #include "ui/views/widget/widget.h" | |
14 #include "views/views_delegate.h" | 13 #include "views/views_delegate.h" |
| 14 #include "views/widget/widget.h" |
15 | 15 |
16 //////////////////////////////////////////////////////////////////////////////// | 16 //////////////////////////////////////////////////////////////////////////////// |
17 // NativeTabContentsViewAura, public: | 17 // NativeTabContentsViewAura, public: |
18 | 18 |
19 NativeTabContentsViewAura::NativeTabContentsViewAura( | 19 NativeTabContentsViewAura::NativeTabContentsViewAura( |
20 internal::NativeTabContentsViewDelegate* delegate) | 20 internal::NativeTabContentsViewDelegate* delegate) |
21 : views::NativeWidgetAura(delegate->AsNativeWidgetDelegate()), | 21 : views::NativeWidgetAura(delegate->AsNativeWidgetDelegate()), |
22 delegate_(delegate) { | 22 delegate_(delegate) { |
23 } | 23 } |
24 | 24 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 } | 137 } |
138 | 138 |
139 //////////////////////////////////////////////////////////////////////////////// | 139 //////////////////////////////////////////////////////////////////////////////// |
140 // NativeTabContentsView, public: | 140 // NativeTabContentsView, public: |
141 | 141 |
142 // static | 142 // static |
143 NativeTabContentsView* NativeTabContentsView::CreateNativeTabContentsView( | 143 NativeTabContentsView* NativeTabContentsView::CreateNativeTabContentsView( |
144 internal::NativeTabContentsViewDelegate* delegate) { | 144 internal::NativeTabContentsViewDelegate* delegate) { |
145 return new NativeTabContentsViewAura(delegate); | 145 return new NativeTabContentsViewAura(delegate); |
146 } | 146 } |
OLD | NEW |