Add deprecation TODO for BrowserWindow.showDefinitionForSelection

This commit is contained in:
Kevin Sawicki 2016-06-07 13:12:24 -07:00
parent ce19c2c0ad
commit 6360a5cae4

View file

@ -934,6 +934,8 @@ void NativeWindowMac::SetOverlayIcon(const gfx::Image& overlay,
} }
void NativeWindowMac::ShowDefinitionForSelection() { void NativeWindowMac::ShowDefinitionForSelection() {
// TODO(kevinsawicki): Deprecate and remove this method in 2.0 in favor of
// calling it directly on webContents.
if (!web_contents()) if (!web_contents())
return; return;
auto rwhv = web_contents()->GetRenderWidgetHostView(); auto rwhv = web_contents()->GetRenderWidgetHostView();