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:
Marshall Greenblatt
2014-05-23 17:47:07 +00:00
parent aeb1aa7b52
commit 79bd4dd93c
11 changed files with 423 additions and 301 deletions

View File

@ -31,6 +31,9 @@ class CefMenuModelImpl : public CefMenuModel {
// Notifies the delegate that the menu has closed.
virtual void MenuClosed(CefRefPtr<CefMenuModelImpl> source) =0;
// Allows the delegate to modify a menu item label before it's displayed.
virtual bool FormatLabel(base::string16& label) =0;
protected:
virtual ~Delegate() {}
};
@ -104,6 +107,7 @@ class CefMenuModelImpl : public CefMenuModel {
void ActivatedAt(int index, cef_event_flags_t event_flags);
void MenuWillShow();
void MenuClosed();
base::string16 GetFormattedLabelAt(int index);
// Verify that only a single reference exists to all CefMenuModelImpl objects.
bool VerifyRefCount();