Merge revision 1521 changes:
- Enable print option in context menu (issue #1127). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1547@1523 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
fb03aed915
commit
80347483c8
|
@ -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