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

Unified Diff: ui/views/widget/widget_unittest.cc

Issue 297123002: API proposal for chrome.app.window to intercept all keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Return if there is no windows with keyboard focus. Created 6 years, 4 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
Index: ui/views/widget/widget_unittest.cc
diff --git a/ui/views/widget/widget_unittest.cc b/ui/views/widget/widget_unittest.cc
index f6d1ea263b1b0d3c38d91d4cdfa11b53caa86eca..abf73f0f53613888393a9fccee484492140e13f6 100644
--- a/ui/views/widget/widget_unittest.cc
+++ b/ui/views/widget/widget_unittest.cc
@@ -655,6 +655,7 @@ class WidgetWithDestroyedNativeViewTest : public ViewsTestBase {
widget->HasCapture();
widget->GetWorkAreaBoundsInScreen();
widget->IsTranslucentWindowOpacitySupported();
+ widget->SetInterceptAllKeys(true);
}
private:
« ui/views/widget/desktop_aura/desktop_native_widget_aura.cc ('K') | « ui/views/widget/widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698