Enable print option in context menu (issue #1127).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1521 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
7428e45dd2
commit
ba3615324d
|
@ -250,9 +250,6 @@ void CefMenuCreator::CreateDefaultModel() {
|
|||
model_->SetEnabled(MENU_ID_BACK, false);
|
||||
if (!browser_->CanGoForward())
|
||||
model_->SetEnabled(MENU_ID_FORWARD, false);
|
||||
|
||||
// TODO(cef): Enable once printing is supported.
|
||||
model_->SetEnabled(MENU_ID_PRINT, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -304,8 +301,7 @@ void CefMenuCreator::ExecuteDefaultCommand(int command_id) {
|
|||
NOTIMPLEMENTED();
|
||||
break;
|
||||
case MENU_ID_PRINT:
|
||||
// TODO(cef): Implement.
|
||||
NOTIMPLEMENTED();
|
||||
browser_->Print();
|
||||
break;
|
||||
case MENU_ID_VIEW_SOURCE:
|
||||
browser_->GetFocusedFrame()->ViewSource();
|
||||
|
|
Loading…
Reference in New Issue