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

Unified Diff: apps/app_window.h

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: Update based on sky's comments Created 6 years, 5 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 | « no previous file | apps/app_window.cc » ('j') | apps/ui/native_app_window.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_window.h
diff --git a/apps/app_window.h b/apps/app_window.h
index cbfab8b2cd2622ab1634fcf3834e9ef3bed8f80b..69791c5663fafe73af6fc51811e26e4e8e965693 100644
--- a/apps/app_window.h
+++ b/apps/app_window.h
@@ -376,6 +376,10 @@ class AppWindow : public content::NotificationObserver,
// may be false if the bit is silently switched off for security reasons.
bool IsAlwaysOnTop() const;
+ // Set whether the window should get even reserved keys (modulo platform
+ // restrictions).
+ void SetInterceptAllKeys(bool want_all_keys);
+
// Retrieve the current state of the app window as a dictionary, to pass to
// the renderer.
void GetSerializedState(base::DictionaryValue* properties) const;
@@ -592,6 +596,10 @@ class AppWindow : public content::NotificationObserver,
// Whether |transparent_background| was set in the CreateParams.
bool requested_transparent_background_;
+ // Cached value of InterceptAllKeys property that is used to save/restore
+ // state as the window is active/loses focus.
+ bool cached_want_all_keys_;
+
DISALLOW_COPY_AND_ASSIGN(AppWindow);
};
« no previous file with comments | « no previous file | apps/app_window.cc » ('j') | apps/ui/native_app_window.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698