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:
@@ -15,8 +15,9 @@ bool CefMenuRunnerViews::RunContextMenu(
|
||||
CefMenuModelImpl* model,
|
||||
const content::ContextMenuParams& params) {
|
||||
CefRefPtr<CefWindow> window = browser_view_->GetWindow();
|
||||
if (!window)
|
||||
if (!window) {
|
||||
return false;
|
||||
}
|
||||
|
||||
CefPoint screen_point(params.x, params.y);
|
||||
browser_view_->ConvertPointToScreen(screen_point);
|
||||
@@ -27,8 +28,9 @@ bool CefMenuRunnerViews::RunContextMenu(
|
||||
|
||||
void CefMenuRunnerViews::CancelContextMenu() {
|
||||
CefRefPtr<CefWindow> window = browser_view_->GetWindow();
|
||||
if (window)
|
||||
if (window) {
|
||||
window->CancelMenu();
|
||||
}
|
||||
}
|
||||
|
||||
bool CefMenuRunnerViews::FormatLabel(std::u16string& label) {
|
||||
|
Reference in New Issue
Block a user