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