| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/browser/renderer_host/backing_store_skia.h" | 8 #include "content/browser/renderer_host/backing_store_skia.h" |
| 9 #include "content/browser/renderer_host/render_widget_host.h" | 9 #include "content/browser/renderer_host/render_widget_host.h" |
| 10 #include "content/browser/renderer_host/web_input_event_aura.h" | 10 #include "content/browser/renderer_host/web_input_event_aura.h" |
| (...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 910 | 910 |
| 911 // static | 911 // static |
| 912 void RenderWidgetHostView::GetDefaultScreenInfo( | 912 void RenderWidgetHostView::GetDefaultScreenInfo( |
| 913 WebKit::WebScreenInfo* results) { | 913 WebKit::WebScreenInfo* results) { |
| 914 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); | 914 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); |
| 915 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); | 915 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); |
| 916 results->availableRect = results->rect; | 916 results->availableRect = results->rect; |
| 917 // TODO(derat): Don't hardcode this? | 917 // TODO(derat): Don't hardcode this? |
| 918 results->depth = 24; | 918 results->depth = 24; |
| 919 results->depthPerComponent = 8; | 919 results->depthPerComponent = 8; |
| 920 results->verticalDPI = 96; |
| 921 results->horizontalDPI = 96; |
| 920 } | 922 } |
| OLD | NEW |