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/renderer_host/render_widget_host_view_views.h" | 5 #include "chrome/browser/renderer_host/render_widget_host_view_views.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #if !defined(USE_AURA) |
8 #include "content/browser/renderer_host/render_widget_host_view_win.h" | 9 #include "content/browser/renderer_host/render_widget_host_view_win.h" |
| 10 #endif |
9 #include "views/widget/widget.h" | 11 #include "views/widget/widget.h" |
10 | 12 |
11 // static | 13 // static |
12 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget( | 14 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget( |
13 RenderWidgetHost* widget) { | 15 RenderWidgetHost* widget) { |
| 16 #if !defined(USE_AURA) |
14 if (views::Widget::IsPureViews()) | 17 if (views::Widget::IsPureViews()) |
| 18 #endif |
15 return new RenderWidgetHostViewViews(widget); | 19 return new RenderWidgetHostViewViews(widget); |
| 20 #if !defined(USE_AURA) |
16 return new RenderWidgetHostViewWin(widget); | 21 return new RenderWidgetHostViewWin(widget); |
| 22 #endif |
17 } | 23 } |
18 | 24 |
19 void RenderWidgetHostViewViews::UpdateCursor(const WebCursor& cursor) { | 25 void RenderWidgetHostViewViews::UpdateCursor(const WebCursor& cursor) { |
20 } | 26 } |
21 | 27 |
22 void RenderWidgetHostViewViews::WillWmDestroy() { | 28 void RenderWidgetHostViewViews::WillWmDestroy() { |
23 NOTIMPLEMENTED(); | 29 NOTIMPLEMENTED(); |
24 } | 30 } |
25 | 31 |
26 void RenderWidgetHostViewViews::ShowCompositorHostWindow(bool show) { | 32 void RenderWidgetHostViewViews::ShowCompositorHostWindow(bool show) { |
27 NOTIMPLEMENTED(); | 33 NOTIMPLEMENTED(); |
28 } | 34 } |
29 | 35 |
30 gfx::PluginWindowHandle RenderWidgetHostViewViews::GetCompositingSurface() { | 36 gfx::PluginWindowHandle RenderWidgetHostViewViews::GetCompositingSurface() { |
31 NOTIMPLEMENTED(); | 37 NOTIMPLEMENTED(); |
32 return NULL; | 38 return NULL; |
33 } | 39 } |
34 | 40 |
35 void RenderWidgetHostViewViews::ShowCurrentCursor() { | 41 void RenderWidgetHostViewViews::ShowCurrentCursor() { |
36 NOTIMPLEMENTED(); | 42 NOTIMPLEMENTED(); |
37 } | 43 } |
OLD | NEW |