Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: ui/views/controls/webview/web_dialog_view.cc

Issue 303543004: MacViews: views_examples_with_content_exe working! Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add files Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/menu/menu_host.cc ('k') | ui/views/examples/examples.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/webview/web_dialog_view.cc
diff --git a/ui/views/controls/webview/web_dialog_view.cc b/ui/views/controls/webview/web_dialog_view.cc
index 8d612f42d9195e99c79826d63be56c196e4a8595..5526fabb70dcd0d3d33ef3b01a030437becaaeda 100644
--- a/ui/views/controls/webview/web_dialog_view.cc
+++ b/ui/views/controls/webview/web_dialog_view.cc
@@ -280,6 +280,7 @@ void WebDialogView::HandleKeyboardEvent(content::WebContents* source,
const NativeWebKeyboardEvent& event) {
if (!event.os_event)
return;
+#if defined(USE_AURA)
ui::KeyEvent aura_event(event.os_event->native_event(), false);
ui::EventHandler* event_handler =
GetWidget()->native_widget()->GetEventHandler();
@@ -287,7 +288,7 @@ void WebDialogView::HandleKeyboardEvent(content::WebContents* source,
DCHECK(event_handler);
if (event_handler)
event_handler->OnKeyEvent(&aura_event);
-
+#endif
}
void WebDialogView::CloseContents(WebContents* source) {
« no previous file with comments | « ui/views/controls/menu/menu_host.cc ('k') | ui/views/examples/examples.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698