views: Support styling of menus (issue #2102)

This commit is contained in:
Marshall Greenblatt
2017-02-25 00:03:31 -05:00
parent b08f0ed713
commit 8fa8af357b
23 changed files with 1124 additions and 65 deletions

View File

@@ -341,6 +341,12 @@ void RootWindowViews::OnTakeFocus(bool next) {
window_->TakeFocus(next);
}
void RootWindowViews::OnBeforeContextMenu(CefRefPtr<CefMenuModel> model) {
CEF_REQUIRE_UI_THREAD();
if (window_)
window_->OnBeforeContextMenu(model);
}
void RootWindowViews::CreateClientHandler(const std::string& url) {
DCHECK(!client_handler_);