Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / components / html_viewer / web_layer_impl.h
blobcc8ded5c9ee09c6a59457627bdafe4a0e965588c
1 // Copyright 2015 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.
5 #ifndef COMPONENTS_HTML_VIEWER_WEB_LAYER_IMPL_H_
6 #define COMPONENTS_HTML_VIEWER_WEB_LAYER_IMPL_H_
8 #include <utility>
10 #include "cc/blink/web_layer_impl.h"
12 namespace mojo {
13 class View;
16 namespace html_viewer {
18 class WebLayerImpl : public cc_blink::WebLayerImpl {
19 public:
20 WebLayerImpl(mojo::View* view, float device_pixel_ratio);
21 ~WebLayerImpl() override;
23 // WebLayer implementation.
24 void setBounds(const blink::WebSize& bounds) override;
25 void setPosition(const blink::WebFloatPoint& position) override;
27 private:
28 mojo::View* view_;
29 const float device_pixel_ratio_;
31 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
34 } // namespace html_viewer
36 #endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_IMPL_H_