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:
Marshall Greenblatt 2013-11-21 21:47:40 +00:00
parent 7428e45dd2
commit ba3615324d
1 changed files with 1 additions and 5 deletions

View File

@ -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();