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

Unified Diff: ui/views/widget/native_widget_aura.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/native_widget_aura.cc
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index 5d9ea439c05c56330f59bb95363fd2d263fbccb4..3d1874c130223fd2cdf077f91920b681ebc42330 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -532,6 +532,10 @@ void NativeWidgetAura::SetAlwaysOnTop(bool on_top) {
window_->SetProperty(aura::client::kAlwaysOnTopKey, on_top);
}
+void NativeWidgetAura::SetInterceptAllKeys(bool want_all_keys) {
+ // TODO(sriramsr): Should implement for ChromeOS.
+}
+
bool NativeWidgetAura::IsAlwaysOnTop() const {
return window_ && window_->GetProperty(aura::client::kAlwaysOnTopKey);
}

Powered by Google App Engine
This is Rietveld 408576698