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

Side by Side Diff: extensions/browser/app_window/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: Sync to TOT Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_
6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 329
330 // Set whether the window should stay above other windows which are not 330 // Set whether the window should stay above other windows which are not
331 // configured to be always-on-top. 331 // configured to be always-on-top.
332 void SetAlwaysOnTop(bool always_on_top); 332 void SetAlwaysOnTop(bool always_on_top);
333 333
334 // Whether the always-on-top property has been set by the chrome.app.window 334 // Whether the always-on-top property has been set by the chrome.app.window
335 // API. Note that the actual value of this property in the native app window 335 // API. Note that the actual value of this property in the native app window
336 // may be false if the bit is silently switched off for security reasons. 336 // may be false if the bit is silently switched off for security reasons.
337 bool IsAlwaysOnTop() const; 337 bool IsAlwaysOnTop() const;
338 338
339 // Set whether the window should get even reserved keys (modulo platform
340 // restrictions).
341 void SetInterceptAllKeys(bool want_all_keys);
342
339 // Retrieve the current state of the app window as a dictionary, to pass to 343 // Retrieve the current state of the app window as a dictionary, to pass to
340 // the renderer. 344 // the renderer.
341 void GetSerializedState(base::DictionaryValue* properties) const; 345 void GetSerializedState(base::DictionaryValue* properties) const;
342 346
343 // Called by the window API when events can be sent to the window for this 347 // Called by the window API when events can be sent to the window for this
344 // app. 348 // app.
345 void WindowEventsReady(); 349 void WindowEventsReady();
346 350
347 // Whether the app window wants to be alpha enabled. 351 // Whether the app window wants to be alpha enabled.
348 bool requested_alpha_enabled() const { return requested_alpha_enabled_; } 352 bool requested_alpha_enabled() const { return requested_alpha_enabled_; }
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 bool requested_alpha_enabled_; 551 bool requested_alpha_enabled_;
548 552
549 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_; 553 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_;
550 554
551 DISALLOW_COPY_AND_ASSIGN(AppWindow); 555 DISALLOW_COPY_AND_ASSIGN(AppWindow);
552 }; 556 };
553 557
554 } // namespace extensions 558 } // namespace extensions
555 559
556 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ 560 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698