google-chrome-app

Chrome Packaged app, Always on top window

佐手、 提交于 2019-11-30 05:51:06
i am writing a text editor, i need the app window be always on top when switching to browser or e-book reader software. as i know ,for windows users, chrome doesn't provide any solution. is there any parameter to send when creating window to make window always on top? or can i provide any button in app to turn this feature on or off? Code i use to create window in bg.js: var launch = function () { chrome.app.window.create('index.html', { type: 'shell', width: 440, height: 680, minWidth: 440, maxHeight: 680, id: 'paat-start' }); }; chrome.app.runtime.onLaunched.addListener(launch); chrome

Google Chrome 'onLaunched' error in plugin

 ̄綄美尐妖づ 提交于 2019-11-30 05:44:42
问题 I am following the google chrome web app development on http://developer.chrome.com/trunk/apps/first_app.html and the web app is not launching. when i click on the app icon on the page it closes the tab. I have downloaded the sample apps and plugins from github but they too are not working when i look at the console i get this error, please not i have enabled experimental API's in chrome://flags. Uncaught TypeError: Cannot read property 'onLaunched' of undefined I have updated my chrome

How to load google fonts into chrome packaged apps without download?

ⅰ亾dé卋堺 提交于 2019-11-30 05:40:54
问题 How is one supposed to load google fonts, Do I really have to download and package every font I use with my app? I'm trying to avoid packaging the fonts since they are so many that my app would be huge (it's a web editor) <link href='http://fonts.googleapis.com/css?family=Nunito' rel='stylesheet' type='text/css'> > Refused to load the stylesheet 'http://fonts.googleapis.com/css?family=Nunito' because it violates the following Content Security Policy directive: "style-src 'self' data: chrome

Chrome extension: how to use serial port (now that apps are sunsetting)?

南楼画角 提交于 2019-11-30 05:12:49
Aim : I am attempting to write a little "thing" that can talk from my browser to the COM port of an Arduino. Issue : My first attempt is to write an extension. Therefore I am requesting permission for serial in my manifest file. When loading the unpackaged extension via developer mode I receive the following error: 'serial' is only allowed for packaged apps, but this is a extension. I see here that packaged app is an outdated term and I guess they just mean Chrome app . Now unfortunately it seems that Chrome is also discontinuing these Chrome apps as discussed here . Question : So how should I

How to debug a Kiosk Chrome application running on a Chromebox?

蹲街弑〆低调 提交于 2019-11-30 04:59:00
A Chrome Kiosk application that I wrote has a problem only when running in Kiosk mode on a Chromebox. When staring the application manually after I log into the Chromebox it runs well. Also when testing the application on my development machine everything works well. How can I attach a remote debug session, write remote logging information or in any other way get debugging information from the Kiosk application on the Chromebox to my development machine? If you run Chrome with the --remote-debugging-port=9222 option it will provide access to DevTools at http://localhost:9222/ . Now, on a

javascript - getting the return data of a async function inside a function

☆樱花仙子☆ 提交于 2019-11-30 04:48:16
问题 I am having a problem because chrome api functions are async and I cant get its return value. Consider the following code. I am using angularjs $scope.storageGet = function(param) { var returnData; chrome.storage.local.get(param.storageName, function(data) { returnData = data; }); return returnData; }; And when I tried to call it like this: console.log($scope.storageGet({'storageName': 'users'})); It prints 'undefined' in the console. What I want to see is the obect of users stored in chrome

Content Security Policy in Chrome App

元气小坏坏 提交于 2019-11-30 04:19:25
My Chrome app has the following manifest: { "name": ", "version": "1.0.3", "manifest_version": 2, "description": "Chrome Extension for.", "icons": { "16": "images/test.png", "19": "images/test.png", "256": "images/test.png" }, "app": { "background": { "scripts": [ "background.js" ] } }, "sandbox": { "js": [ "lib/test-api.js" ] }, "permissions": [ "<all_urls>", "notifications", "storage", "videoCapture" ] } I have a script file that runs eval . I have read about CSP and sandboxing, but I still get this error: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed

How to specify verified site to a chrome app?

丶灬走出姿态 提交于 2019-11-30 03:49:20
问题 I'm trying to enable inline installs, but continue to get the following error Inline installs can only be initiated for Chrome Web Store items that have one or more verified sites I've verified ownership of my test site via both a name tag and a .html file. Is it a problem that this test site is also owned by my other email (for analytics)? This is all being tested in Canary, where I'm signed in with a work email. In the Developer Dashboard, I've changed my display name to be the site I

With Chrome FileSystem, let the user choose a Directory, load files inside. And save files in that directory without prompting again

两盒软妹~` 提交于 2019-11-29 22:06:15
问题 I could not found any examples with this scenario so here we go: I want the user choose a directory, load all files inside it, change them, and save this file overriding it or saving a new file in that same directory without asking where he want to save. I don't know how to list the files of the directory I don't know how to save a file in a directory without prompting the filechooser window I believe it is possible because I see something similar here (last paragraph): http://www.developer

Difference between Chrome Apps and Extensions

自作多情 提交于 2019-11-29 19:48:22
What is the difference between Chrome Apps and Extensions? What can you do with apps that you can't do with extensions or vice versa? Quoting from https://developer.chrome.com/webstore/apps_vs_extensions : We’ve already had the concept of “web apps” in the browser for a few years, as something more rich and interactive than a website, but less cumbersome and monolithic than a desktop application. Examples include games, photo editors, and video players; all of these categories are viable as tightly focused apps running inside the browser. Google Chrome is just formalizing the web app concept