Skip to content

Commit

Permalink
Preliminary upload
Browse files Browse the repository at this point in the history
add original files
  • Loading branch information
nmcain authored Feb 23, 2018
1 parent 57dc746 commit 174a41d
Show file tree
Hide file tree
Showing 10 changed files with 637 additions and 0 deletions.
Binary file added MaterialIcons-Regular.eot
Binary file not shown.
Binary file added MaterialIcons-Regular.ttf
Binary file not shown.
Binary file added MaterialIcons-Regular.woff
Binary file not shown.
Binary file added MaterialIcons-Regular.woff2
Binary file not shown.
46 changes: 46 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
(function(window, chrome) {
//Background Scope
var background = {};
window.background = background;

//Create window and add listeners
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
'state': 'fullscreen',

'bounds': {
'width': 1366,
'height': 768
}
}, function(window) {
window.onClosed.addListener(function() {
background.setKeyboard(false);
chrome.power.releaseKeepAwake();
});
background.setKeyboard(true);
chrome.power.requestKeepAwake('display');
});
});

/**
* Enables or disables the on-screen keyboard.
* <p>
* If enable is true, the virtual keyboard of the ChromeOS
* accessibility features will be enabled. If false, this function will
* return the setting to its original value.
* @param {boolean} enable true to enable, or false to reset
* @returns {undefined}
*/
background.setKeyboard = function(enable) {
if (chrome.accessibilityFeatures) {
if (enable) {
chrome.accessibilityFeatures.virtualKeyboard.set({
value: enable
});
}
else {
chrome.accessibilityFeatures.virtualKeyboard.clear({});
}
}
};
})(window, chrome);
Loading

0 comments on commit 174a41d

Please sign in to comment.