mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Linux: Use Aura to display context menus (issue #1258)
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1710 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
|
||||
#include "libcef/browser/menu_creator.h"
|
||||
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "ui/views/controls/menu/menu_runner.h"
|
||||
|
||||
class CefMenuCreatorRunnerLinux: public CefMenuCreator::Runner {
|
||||
public:
|
||||
CefMenuCreatorRunnerLinux();
|
||||
@@ -15,6 +18,10 @@ class CefMenuCreatorRunnerLinux: public CefMenuCreator::Runner {
|
||||
|
||||
// CefMemoryManager::Runner methods.
|
||||
virtual bool RunContextMenu(CefMenuCreator* manager) OVERRIDE;
|
||||
virtual bool FormatLabel(base::string16& label) OVERRIDE;
|
||||
|
||||
private:
|
||||
scoped_ptr<views::MenuRunner> menu_;
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_BROWSER_MENU_MANAGER_RUNNER_LINUX_H_
|
||||
|
Reference in New Issue
Block a user