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/test/data/extensions/platform_apps/outer_bounds/test.js

Issue 405323002: [Win Aero] Correctly set the minimum window size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and rebase Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 chrome.app.runtime.onLaunched.addListener(function() {
6 chrome.test.sendMessage('Launched', function (response) {
7 var frameType = response == 'color' ? { color: '#ff0000' } : response;
8 chrome.app.window.create('main.html', {
9 frame: frameType,
10 outerBounds: {
11 left: 10,
12 top: 11,
13 width: 300,
14 height: 301,
15 minWidth: 200,
16 minHeight: 201,
17 maxWidth: 400,
18 maxHeight: 401
19 }
20 }, function () {
21 // Send this again as the test is waiting for the window to be ready.
22 chrome.test.sendMessage('Launched');
23 });
24 });
25 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698