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

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

Issue 1316013004: Remove "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 5 years, 3 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
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/samples/ window-state"> 8 // href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/ window-state">
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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 static void setAlwaysOnTop(boolean alwaysOnTop); 382 static void setAlwaysOnTop(boolean alwaysOnTop);
383 383
384 // Can the window use alpha transparency? 384 // Can the window use alpha transparency?
385 // TODO(jackhou): Document this properly before going to stable. 385 // TODO(jackhou): Document this properly before going to stable.
386 [nodoc] static boolean alphaEnabled(); 386 [nodoc] static boolean alphaEnabled();
387 387
388 // Set whether the window is visible on all workspaces. (Only for platforms 388 // Set whether the window is visible on all workspaces. (Only for platforms
389 // that support this). 389 // that support this).
390 static void setVisibleOnAllWorkspaces(boolean alwaysVisible); 390 static void setVisibleOnAllWorkspaces(boolean alwaysVisible);
391 391
392 // Set whether the window should get all keyboard events including system
393 // keys that are usually not sent. This is best-effort subject to platform
394 // specific constraints. Requires the <code>"app.window.allKeys"</code>
395 // permission. This is currently available only in dev channel on Windows.
396 static void setInterceptAllKeys(boolean wantAllKeys);
397
398 // The JavaScript 'window' object for the created child. 392 // The JavaScript 'window' object for the created child.
399 [instanceOf=Window] object contentWindow; 393 [instanceOf=Window] object contentWindow;
400 394
401 // The id the window was created with. 395 // The id the window was created with.
402 DOMString id; 396 DOMString id;
403 397
404 // The position, size and constraints of the window's content, which does 398 // The position, size and constraints of the window's content, which does
405 // not include window decorations. 399 // not include window decorations.
406 // This property is new in Chrome 36. 400 // This property is new in Chrome 36.
407 Bounds innerBounds; 401 Bounds innerBounds;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 // Fired when the window is restored from being minimized or maximized. 476 // Fired when the window is restored from being minimized or maximized.
483 [nocompile] static void onRestored(); 477 [nocompile] static void onRestored();
484 478
485 // Fired when the window's ability to use alpha transparency changes. 479 // Fired when the window's ability to use alpha transparency changes.
486 [nocompile, nodoc] static void onAlphaEnabledChanged(); 480 [nocompile, nodoc] static void onAlphaEnabledChanged();
487 481
488 // Event for testing. Lets tests wait until a window has been shown. 482 // Event for testing. Lets tests wait until a window has been shown.
489 [nocompile, nodoc] static void onWindowFirstShown(); 483 [nocompile, nodoc] static void onWindowFirstShown();
490 }; 484 };
491 }; 485 };
OLDNEW
« no previous file with comments | « extensions/common/api/app_current_window_internal.idl ('k') | extensions/common/permissions/api_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698