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

Side by Side Diff: extensions/common/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: 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 (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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 377
378 // Can the window use alpha transparency? 378 // Can the window use alpha transparency?
379 // TODO(jackhou): Document this properly before going to stable. 379 // TODO(jackhou): Document this properly before going to stable.
380 [nodoc] static boolean alphaEnabled(); 380 [nodoc] static boolean alphaEnabled();
381 381
382 // For platforms that support multiple workspaces, is this window visible on 382 // For platforms that support multiple workspaces, is this window visible on
383 // all of them? 383 // all of them?
384 // This is only available on dev channel. 384 // This is only available on dev channel.
385 static void setVisibleOnAllWorkspaces(boolean alwaysVisible); 385 static void setVisibleOnAllWorkspaces(boolean alwaysVisible);
386 386
387 // Set whether the window should get all keyboard events including system
388 // keys that are usually not sent. This is best-effort subject to platform
389 // specific constraints. Requires the <code>"app.window.allKeys"</code>
390 // permission. This is currently available only in dev channel on Windows.
391 static void setInterceptAllKeys(boolean wantAllKeys);
392
387 // The JavaScript 'window' object for the created child. 393 // The JavaScript 'window' object for the created child.
388 [instanceOf=Window] object contentWindow; 394 [instanceOf=Window] object contentWindow;
389 395
390 // The id the window was created with. 396 // The id the window was created with.
391 DOMString id; 397 DOMString id;
392 398
393 // The position, size and constraints of the window's content, which does 399 // The position, size and constraints of the window's content, which does
394 // not include window decorations. 400 // not include window decorations.
395 // This property is new in Chrome 36. 401 // This property is new in Chrome 36.
396 Bounds innerBounds; 402 Bounds innerBounds;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 // Fired when the window is restored from being minimized or maximized. 476 // Fired when the window is restored from being minimized or maximized.
471 [nocompile] static void onRestored(); 477 [nocompile] static void onRestored();
472 478
473 // Fired when the window's ability to use alpha transparency changes. 479 // Fired when the window's ability to use alpha transparency changes.
474 [nocompile, nodoc] static void onAlphaEnabledChanged(); 480 [nocompile, nodoc] static void onAlphaEnabledChanged();
475 481
476 // 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.
477 [nocompile, nodoc] static void onWindowFirstShown(); 483 [nocompile, nodoc] static void onWindowFirstShown();
478 }; 484 };
479 }; 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