apps

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Package apps provides general ChromeOS app utilities.

Index

Constants

This section is empty.

Variables

View Source
var AndroidSettings = App{
	ID:   "mconboelelhjpkbdhhiijkgcimoangdj",
	Name: "Android Settings",
}

AndroidSettings has details about ARC settings app.

View Source
var Borealis = App{
	ID:   "dkecggknbdokeipkgnhifhiokailichf",
	Name: "Borealis",
}

Borealis App represents the installer/launcher for the borealis.

View Source
var Calculator = App{
	ID:   "oabkinaljpjeilageghcdlnekhphhphl",
	Name: "Calculator",
}

Calculator has details about the Calculator app.

View Source
var Camera = App{
	ID:   "njfbnohfdkmbmnjapinfcopialeghnmh",
	Name: "Camera",
}

Camera has details about the Camera app.

View Source
var Canvas = App{
	ID:   "ieailfmhaghpphfffooibmlghaeopach",
	Name: "Chrome Canvas",
}

Canvas has details about the Chrome Canvas app.

View Source
var Chat = App{
	ID:   "mhihbbhgcjldimhaopinoigbbglkihll",
	Name: "Google Chat",
}

Chat App has details about the Google Chat app.

View Source
var Chrome = App{
	ID:   "mgndgikekgjfcpckkfioiadnlibdjbkf",
	Name: "Chrome",
}

Chrome has details about the Chrome app.

View Source
var Chromium = App{
	ID:   "mgndgikekgjfcpckkfioiadnlibdjbkf",
	Name: "Chromium",
}

Chromium has details about the Chromium app. It replaces Chrome on amd64-generic builds.

View Source
var Citrix = App{
	ID:   "haiffjcadagjlijoggckpgfnoeiflnem",
	Name: "Citrix Workspace",
}

Citrix has details about Citrix Workspace app.

View Source
var Clock = App{
	ID:   "ddmmnabaeomoacfpfjgghfpocfolhjlg",
	Name: "Clock",
}

Clock has details about the Clock app.

View Source
var ConnectivityDiagnostics = App{
	ID:   "pinjbkpghjkgmlmfidajjdjocdpegjkg",
	Name: "Connectivity Diagnostics",
}

ConnectivityDiagnostics has details about the Chrome Connectivity Diagnostics app.

View Source
var Contacts = App{
	ID:   "kipfkokfekalckplgaikemhghlbkgpfl",
	Name: "Contacts",
}

Contacts has details about the Contacts app.

View Source
var Cursive = App{
	ID:   "apignacaigpffemhdbhmnajajaccbckh",
	Name: "Cursive",
}

Cursive has details about the Cursive app.

View Source
var Diagnostics = App{
	ID:   "keejpcfcpecjhmepmpcfgjemkmlicpam",
	Name: "Diagnostics",
}

Diagnostics has details about Diagnostics SWA.

View Source
var Docs = App{
	ID:   "aohghmighlieiainnegkcijnfilokake",
	Name: "Docs",
}

Docs has details about the Google Docs app.

View Source
var Drive = App{
	ID:   "apdfllckaahabafndbhieahigkjlhalf",
	Name: "Google Drive",
}

Drive has details about the Google Drive app.

View Source
var Duo = App{
	ID:   "djkcbcmkefiiphjkonbeknmcgiheajce",
	Name: "Duo",
}

Duo has details about the Duo app.

View Source
var FamilyLink = App{
	ID:   "mljomdcpdfpfdplmgghfeoofmbbianlf",
	Name: "Family Link",
}

FamilyLink has details about the Family Link app.

View Source
var Files = App{
	ID:   "hhaomjibdihmijegdhdafkllkbggdgoj",
	Name: "Files",
}

Files has details about the Files Chrome app.

View Source
var FilesSWA = App{
	ID:   "fkiggjmkendpmbegkagpmagjepfkpmeb",
	Name: "Files",
}

