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

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: Created 6 years, 7 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. 7 // associated with any Chrome browser windows.
8 namespace app.window { 8 namespace app.window {
9 9
10 // Previously named Bounds. 10 // Previously named Bounds.
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 341
342 // Accessors for testing. 342 // Accessors for testing.
343 [nodoc] boolean hasFrameColor; 343 [nodoc] boolean hasFrameColor;
344 [nodoc] long activeFrameColor; 344 [nodoc] long activeFrameColor;
345 [nodoc] long inactiveFrameColor; 345 [nodoc] long inactiveFrameColor;
346 346
347 // Set whether the window should stay above most other windows. Requires the 347 // Set whether the window should stay above most other windows. Requires the
348 // <code>"alwaysOnTopWindows"</code> permission. 348 // <code>"alwaysOnTopWindows"</code> permission.
349 static void setAlwaysOnTop(boolean alwaysOnTop); 349 static void setAlwaysOnTop(boolean alwaysOnTop);
350 350
351 // Set whether the window should get all keyboard events including system ke ys that are usually
Jamie 2014/05/23 22:13:10 Chromium style is 80-character limit for most lang
Sriram 2014/05/23 22:20:06 Done.
352 // not sent. This currently works only when the windows is in fullscreen. Re quires the
353 // <code>"requestAllKeys"</code> permission.
354 static void setRequestAllKeys(boolean requestAllKeys);
355
356 // Return current state of "RequestAllKeys" state.
357 static boolean getRequestAllKeys();
Jamie 2014/05/23 22:13:10 I don't think the getter is necessary (setAlwaysOn
Sriram 2014/05/23 22:20:06 Done.
358
351 // The JavaScript 'window' object for the created child. 359 // The JavaScript 'window' object for the created child.
352 [instanceOf=Window] object contentWindow; 360 [instanceOf=Window] object contentWindow;
353 361
354 // The id the window was created with. 362 // The id the window was created with.
355 DOMString id; 363 DOMString id;
356 364
357 // The position, size and constraints of the window's content, which does 365 // The position, size and constraints of the window's content, which does
358 // not include window decorations. 366 // not include window decorations.
359 // This property is new in Chrome 36. 367 // This property is new in Chrome 36.
360 Bounds innerBounds; 368 Bounds innerBounds;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 // Fired when the window is maximized. 432 // Fired when the window is maximized.
425 [nocompile] static void onMaximized(); 433 [nocompile] static void onMaximized();
426 434
427 // Fired when the window is minimized. 435 // Fired when the window is minimized.
428 [nocompile] static void onMinimized(); 436 [nocompile] static void onMinimized();
429 437
430 // Fired when the window is restored from being minimized or maximized. 438 // Fired when the window is restored from being minimized or maximized.
431 [nocompile] static void onRestored(); 439 [nocompile] static void onRestored();
432 }; 440 };
433 }; 441 };
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