Chromium Code Reviews| 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/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "content/browser/renderer_host/backing_store_skia.h" | 10 #include "content/browser/renderer_host/backing_store_skia.h" |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 25 #include "ui/aura/root_window.h" | 25 #include "ui/aura/root_window.h" |
| 26 #include "ui/aura/window.h" | 26 #include "ui/aura/window.h" |
| 27 #include "ui/aura/window_observer.h" | 27 #include "ui/aura/window_observer.h" |
| 28 #include "ui/base/gestures/gesture_recognizer.h" | 28 #include "ui/base/gestures/gesture_recognizer.h" |
| 29 #include "ui/base/hit_test.h" | 29 #include "ui/base/hit_test.h" |
| 30 #include "ui/base/ime/input_method.h" | 30 #include "ui/base/ime/input_method.h" |
| 31 #include "ui/base/ui_base_types.h" | 31 #include "ui/base/ui_base_types.h" |
| 32 #include "ui/gfx/canvas.h" | 32 #include "ui/gfx/canvas.h" |
| 33 #include "ui/gfx/compositor/compositor.h" | 33 #include "ui/gfx/compositor/compositor.h" |
| 34 #include "ui/gfx/compositor/layer.h" | 34 #include "ui/gfx/compositor/layer.h" |
| 35 #include "ui/gfx/monitor.h" | |
| 35 #include "ui/gfx/screen.h" | 36 #include "ui/gfx/screen.h" |
| 36 #include "ui/gfx/skia_util.h" | 37 #include "ui/gfx/skia_util.h" |
| 37 | 38 |
| 38 using content::BrowserThread; | 39 using content::BrowserThread; |
| 39 using content::RenderWidgetHost; | 40 using content::RenderWidgetHost; |
| 40 using content::RenderWidgetHostImpl; | 41 using content::RenderWidgetHostImpl; |
| 41 using content::RenderWidgetHostView; | 42 using content::RenderWidgetHostView; |
| 42 using WebKit::WebTouchEvent; | 43 using WebKit::WebTouchEvent; |
| 43 | 44 |
| 44 namespace { | 45 namespace { |
| (...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1243 | 1244 |
| 1244 // static | 1245 // static |
| 1245 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget( | 1246 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget( |
| 1246 RenderWidgetHost* widget) { | 1247 RenderWidgetHost* widget) { |
| 1247 return new RenderWidgetHostViewAura(widget); | 1248 return new RenderWidgetHostViewAura(widget); |
| 1248 } | 1249 } |
| 1249 | 1250 |
| 1250 // static | 1251 // static |
| 1251 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo( | 1252 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo( |
| 1252 WebKit::WebScreenInfo* results) { | 1253 WebKit::WebScreenInfo* results) { |
| 1253 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); | 1254 const gfx::Size size = gfx::Screen::GetPrimaryMonitor()->GetBounds().size(); |
| 1254 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); | 1255 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); |
| 1255 results->availableRect = results->rect; | 1256 results->availableRect = results->rect; |
| 1256 // TODO(derat): Don't hardcode this? | 1257 // TODO(derat): Don't hardcode this? |
|
Fady Samuel
2012/04/10 16:58:09
Drive-by: Could we please not hardcode this anymor
oshima
2012/04/10 21:31:46
Since it's unrelated to this CL, I'd prefer it to
| |
| 1257 results->depth = 24; | 1258 results->depth = 24; |
| 1258 results->depthPerComponent = 8; | 1259 results->depthPerComponent = 8; |
| 1259 results->verticalDPI = 96; | 1260 results->verticalDPI = 96; |
| 1260 results->horizontalDPI = 96; | 1261 results->horizontalDPI = 96; |
| 1261 } | 1262 } |
| OLD | NEW |