blob: 779c69f1278218bdbbbd355ce3861f1200651dbb [file] [log] [blame]
// 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 <utility>
#include "cc/blink/web_layer_impl.h"
#include "cc/layers/surface_layer.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;
private:
mojo::View* view_;
const float device_pixel_ratio_;
scoped_refptr<cc::SurfaceLayer> layer_;
DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
};
} // namespace html_viewer
#endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_IMPL_H_