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

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

Issue 248383002: Revert of mac: History swiping doesn't work right with iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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
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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/shared_memory.h" 9 #include "base/memory/shared_memory.h"
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 459
460 // RenderWidgetHostView override. 460 // RenderWidgetHostView override.
461 virtual gfx::Rect GetViewBounds() const OVERRIDE { 461 virtual gfx::Rect GetViewBounds() const OVERRIDE {
462 return bounds_; 462 return bounds_;
463 } 463 }
464 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, 464 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
465 InputEventAckState ack_result) OVERRIDE { 465 InputEventAckState ack_result) OVERRIDE {
466 acked_event_ = touch.event; 466 acked_event_ = touch.event;
467 ++acked_event_count_; 467 ++acked_event_count_;
468 } 468 }
469 virtual void HandledWheelEvent(const blink::WebMouseWheelEvent& event, 469 virtual void UnhandledWheelEvent(const WebMouseWheelEvent& event) OVERRIDE {
470 bool consumed) OVERRIDE { 470 unhandled_wheel_event_count_++;
471 if (!consumed) { 471 unhandled_wheel_event_ = event;
472 unhandled_wheel_event_count_++;
473 unhandled_wheel_event_ = event;
474 }
475 } 472 }
476 virtual void GestureEventAck(const WebGestureEvent& event, 473 virtual void GestureEventAck(const WebGestureEvent& event,
477 InputEventAckState ack_result) OVERRIDE { 474 InputEventAckState ack_result) OVERRIDE {
478 gesture_event_type_ = event.type; 475 gesture_event_type_ = event.type;
479 ack_result_ = ack_result; 476 ack_result_ = ack_result;
480 } 477 }
481 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE { 478 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE {
482 if (use_fake_physical_backing_size_) 479 if (use_fake_physical_backing_size_)
483 return mock_physical_backing_size_; 480 return mock_physical_backing_size_;
484 return TestRenderWidgetHostView::GetPhysicalBackingSize(); 481 return TestRenderWidgetHostView::GetPhysicalBackingSize();
(...skipping 2129 matching lines...) Expand 10 before | Expand all | Expand 10 after
2614 2611
2615 // Tests RWHI::ForwardTouchEventWithLatencyInfo(). 2612 // Tests RWHI::ForwardTouchEventWithLatencyInfo().
2616 PressTouchPoint(0, 1); 2613 PressTouchPoint(0, 1);
2617 SendTouchEvent(); 2614 SendTouchEvent();
2618 CheckLatencyInfoComponentInMessage( 2615 CheckLatencyInfoComponentInMessage(
2619 process_, GetLatencyComponentId(), WebInputEvent::TouchStart); 2616 process_, GetLatencyComponentId(), WebInputEvent::TouchStart);
2620 SendInputEventACK(WebInputEvent::TouchStart, INPUT_EVENT_ACK_STATE_CONSUMED); 2617 SendInputEventACK(WebInputEvent::TouchStart, INPUT_EVENT_ACK_STATE_CONSUMED);
2621 } 2618 }
2622 2619
2623 } // namespace content 2620 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698