OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/html_viewer/web_layer_impl.h" | 5 #include "components/html_viewer/web_layer_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "cc/layers/layer.h" | 8 #include "cc/layers/layer.h" |
9 #include "components/view_manager/public/cpp/view.h" | 9 #include "components/mus/public/cpp/view.h" |
10 #include "ui/gfx/geometry/dip_util.h" | 10 #include "ui/gfx/geometry/dip_util.h" |
11 #include "ui/mojo/geometry/geometry.mojom.h" | 11 #include "ui/mojo/geometry/geometry.mojom.h" |
12 | 12 |
13 using blink::WebFloatPoint; | 13 using blink::WebFloatPoint; |
14 using blink::WebSize; | 14 using blink::WebSize; |
15 | 15 |
16 namespace html_viewer { | 16 namespace html_viewer { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
(...skipping 23 matching lines...) Expand all Loading... |
43 } | 43 } |
44 | 44 |
45 void WebLayerImpl::setBounds(const WebSize& size) { | 45 void WebLayerImpl::setBounds(const WebSize& size) { |
46 static_cast<cc::SurfaceLayer*>(layer())-> | 46 static_cast<cc::SurfaceLayer*>(layer())-> |
47 SetSurfaceId(cc::SurfaceId(view_->id()), | 47 SetSurfaceId(cc::SurfaceId(view_->id()), |
48 device_pixel_ratio_, size); | 48 device_pixel_ratio_, size); |
49 cc_blink::WebLayerImpl::setBounds(size); | 49 cc_blink::WebLayerImpl::setBounds(size); |
50 } | 50 } |
51 | 51 |
52 } // namespace html_viewer | 52 } // namespace html_viewer |
OLD | NEW |