mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 139606.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@658 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -76,8 +76,16 @@ class CefSimpleMenuModel : public ui::MenuModel {
|
||||
bool alt_pressed = false;
|
||||
if (impl_->GetAcceleratorAt(index, key_code, shift_pressed, ctrl_pressed,
|
||||
alt_pressed)) {
|
||||
int modifiers = 0;
|
||||
if (shift_pressed)
|
||||
modifiers |= ui::EF_SHIFT_DOWN;
|
||||
if (ctrl_pressed)
|
||||
modifiers |= ui::EF_CONTROL_DOWN;
|
||||
if (alt_pressed)
|
||||
modifiers |= ui::EF_ALT_DOWN;
|
||||
|
||||
*accelerator = ui::Accelerator(static_cast<ui::KeyboardCode>(key_code),
|
||||
shift_pressed, ctrl_pressed, alt_pressed);
|
||||
modifiers);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@ -91,7 +99,7 @@ class CefSimpleMenuModel : public ui::MenuModel {
|
||||
return impl_->GetGroupIdAt(index);
|
||||
}
|
||||
|
||||
virtual bool GetIconAt(int index, SkBitmap* icon) OVERRIDE {
|
||||
virtual bool GetIconAt(int index, gfx::ImageSkia* icon) OVERRIDE {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user