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

Side by Side Diff: blimp/client/core/contents/blimp_contents_view_impl.cc

Issue 2320923002: Add a full Blimp integration test. (Closed)
Patch Set: Fixed this a bit more. Still some thread violations :(. 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "blimp/client/core/contents/blimp_contents_view_impl.h"
6
7 #include "blimp/client/core/contents/blimp_contents_impl.h"
8 #include "ui/gfx/geometry/size.h"
9
10 namespace blimp {
11 namespace client {
12
13 BlimpContentsViewImpl::BlimpContentsViewImpl(
14 BlimpContentsImpl* blimp_contents,
15 scoped_refptr<cc::Layer> contents_layer)
16 : blimp_contents_(blimp_contents), contents_layer_(contents_layer) {}
17
18 BlimpContentsViewImpl::~BlimpContentsViewImpl() = default;
19
20 bool BlimpContentsViewImpl::OnTouchEvent(const ui::MotionEvent& motion_event) {
21 return blimp_contents_->compositor_manager()->OnTouchEvent(motion_event);
22 }
23
24 scoped_refptr<cc::Layer> BlimpContentsViewImpl::GetLayer() {
25 return contents_layer_;
26 }
27
28 void BlimpContentsViewImpl::SetSizeAndScale(const gfx::Size& size,
29 float device_scale_factor) {
30 blimp_contents_->SetSizeAndScale(size, device_scale_factor);
31 }
32
33 } // namespace client
34 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698