FilesSWA has details about the Files System Web App.

View Source
var FirmwareUpdate = App{
	ID:   "nedcdcceagjbkiaecmdbpafcmlhkiifa",
	Name: "Firmware Updates",
}

FirmwareUpdate has details about the FirmwareUpdate SWA.

View Source
var Gallery = App{
	ID:   "jhdjimmaggjajfjphpljagpgkidjilnj",
	Name: "Gallery",
}

Gallery (aka Backlight) has details about the Gallery app.

View Source
var Gmail = App{
	ID:   "hhkfkjpmacfncmbapfohfocpjpdnobjg",
	Name: "Gmail",
}

Gmail has details about the gmail app.

View Source
var Help = App{
	ID:   "nbljnnecbjbmifnoehiemkgefbnpoeak",
	Name: "Explore",
}

Help (aka Explore) has details about the Help app.

View Source
var Lacros = App{
	ID:   "jaimifaeiicidiikhmjedcgdimealfbh",
	Name: "Lacros",
}

Lacros has details about Lacros browser app.

View Source
var Maps = App{
	ID:   "gmhipfhgnoelkiiofcnimehjnpaejiel",
	Name: "Maps",
}

Maps has details about Arc Maps app.

View Source
var Parallels = App{
	ID:   "lgjpclljbbmphhnalkeplcmnjpfmmaek",
	Name: "Parallels Desktop",
}

Parallels has details about the Parallels app.

View Source
var Photos = App{
	ID:   "fdbkkojdbojonckghlanfaopfakedeca",
	Name: "Photos",
}

Photos has details about the Photos app.

View Source
var PlayBooks = App{
	ID:   "cafegjnmmjpfibnlddppihpnkbkgicbg",
	Name: "Play Books",
}

PlayBooks has details about the Play Books app.

View Source
var PlayGames = App{
	ID:   "nplnnjkbeijcggmpdcecpabgbjgeiedc",
	Name: "Play Games",
}

PlayGames has details about the Play Games app.

View Source
var PlayMovies = App{
	ID:   "dbbihmicnlldbflflckpafphlekmjfnm",
	Name: "Play Movies & TV",
}

PlayMovies has details about the Play Movies & TV app.

View Source
var PlayStore = App{
	ID:   "cnbgggchhmkkdmeppjobngjoejnihlei",
	Name: "Play Store",
}

PlayStore has details about the Play Store app.

View Source
var PrintManagement = App{
	ID:   "fglkccnmnaankjodgccmiodmlkpaiodc",
	Name: "Print jobs",
}

PrintManagement has details about the Print Management app.

View Source
var Scan = App{
	ID:   "cdkahakpgkdaoffdmfgnhgomkelkocfo",
	Name: "Scan",
}

Scan has details about the Scan SWA.

View Source
var Settings = App{
	ID:   "odknhmnlageboeamepcngndbggdpaobj",
	Name: "Settings",
}

Settings has details about the Settings app.

View Source
var ShimlessRMA = App{
	ID:   "ijolhdommgkkhpenofmpkkhlepahelcm",
	Name: "Shimless RMA",
}

ShimlessRMA has details about the Shimless RMA app.

View Source
var TaskManager = App{
	ID:   "ijaigheoohcacdnplfbdimmcfldnnhdi",
	Name: "Task Manager",
}

TaskManager has details about the Task Manager app.

View Source
var TelemetryExtension = App{
	ID:   "lhoocnmbcmmbjgdeaallonfplogkcneb",
	Name: "Telemetry Extension",
}

TelemetryExtension has details about the TelemetryExtension app.

View Source
var Terminal = App{
	ID:   "fhicihalidkgcimdmhpohldehjmcabcf",
	Name: "Terminal",
}

Terminal has details about the Crostini Terminal app.

View Source
var Translate = App{
	ID:   "pacmnfddiadhhfmngijgjdbnodjkmojl",
	Name: "Translate",
}

