// Copyright 2015 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. #ifndef COMPONENTS_HTML_VIEWER_WEB_LAYER_IMPL_H_ #define COMPONENTS_HTML_VIEWER_WEB_LAYER_IMPL_H_ #include #include "cc/blink/web_layer_impl.h" namespace mojo { class View; } namespace html_viewer { class WebLayerImpl : public cc_blink::WebLayerImpl { public: WebLayerImpl(mojo::View* view, float device_pixel_ratio); ~WebLayerImpl() override; // WebLayer implementation. void setBounds(const blink::WebSize& bounds) override; void setPosition(const blink::WebFloatPoint& position) override; private: mojo::View* view_; const float device_pixel_ratio_; DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); }; } // namespace html_viewer #endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_IMPL_H_