Add PDF extension support (issue #1565)

This commit is contained in:
Marshall Greenblatt
2015-07-16 17:40:01 -04:00
parent aefb5ccce8
commit b7a56d9343
108 changed files with 5513 additions and 427 deletions

View File

@@ -9,15 +9,18 @@
#include "libcef/browser/menu_model_impl.h"
#include "base/memory/scoped_ptr.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/common/context_menu_params.h"
namespace content {
class RenderFrameHost;
class WebContents;
};
class CefBrowserHostImpl;
class CefMenuCreator : public CefMenuModelImpl::Delegate {
class CefMenuCreator : public CefMenuModelImpl::Delegate,
public content::WebContentsObserver {
public:
// Used for OS-specific menu implementations.
class Runner {
@@ -28,7 +31,8 @@ class CefMenuCreator : public CefMenuModelImpl::Delegate {
virtual bool FormatLabel(base::string16& label) { return false; }
};
explicit CefMenuCreator(CefBrowserHostImpl* browser);
CefMenuCreator(content::WebContents* web_contents,
CefBrowserHostImpl* browser);
~CefMenuCreator() override;
// Returns true if the context menu is currently showing.