OLD | NEW |
(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 |
OLD | NEW |