]> git.sesse.net Git - casparcg/blob - dependencies64/cef/linux/libcef_dll/ctocpp/views/layout_ctocpp.h
ed873d595bdb15ad829e4ad102779d4157fbaebc
[casparcg] / dependencies64 / cef / linux / libcef_dll / ctocpp / views / layout_ctocpp.h
1 // Copyright (c) 2017 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 //
5 // ---------------------------------------------------------------------------
6 //
7 // This file was generated by the CEF translator tool. If making changes by
8 // hand only do so within the body of existing method and function
9 // implementations. See the translator.README.txt file in the tools directory
10 // for more information.
11 //
12
13 #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_LAYOUT_CTOCPP_H_
14 #define CEF_LIBCEF_DLL_CTOCPP_VIEWS_LAYOUT_CTOCPP_H_
15 #pragma once
16
17 #if !defined(WRAPPING_CEF_SHARED)
18 #error This file can be included wrapper-side only
19 #endif
20
21 #include "include/views/cef_layout.h"
22 #include "include/capi/views/cef_layout_capi.h"
23 #include "include/views/cef_box_layout.h"
24 #include "include/capi/views/cef_box_layout_capi.h"
25 #include "include/views/cef_fill_layout.h"
26 #include "include/capi/views/cef_fill_layout_capi.h"
27 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
28
29 // Wrap a C structure with a C++ class.
30 // This class may be instantiated and accessed wrapper-side only.
31 class CefLayoutCToCpp
32     : public CefCToCppRefCounted<CefLayoutCToCpp, CefLayout, cef_layout_t> {
33  public:
34   CefLayoutCToCpp();
35
36   // CefLayout methods.
37   CefRefPtr<CefBoxLayout> AsBoxLayout() OVERRIDE;
38   CefRefPtr<CefFillLayout> AsFillLayout() OVERRIDE;
39   bool IsValid() OVERRIDE;
40 };
41
42 #endif  // CEF_LIBCEF_DLL_CTOCPP_VIEWS_LAYOUT_CTOCPP_H_