OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "content/browser/renderer_host/render_widget_host_view.h" | 5 #include "content/browser/renderer_host/render_widget_host_view.h" |
6 | 6 |
| 7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/mac/WebScreenInfoFact
ory.h" |
| 9 |
| 10 // TODO(jam): move this to render_widget_host_view_mac.mm when it moves to |
| 11 // content. |
| 12 #if defined(OS_MACOSX) |
| 13 // static |
| 14 void RenderWidgetHostView::GetDefaultScreenInfo( |
| 15 WebKit::WebScreenInfo* results) { |
| 16 *results = WebKit::WebScreenInfoFactory::screenInfo(NULL); |
| 17 } |
| 18 #endif |
| 19 |
7 RenderWidgetHostView::~RenderWidgetHostView() {} | 20 RenderWidgetHostView::~RenderWidgetHostView() {} |
8 | 21 |
9 void RenderWidgetHostView::SetBackground(const SkBitmap& background) { | 22 void RenderWidgetHostView::SetBackground(const SkBitmap& background) { |
10 background_ = background; | 23 background_ = background; |
11 } | 24 } |
OLD | NEW |