Check-in [e5e8b9f32b]
Overview
SHA1:e5e8b9f32bf9d3272676e101ee157bb0fd0dc2df
Date: 2016-02-19 14:11:35
User: rkeene
Comment:ChromeOS: Added the start of a UI
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-02-19
14:27
[d4dfc708fb] ChromeOS: Added support for building a debugging-enabled Chrome extension (user: rkeene, tags: trunk)
14:11
[e5e8b9f32b] ChromeOS: Added the start of a UI (user: rkeene, tags: trunk)
13:30
[e1dc965e9b] ChromeOS: Added package icon (user: rkeene, tags: trunk)
Changes

Modified build/chrome/cackey.js from [10c678f515] to [d2935d7709].

   400    400    */
   401    401   function cackeyInit() {
   402    402   	var elementEmbed;
   403    403   
   404    404   	/* Log that we are operational */
   405    405   	console.log("[cackey] cackeyInit(): Called.");
   406    406   
          407  +	/*
          408  +	 * Create a handler for starting the application UI
          409  +	 */
          410  +	chrome.app.runtime.onLaunched.addListener(function() {
          411  +		chrome.app.window.create('ui.html', {
          412  +			"id": "cackeyUI",
          413  +			"focused": true,
          414  +			"innerBounds": {
          415  +				"width": 350,
          416  +				"minWidth": 350,
          417  +				"height": 135,
          418  +				"minHeight": 135
          419  +			}
          420  +		});
          421  +	});
          422  +
   407    423   	/* Verify that we can register callbacks */
   408    424   	if (!chrome.certificateProvider) {
   409    425   		if (!GoogleSmartCard.IS_DEBUG_BUILD) {
   410    426   			console.error("[cackey] This extension only works on ChromeOS!");
   411    427   
   412    428   			return;
   413    429   		} else {

Added build/chrome/ui.html version [fc64535f26].

            1  +<html>
            2  +	<head>
            3  +		<title>CACKey</title>
            4  +	</head>
            5  +	<body>
            6  +		<h1>CACKey for Chrome</h1>
            7  +	</body>
            8  +</html>