Translate has details about the Translate app.

View Source
var VMWare = App{
	ID:   "ppkfnjlimknmjoaemnpidmdlfchhehel",
	Name: "VMware Horizon",
}

VMWare has details about VMware Horizon app.

View Source
var WallpaperPicker = App{
	ID:   "obklkkbkpaoaejdabbfldmcfplpdgolj",
	Name: "Wallpaper Picker",
}

WallpaperPicker has details about the Wallpaper Picker app.

View Source
var WebStore = App{
	ID:   "ahfgeienlihckogmohjhadlkjgocpleb",
	Name: "Web Store",
}

WebStore has details about the WebStore app.

View Source
var YouTubeCWS = App{
	ID:   "blpcfgokakmgnkcojhhkbfbldkacnbeo",
	Name: "YouTube",
}

YouTubeCWS has details about the YouTube app from Chrome Web Store.

View Source
var Youtube = App{
	ID:   "aniolghapcdkoolpkffememnhpphmjkl",
	Name: "Youtube",
}

Youtube has details about the Youtube app.

Functions

func Close

func Close(ctx context.Context, tconn *chrome.TestConn, appID string) error

Close closes an app specified by appID.

func InstallPWAForURL

func InstallPWAForURL(ctx context.Context, cr *chrome.Chrome, pwaURL string, timeout time.Duration) (string, error)

InstallPWAForURL navigates to a PWA, attempts to install and returns the installed app ID.

func Launch

func Launch(ctx context.Context, tconn *chrome.TestConn, appID string) error

Launch launches an app specified by appID.

func LaunchChromeByShortcut

func LaunchChromeByShortcut(tconn *chrome.TestConn, incognitoMode bool) action.Action

LaunchChromeByShortcut launches a new Chrome window in either normal user mode by shortcut `Ctl+N` or incognito mode by shortcut `Ctl+Shift+N`.

func LaunchOSSettings

func LaunchOSSettings(ctx context.Context, cr *chrome.Chrome, url string) (*chrome.Conn, error)

LaunchOSSettings launches the OS Settings app to its subpage URL, and returns a connection to it. When this method returns, OS Settings page has finished loading.

This method is necessary because OS Settings now uses System Web App link capturing, which doesn't work with DevTools protocol CreateTarget.

Note, `url` needs to exactly match the page OS Settings ends up navigating to. For example, chrome://os-settings/.

func LaunchSystemWebApp

func LaunchSystemWebApp(ctx context.Context, tconn *chrome.TestConn, appName, url string) error

LaunchSystemWebApp launches a system web app specifide by its name and URL.

func ListSystemWebApps

func ListSystemWebApps(ctx context.Context, tconn *chrome.TestConn) ([]*ash.ChromeApp, error)

ListSystemWebApps retrieves a list of installed apps and filters down the system web apps.

func ListSystemWebAppsInternalNames

func ListSystemWebAppsInternalNames(ctx context.Context, tconn *chrome.TestConn) ([]string, error)

ListSystemWebAppsInternalNames returns a string[] that contains system app's internal names. It queries System Web App Manager via Test API.

Types

type App

type App struct {
	// ID is the Chrome extension ID of the app.
	ID string
	// Name is the name of the app.
	Name string
}

App is used to represent a ChromeOS app.

func ChromeOrChromium

func ChromeOrChromium(ctx context.Context, tconn *chrome.TestConn) (App, error)

ChromeOrChromium returns the correct browser for the current build. Chromium is returned on non branded builds (e.g amd64-generic).

func PrimaryBrowser

func PrimaryBrowser(ctx context.Context, tconn *chrome.TestConn) (App, error)

PrimaryBrowser returns the primary browser for the current system configuration. In LacrosPrimary and LacrosOnly configurations, this is 'Lacros'. Otherwise it is 'Chrome' or 'Chromium' depending on branding. The given TestConn must be a connection to Ash.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL