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

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

Issue 11415227: Telemtry: hooks "chrome.gpuBenchmarking.smoothScrollBy" with java on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove inline virtual dtor Created 8 years 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_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/accessibility/browser_accessibility_manager.h" 8 #include "content/browser/accessibility/browser_accessibility_manager.h"
9 #include "content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture. h" 9 #include "content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture. h"
10 #include "content/browser/renderer_host/render_widget_host_impl.h" 10 #include "content/browser/renderer_host/render_widget_host_impl.h"
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 gfx::Display display = 417 gfx::Display display =
418 gfx::Screen::GetScreenFor(view)->GetDisplayNearestPoint( 418 gfx::Screen::GetScreenFor(view)->GetDisplayNearestPoint(
419 GetViewBounds().origin()); 419 GetViewBounds().origin());
420 if (current_display_area_ == display.work_area() && 420 if (current_display_area_ == display.work_area() &&
421 current_device_scale_factor_ == display.device_scale_factor()) 421 current_device_scale_factor_ == display.device_scale_factor())
422 return; 422 return;
423 current_display_area_ = display.work_area(); 423 current_display_area_ = display.work_area();
424 current_device_scale_factor_ = display.device_scale_factor(); 424 current_device_scale_factor_ = display.device_scale_factor();
425 if (impl) 425 if (impl)
426 impl->NotifyScreenInfoChanged(); 426 impl->NotifyScreenInfoChanged();
427 } 427 }
428 428
429 SmoothScrollGesture* RenderWidgetHostViewBase::CreateSmoothScrollGesture( 429 SmoothScrollGesture* RenderWidgetHostViewBase::CreateSmoothScrollGesture(
430 bool scroll_down, int pixels_to_scroll, int mouse_event_x, 430 bool scroll_down, int pixels_to_scroll, int mouse_event_x,
431 int mouse_event_y) { 431 int mouse_event_y) {
432 return new BasicMouseWheelSmoothScrollGesture(scroll_down, pixels_to_scroll, 432 return new BasicMouseWheelSmoothScrollGesture(scroll_down, pixels_to_scroll,
433 mouse_event_x, mouse_event_y); 433 mouse_event_x, mouse_event_y);
434 } 434 }
435 435
436 void RenderWidgetHostViewBase::ProcessAckedTouchEvent( 436 void RenderWidgetHostViewBase::ProcessAckedTouchEvent(
437 const WebKit::WebTouchEvent& touch, InputEventAckState ack_result) { 437 const WebKit::WebTouchEvent& touch, InputEventAckState ack_result) {
438 } 438 }
439 439
440 } // namespace content 440 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698