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

Side by Side Diff: chrome/common/extensions/api/app_window.idl

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: Changed to single event with getter. Created 6 years, 6 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 unified diff | Download patch
« no previous file with comments | « chrome/common/extensions/api/_permission_features.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Use the <code>chrome.app.window</code> API to create windows. Windows 5 // Use the <code>chrome.app.window</code> API to create windows. Windows
6 // have an optional frame with title bar and size controls. They are not 6 // have an optional frame with title bar and size controls. They are not
7 // associated with any Chrome browser windows. See the <a 7 // associated with any Chrome browser windows. See the <a
8 // href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/window-s tate"> 8 // href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/window-s tate">
9 // Window State Sample</a> for a demonstration of these options. 9 // Window State Sample</a> for a demonstration of these options.
10 namespace app.window { 10 namespace app.window {
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // Accessors for testing. 344 // Accessors for testing.
345 [nodoc] boolean hasFrameColor; 345 [nodoc] boolean hasFrameColor;
346 [nodoc] long activeFrameColor; 346 [nodoc] long activeFrameColor;
347 [nodoc] long inactiveFrameColor; 347 [nodoc] long inactiveFrameColor;
348 [nodoc] boolean? firstShowHasHappened; 348 [nodoc] boolean? firstShowHasHappened;
349 349
350 // Set whether the window should stay above most other windows. Requires the 350 // Set whether the window should stay above most other windows. Requires the
351 // <code>"alwaysOnTopWindows"</code> permission. 351 // <code>"alwaysOnTopWindows"</code> permission.
352 static void setAlwaysOnTop(boolean alwaysOnTop); 352 static void setAlwaysOnTop(boolean alwaysOnTop);
353 353
354 // Set whether the window should get all keyboard events including system
355 // keys that are usually not sent. This currently works only when the
356 // windows is in fullscreen. Requires the <code>"app.window.allKeys"</code>
Jamie 2014/06/27 17:32:20 Is the full-screen comment correct? Also, please a
Sriram 2014/06/27 17:39:40 Done.
357 // permission.
358 static void setAllKeysIntercept(boolean wantAllKeys);
359
360 // Return whether the current window will get all keyboard events including
361 // system keys. A window might not get all keys even if setAllKeysIntercept
362 // was called as user might have declined to access.
363 static boolean getAllKeysIntercept();
364
354 // The JavaScript 'window' object for the created child. 365 // The JavaScript 'window' object for the created child.
355 [instanceOf=Window] object contentWindow; 366 [instanceOf=Window] object contentWindow;
356 367
357 // The id the window was created with. 368 // The id the window was created with.
358 DOMString id; 369 DOMString id;
359 370
360 // The position, size and constraints of the window's content, which does 371 // The position, size and constraints of the window's content, which does
361 // not include window decorations. 372 // not include window decorations.
362 // This property is new in Chrome 36. 373 // This property is new in Chrome 36.
363 Bounds innerBounds; 374 Bounds innerBounds;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 [nocompile] static void onMaximized(); 439 [nocompile] static void onMaximized();
429 440
430 // Fired when the window is minimized. 441 // Fired when the window is minimized.
431 [nocompile] static void onMinimized(); 442 [nocompile] static void onMinimized();
432 443
433 // Fired when the window is restored from being minimized or maximized. 444 // Fired when the window is restored from being minimized or maximized.
434 [nocompile] static void onRestored(); 445 [nocompile] static void onRestored();
435 446
436 // Event for testing. Lets tests wait until a window has been shown. 447 // Event for testing. Lets tests wait until a window has been shown.
437 [nocompile, nodoc] static void onWindowFirstShown(); 448 [nocompile, nodoc] static void onWindowFirstShown();
449
450 // Fired when AllKeysIntercept setting is changed.
451 [nocompile] static void onWantAllKeysInterceptChanged();
Jamie 2014/06/27 17:32:20 Nit: The other methods don't mention "Want" any mo
Sriram 2014/06/27 17:39:40 Done.
438 }; 452 };
439 }; 453 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/_permission_features.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698