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 "content/browser/renderer_host/backing_store_skia.h" | 9 #include "content/browser/renderer_host/backing_store_skia.h" |
10 #include "content/browser/renderer_host/image_transport_factory.h" | 10 #include "content/browser/renderer_host/image_transport_factory.h" |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 // concept of what constitutes a toplevel right now, so just do | 462 // concept of what constitutes a toplevel right now, so just do |
463 // this. | 463 // this. |
464 return window_->GetScreenBounds(); | 464 return window_->GetScreenBounds(); |
465 } | 465 } |
466 | 466 |
467 void RenderWidgetHostViewAura::UnhandledWheelEvent( | 467 void RenderWidgetHostViewAura::UnhandledWheelEvent( |
468 const WebKit::WebMouseWheelEvent& event) { | 468 const WebKit::WebMouseWheelEvent& event) { |
469 // Not needed. Mac-only. | 469 // Not needed. Mac-only. |
470 } | 470 } |
471 | 471 |
472 void RenderWidgetHostViewAura::ProcessTouchAck( | 472 void RenderWidgetHostViewAura::ProcessTouchAck(bool processed) { |
473 WebKit::WebInputEvent::Type type, bool processed) { | |
474 // The ACKs for the touch-events arrive in the same sequence as they were | 473 // The ACKs for the touch-events arrive in the same sequence as they were |
475 // dispatched. | 474 // dispatched. |
476 aura::RootWindow* root_window = window_->GetRootWindow(); | 475 aura::RootWindow* root_window = window_->GetRootWindow(); |
477 if (root_window) | 476 if (root_window) |
478 root_window->AdvanceQueuedTouchEvent(window_, processed); | 477 root_window->AdvanceQueuedTouchEvent(window_, processed); |
479 } | 478 } |
480 | 479 |
481 void RenderWidgetHostViewAura::SetHasHorizontalScrollbar( | 480 void RenderWidgetHostViewAura::SetHasHorizontalScrollbar( |
482 bool has_horizontal_scrollbar) { | 481 bool has_horizontal_scrollbar) { |
483 // Not needed. Mac-only. | 482 // Not needed. Mac-only. |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 WebKit::WebScreenInfo* results) { | 1049 WebKit::WebScreenInfo* results) { |
1051 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); | 1050 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); |
1052 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); | 1051 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); |
1053 results->availableRect = results->rect; | 1052 results->availableRect = results->rect; |
1054 // TODO(derat): Don't hardcode this? | 1053 // TODO(derat): Don't hardcode this? |
1055 results->depth = 24; | 1054 results->depth = 24; |
1056 results->depthPerComponent = 8; | 1055 results->depthPerComponent = 8; |
1057 results->verticalDPI = 96; | 1056 results->verticalDPI = 96; |
1058 results->horizontalDPI = 96; | 1057 results->horizontalDPI = 96; |
1059 } | 1058 } |
OLD | NEW |