mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update source files for bracket style
This commit is contained in:
@@ -22,18 +22,21 @@ bool CefTextfieldView::HandleKeyEvent(views::Textfield* sender,
|
||||
const ui::KeyEvent& key_event) {
|
||||
DCHECK_EQ(sender, this);
|
||||
|
||||
if (!cef_delegate())
|
||||
if (!cef_delegate()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
CefKeyEvent cef_key_event;
|
||||
if (!browser_util::GetCefKeyEvent(key_event, cef_key_event))
|
||||
if (!browser_util::GetCefKeyEvent(key_event, cef_key_event)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return cef_delegate()->OnKeyEvent(GetCefTextfield(), cef_key_event);
|
||||
}
|
||||
|
||||
void CefTextfieldView::OnAfterUserAction(views::Textfield* sender) {
|
||||
DCHECK_EQ(sender, this);
|
||||
if (cef_delegate())
|
||||
if (cef_delegate()) {
|
||||
cef_delegate()->OnAfterUserAction(GetCefTextfield());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user