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

Side by Side Diff: content/renderer/render_widget_unittest.cc

Issue 2317563004: Change blink::WebScreenInfo to content::ScreenInfo (Closed)
Patch Set: Fix Windows compile Created 4 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include <tuple> 7 #include <tuple>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 blink::WebInputEventResult(const blink::WebInputEvent&)); 45 blink::WebInputEventResult(const blink::WebInputEvent&));
46 }; 46 };
47 47
48 } // namespace 48 } // namespace
49 49
50 class InteractiveRenderWidget : public RenderWidget { 50 class InteractiveRenderWidget : public RenderWidget {
51 public: 51 public:
52 explicit InteractiveRenderWidget(CompositorDependencies* compositor_deps) 52 explicit InteractiveRenderWidget(CompositorDependencies* compositor_deps)
53 : RenderWidget(compositor_deps, 53 : RenderWidget(compositor_deps,
54 blink::WebPopupTypeNone, 54 blink::WebPopupTypeNone,
55 blink::WebScreenInfo(), 55 ScreenInfo(),
56 false, 56 false,
57 false, 57 false,
58 false), 58 false),
59 always_overscroll_(false) { 59 always_overscroll_(false) {
60 webwidget_ = &mock_webwidget_; 60 webwidget_ = &mock_webwidget_;
61 // A RenderWidget is not fully initialized until it has a routing ID. 61 // A RenderWidget is not fully initialized until it has a routing ID.
62 SetRoutingID(++next_routing_id_); 62 SetRoutingID(++next_routing_id_);
63 } 63 }
64 64
65 void SetTouchRegion(const std::vector<gfx::Rect>& rects) { 65 void SetTouchRegion(const std::vector<gfx::Rect>& rects) {
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 2); 360 2);
361 361
362 touch.MovePoint(0, 30, 30); 362 touch.MovePoint(0, 30, 30);
363 touch.touchStartOrFirstTouchMove = false; 363 touch.touchStartOrFirstTouchMove = false;
364 widget()->SendInputEvent(touch); 364 widget()->SendInputEvent(touch);
365 histogram_tester().ExpectTotalCount("Event.Touch.TouchLatencyOutsideFling", 365 histogram_tester().ExpectTotalCount("Event.Touch.TouchLatencyOutsideFling",
366 2); 366 2);
367 } 367 }
368 368
369 } // namespace content 369 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698