Methods
-
<private> _checkPermissions() → {Promise.<boolean>}
-
Try to get permissions, if not already authorized - may block
- Source:
Returns:
true if we have permissions
- Type
- Promise.<boolean>
-
<private> _chromeBackgroundTapped()
-
Event: Process the background permission
- Source:
-
<private> _computeAlbumIconDisabled(useGoogle, isAlbumMode) → {boolean}
-
Computed binding: Calculate mode tooltip
Parameters:
Name Type Description useGoogle
boolean true if using Google Photos
isAlbumMode
boolean true if album mode
- Source:
Returns:
true if album icons should be disabled
- Type
- boolean
-
<private> _computeHidden(waitForLoad, permPicasa) → {boolean}
-
Computed property: Hidden state of main interface
Parameters:
Name Type Description waitForLoad
boolean true if loading
permPicasa
string permission state
- Source:
Returns:
true if hidden
- Type
- boolean
-
<private> _computeLargeTimeDisabled(enabled, showTimeValue) → {boolean}
-
Computed binding: Set disabled state of largeTime toggle
Parameters:
Name Type Description enabled
boolean enabled state of screensaver
showTimeValue
number showTime value
- Source:
Returns:
true if disabled
- Type
- boolean
-
<private> _computeMailToUrl(subject) → {string}
-
computed binding: Get a mailto url
Parameters:
Name Type Description subject
string email subject
- Source:
Returns:
url
- Type
- string
-
<private> _computeMenuHidden(selectedTab) → {boolean}
-
Computed property: Set menu icons visibility
Parameters:
Name Type Description selectedTab
int the current tab
- Source:
Returns:
true if menu should be visible
- Type
- boolean
-
<private> _computeModeIcon(isAlbumMode) → {string}
-
Computed binding: Calculate mode icon
Parameters:
Name Type Description isAlbumMode
boolean true if album mode
- Source:
Returns:
an icon
- Type
- string
-
<private> _computeModeTooltip(isAlbumMode) → {string}
-
Computed binding: Calculate mode tooltip
Parameters:
Name Type Description isAlbumMode
boolean true if album mode
- Source:
Returns:
page title
- Type
- string
-
<private> _computePhotoLabel(count) → {string}
-
Computed binding: Set photo count label on an album
Parameters:
Name Type Description count
int number of photos in album
- Source:
Returns:
i18n label
- Type
- string
-
<private> _computePhotoSizingMenu() → {Array}
-
Computed binding: photo sizing values
- Source:
Returns:
Array of menu items
- Type
- Array
-
<private> _computePhotoTransitionMenu() → {Array}
-
Computed binding: photo transition values
- Source:
Returns:
Array of menu items
- Type
- Array
-
<private> _computeStack(lastError) → {string}
-
Computed Binding
Parameters:
Name Type Description lastError
Chrome.Storage.LastError the error
- Source:
Returns:
stack trace
- Type
- string
-
<private> _computeTimeFormatMenu() → {Array}
-
Computed binding: time format values
- Source:
Returns:
Array of menu items
- Type
- Array
-
<private> _computeTitle(lastError) → {string}
-
Computed Binding
Parameters:
Name Type Description lastError
Chrome.Storage.LastError the error
- Source:
Returns:
page title
- Type
- string
-
<private> _computeTitle(isAlbumMode) → {string}
-
Computed binding: Calculate page title
Parameters:
Name Type Description isAlbumMode
boolean true if album mode
- Source:
Returns:
page title
- Type
- string
-
<private> _computeTransitionTimeUnits() → {Array}
-
Computed binding: transition time values
- Source:
Returns:
Array of menu items
- Type
- Array
-
<private> _computeVersion() → {string}
-
computed binding: Get the extension version
- Source:
Returns:
Version of the extension
- Type
- string
-
<private> _computeWaitTimeUnits() → {Array}
-
Computed binding: idle time values
- Source:
Returns:
Array of menu items
- Type
- Array
-
<private> _deselectAllTapped()
-
Event: deselect all app.PhotoSource objects tapped
- Source:
-
<private> _initIsAlbumMode()
-
Initialize value if it is not in localStorage
- Source:
-
<private> _initPermPicasa()
-
Initialize value if it is not in localStorage
- Source:
-
<private> _initUseGoogleAlbums()
-
Initialize value if it is not in localStorage
- Source:
-
<private> _initUseGooglePhotos()
-
Initialize value if it is not in localStorage
- Source:
-
<private> _onAlbumSelectChanged(event)
-
Event: Album checkbox state changed
Parameters:
Name Type Description event
Event tap event
Properties
Name Type Description model.album
app.GoogleSource.Album the album
- Source:
-
<private> _onDeselectAllTapped()
-
Event: Handle tap on deselect all albums icon
- Source:
-
<private> _onEmailTapped()
-
Event: Email support
- Source:
-
<private> _onModeTapped()
-
Event: Handle tap on mode icon
- Source:
-
<private> _onRefreshTapped()
-
Event: Handle tap on refresh album list icon
- Source:
-
<private> _onRemoveTapped()
-
Event: Remove the error
- Source:
-
<private> _onSelectAllTapped()
-
Event: Handle tap on select all albums icon
- Source:
-
<private> _onUseGoogleChanged()
-
Event: checked state changed on main toggle changed
- Source:
-
<private> _restoreDefaultsTapped()
-
Event: restore default settings tapped
- Source:
-
<private> _selectAlbums()
-
Set the checked state of the stored albums
- Source:
-
<private> _selectAllTapped()
-
Event: select all app.PhotoSource objects tapped
- Source:
-
<private> _setPhotoSourceChecked(useName, state)
-
Set checked state of a app.PhotoSource
Parameters:
Name Type Description useName
string source name
state
boolean checked state
- Source:
-
<private> _setPhotoSourcesChecked(state)
-
Set checked state of all app.PhotoSource objects
Parameters:
Name Type Description state
boolean checked state
- Source:
-
<private> _setUseKeys(useGoogle, isAlbumMode)
-
Set keys for photo sources
Parameters:
Name Type Description useGoogle
boolean Google Photos use enabled
isAlbumMode
boolean Are we in album mode
- Source:
-
<private> _showStorageErrorDialog(method)
-
Exceeded storage limits error
Parameters:
Name Type Description method
string function that caused error
- Source:
-
<private> _uncheckAll()
-
Uncheck all albums
- Source:
-
deselectPhotoSource(useName)
-
Deselect the given app.PhotoSource
Parameters:
Name Type Description useName
string Name of
- Source:
-
loadAlbumList()
-
Query Picasa for the list of the users albums
- Source: