Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 9549020: Improve switch between gestures and touch mode when kEnableTouchEvents (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 // concept of what constitutes a toplevel right now, so just do 482 // concept of what constitutes a toplevel right now, so just do
483 // this. 483 // this.
484 return window_->GetScreenBounds(); 484 return window_->GetScreenBounds();
485 } 485 }
486 486
487 void RenderWidgetHostViewAura::UnhandledWheelEvent( 487 void RenderWidgetHostViewAura::UnhandledWheelEvent(
488 const WebKit::WebMouseWheelEvent& event) { 488 const WebKit::WebMouseWheelEvent& event) {
489 // Not needed. Mac-only. 489 // Not needed. Mac-only.
490 } 490 }
491 491
492 void RenderWidgetHostViewAura::ProcessTouchAck(bool processed) { 492 void RenderWidgetHostViewAura::ProcessTouchAck(
493 WebKit::WebInputEvent::Type type, bool processed) {
493 // The ACKs for the touch-events arrive in the same sequence as they were 494 // The ACKs for the touch-events arrive in the same sequence as they were
494 // dispatched. 495 // dispatched.
495 aura::RootWindow* root_window = window_->GetRootWindow(); 496 aura::RootWindow* root_window = window_->GetRootWindow();
496 if (root_window) 497 if (root_window)
497 root_window->AdvanceQueuedTouchEvent(window_, processed); 498 root_window->AdvanceQueuedTouchEvent(window_, processed);
498 } 499 }
499 500
500 void RenderWidgetHostViewAura::SetHasHorizontalScrollbar( 501 void RenderWidgetHostViewAura::SetHasHorizontalScrollbar(
501 bool has_horizontal_scrollbar) { 502 bool has_horizontal_scrollbar) {
502 // Not needed. Mac-only. 503 // Not needed. Mac-only.
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 WebKit::WebScreenInfo* results) { 1070 WebKit::WebScreenInfo* results) {
1070 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); 1071 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize();
1071 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); 1072 results->rect = WebKit::WebRect(0, 0, size.width(), size.height());
1072 results->availableRect = results->rect; 1073 results->availableRect = results->rect;
1073 // TODO(derat): Don't hardcode this? 1074 // TODO(derat): Don't hardcode this?
1074 results->depth = 24; 1075 results->depth = 24;
1075 results->depthPerComponent = 8; 1076 results->depthPerComponent = 8;
1076 results->verticalDPI = 96; 1077 results->verticalDPI = 96;
1077 results->horizontalDPI = 96; 1078 results->horizontalDPI = 96;
1078 } 1079 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698