| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef COMPONENTS_HTML_VIEWER_WEB_LAYER_IMPL_H_ | |
| 6 #define COMPONENTS_HTML_VIEWER_WEB_LAYER_IMPL_H_ | |
| 7 | |
| 8 #include <utility> | |
| 9 | |
| 10 #include "cc/blink/web_layer_impl.h" | |
| 11 #include "cc/layers/surface_layer.h" | |
| 12 | |
| 13 namespace mus { | |
| 14 class View; | |
| 15 } | |
| 16 | |
| 17 namespace html_viewer { | |
| 18 | |
| 19 class WebLayerImpl : public cc_blink::WebLayerImpl { | |
| 20 public: | |
| 21 WebLayerImpl(mus::View* view, float device_pixel_ratio); | |
| 22 ~WebLayerImpl() override; | |
| 23 | |
| 24 // WebLayer implementation. | |
| 25 void setBounds(const blink::WebSize& bounds) override; | |
| 26 | |
| 27 private: | |
| 28 mus::View* view_; | |
| 29 const float device_pixel_ratio_; | |
| 30 scoped_refptr<cc::SurfaceLayer> layer_; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | |
| 33 }; | |
| 34 | |
| 35 } // namespace html_viewer | |
| 36 | |
| 37 #endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_IMPL_H_ | |
| OLD | NEW |