| Index: blimp/client/core/contents/blimp_contents_view_impl.cc
|
| diff --git a/blimp/client/core/contents/blimp_contents_view_impl.cc b/blimp/client/core/contents/blimp_contents_view_impl.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..da006b26fd6ebb3f0b258c1f068b545dffa17322
|
| --- /dev/null
|
| +++ b/blimp/client/core/contents/blimp_contents_view_impl.cc
|
| @@ -0,0 +1,34 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "blimp/client/core/contents/blimp_contents_view_impl.h"
|
| +
|
| +#include "blimp/client/core/contents/blimp_contents_impl.h"
|
| +#include "ui/gfx/geometry/size.h"
|
| +
|
| +namespace blimp {
|
| +namespace client {
|
| +
|
| +BlimpContentsViewImpl::BlimpContentsViewImpl(
|
| + BlimpContentsImpl* blimp_contents,
|
| + scoped_refptr<cc::Layer> contents_layer)
|
| + : blimp_contents_(blimp_contents), contents_layer_(contents_layer) {}
|
| +
|
| +BlimpContentsViewImpl::~BlimpContentsViewImpl() = default;
|
| +
|
| +bool BlimpContentsViewImpl::OnTouchEvent(const ui::MotionEvent& motion_event) {
|
| + return blimp_contents_->compositor_manager()->OnTouchEvent(motion_event);
|
| +}
|
| +
|
| +scoped_refptr<cc::Layer> BlimpContentsViewImpl::GetLayer() {
|
| + return contents_layer_;
|
| +}
|
| +
|
| +void BlimpContentsViewImpl::SetSizeAndScale(const gfx::Size& size,
|
| + float device_scale_factor) {
|
| + blimp_contents_->SetSizeAndScale(size, device_scale_factor);
|
| +}
|
| +
|
| +} // namespace client
|
| +} // namespace blimp
|
|
|