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 // CefContextMenuParams methods. 21 int GetXCoord() override; 22 int GetYCoord() override; 23 TypeFlags GetTypeFlags() override; 24 CefString GetLinkUrl() override; 25 CefString GetUnfilteredLinkUrl() override; 26 CefString GetSourceUrl() override; 27 bool HasImageContents() override; 28 CefString GetTitleText() override; 29 CefString GetPageUrl() override; 30 CefString GetFrameUrl() override; 31 CefString GetFrameCharset() override; 32 MediaType GetMediaType() override; 33 MediaStateFlags GetMediaStateFlags() override; 34 CefString GetSelectionText() override; 35 CefString GetMisspelledWord() override; 36 bool GetDictionarySuggestions(std::vector<CefString>& suggestions) override; 37 bool IsEditable() override; 38 bool IsSpellCheckEnabled() override; 39 EditStateFlags GetEditStateFlags() override; 40 bool IsCustomMenu() override; 41 42 DISALLOW_COPY_AND_ASSIGN(CefContextMenuParamsImpl); 43 }; 44 45 #endif // CEF_LIBCEF_BROWSER_CONTEXT_MENU_PARAMS_IMPL_H_ 46