Allow only one bookmark to be added for multiple fast starring
[chromium-blink-merge.git] / components / html_viewer / web_layer_impl.h
blob0d8c236cb56e0b9251708f07ddd34b0925bce4a9
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 html_viewer {
14 class HTMLFrame;
16 class WebLayerImpl : public cc_blink::WebLayerImpl {
17 public:
18 explicit WebLayerImpl(HTMLFrame* frame);
19 ~WebLayerImpl() override;
21 // WebLayer implementation.
22 void setBounds(const blink::WebSize& bounds) override;
23 void setPosition(const blink::WebFloatPoint& position) override;
25 private:
26 HTMLFrame* frame_;
28 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
31 } // namespace html_viewer
33 #endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_IMPL_H_