• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2012 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 #ifndef CEF_LIBCEF_BROWSER_CONTEXT_MENU_PARAMS_IMPL_H_
6 #define CEF_LIBCEF_BROWSER_CONTEXT_MENU_PARAMS_IMPL_H_
7 #pragma once
8 
9 #include "include/cef_context_menu_handler.h"
10 #include "libcef/common/value_base.h"
11 
12 #include "content/public/browser/context_menu_params.h"
13 
14 // CefContextMenuParams implementation. This class is not thread safe.
15 class CefContextMenuParamsImpl
16     : public CefValueBase<CefContextMenuParams, content::ContextMenuParams> {
17  public:
18   explicit CefContextMenuParamsImpl(content::ContextMenuParams* value);
19 
20   CefContextMenuParamsImpl(const CefContextMenuParamsImpl&) = delete;
21   CefContextMenuParamsImpl& operator=(const CefContextMenuParamsImpl&) = delete;
22 
23   // CefContextMenuParams methods.
24   int GetXCoord() override;
25   int GetYCoord() override;
26   TypeFlags GetTypeFlags() override;
27   CefString GetLinkUrl() override;
28   CefString GetUnfilteredLinkUrl() override;
29   CefString GetSourceUrl() override;
30   bool HasImageContents() override;
31   CefString GetTitleText() override;
32   CefString GetPageUrl() override;
33   CefString GetFrameUrl() override;
34   CefString GetFrameCharset() override;
35   MediaType GetMediaType() override;
36   MediaStateFlags GetMediaStateFlags() override;
37   CefString GetSelectionText() override;
38   CefString GetMisspelledWord() override;
39   bool GetDictionarySuggestions(std::vector<CefString>& suggestions) override;
40   bool IsEditable() override;
41   bool IsSpellCheckEnabled() override;
42   EditStateFlags GetEditStateFlags() override;
43   bool IsCustomMenu() override;
44 };
45 
46 #endif  // CEF_LIBCEF_BROWSER_CONTEXT_MENU_PARAMS_IMPL_H_
47