• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2022 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 // $hash=6dffc109a4a5bdc10bda0a03950f1a8b81f964b7$
13 //
14 
15 #ifndef CEF_LIBCEF_DLL_CTOCPP_COMMAND_LINE_CTOCPP_H_
16 #define CEF_LIBCEF_DLL_CTOCPP_COMMAND_LINE_CTOCPP_H_
17 #pragma once
18 
19 #if !defined(WRAPPING_CEF_SHARED)
20 #error This file can be included wrapper-side only
21 #endif
22 
23 #include <vector>
24 #include "include/capi/cef_command_line_capi.h"
25 #include "include/cef_command_line.h"
26 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
27 
28 // Wrap a C structure with a C++ class.
29 // This class may be instantiated and accessed wrapper-side only.
30 class CefCommandLineCToCpp : public CefCToCppRefCounted<CefCommandLineCToCpp,
31                                                         CefCommandLine,
32                                                         cef_command_line_t> {
33  public:
34   CefCommandLineCToCpp();
35   virtual ~CefCommandLineCToCpp();
36 
37   // CefCommandLine methods.
38   bool IsValid() override;
39   bool IsReadOnly() override;
40   CefRefPtr<CefCommandLine> Copy() override;
41   void InitFromArgv(int argc, const char* const* argv) override;
42   void InitFromString(const CefString& command_line) override;
43   void Reset() override;
44   void GetArgv(std::vector<CefString>& argv) override;
45   CefString GetCommandLineString() override;
46   CefString GetProgram() override;
47   void SetProgram(const CefString& program) override;
48   bool HasSwitches() override;
49   bool HasSwitch(const CefString& name) override;
50   CefString GetSwitchValue(const CefString& name) override;
51   void GetSwitches(SwitchMap& switches) override;
52   void AppendSwitch(const CefString& name) override;
53   void AppendSwitchWithValue(const CefString& name,
54                              const CefString& value) override;
55   bool HasArguments() override;
56   void GetArguments(ArgumentList& arguments) override;
57   void AppendArgument(const CefString& argument) override;
58   void PrependWrapper(const CefString& wrapper) override;
59 };
60 
61 #endif  // CEF_LIBCEF_DLL_CTOCPP_COMMAND_LINE_CTOCPP_H_
62