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