aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
AgeCommit message (Collapse)Author
2016-03-26Merge branch 'standardise-foreground-commands'Stephen Blott
Conflicts: content_scripts/vimium_frontend.coffee
2016-03-26Get frameId in background page.Stephen Blott
2016-03-26Simplify expression.Stephen Blott
2016-03-26Move command to correct spot.Stephen Blott
This command (LinkHints.activateModeToCopyLinkUrl) has been in the wrong spot for quite some time. This just moves it to be with the other link-hints commands.
2016-03-26passCountToCommand isn't needed.Stephen Blott
We pass the count to *all* front-end commands. All of the commands which don't use a count, just ignore it.
2016-03-26Pass count to find commands.Stephen Blott
With this change, now *every* front-end command either accepts a count argument, or or it doesn't accept a count at all.
2016-03-26Fix inappropriate variable name.Stephen Blott
"description" is the first element here, not all elements. So "descriptor" is a better name.
2016-03-26selected wasn't being used here.Stephen Blott
2016-03-26Unified approach to repeat background command.Stephen Blott
2016-03-26Uniform treatment of request for all background commands.Stephen Blott
2016-03-18Reduce complexity for initialising the top frame.Stephen Blott
In #2053, I omitted to notice that the top-frame (vomnibar) initialisation sequence also generates O(n^2) messages. This makes that sequence O(n).
2016-03-17Logging; do not log the tab Id.Stephen Blott
The frame Ids are sufficiently distinct. And we do not always have enough horizontal space to keep log messages on a single line.
2016-03-17Logging; auto scroll to end.Stephen Blott
2016-03-17Logging; only show the time...Stephen Blott
... we know what day it is!
2016-03-17Logging; add auto-lauch option.Stephen Blott
2016-03-17Logging; move logMessage to BgUtils."Stephen Blott
2016-03-17Refactor setIcon to the background page.Stephen Blott
There's no need for the setting of the icon to be driven from the content script. We first know the enabled state in the background page, so set the icon there immediately.
2016-03-17More tweaks for #2053.Stephen Blott
2016-03-17Tweaks for #2053.Stephen Blott
2016-03-17Simplify domReady handling.Stephen Blott
2016-03-17Tweaks.Stephen Blott
2016-03-17Move isEnabledForUrl to Frame.port.Stephen Blott
2016-03-17Fix omission from 3768b54aa1ac12cdd809e7108a6a9fd629a1164f.Stephen Blott
2016-03-17Open frames port pre documentReady.Stephen Blott
The intention is to move checkIfEnabledForUrl to the frames port. That needs to run pre domReady, so first -- here -- we separate the two ports.
2016-03-17Add filter for top frame when registering a frame.Stephen Blott
We treat the top frame specially (because it always has a frameId of 0). See point "Two" in this comment: - https://github.com/philc/vimium/pull/2053#issuecomment-196707223
2016-03-17Do not unregister the main/top frame.Stephen Blott
We never unregister the main/top frame. If the tab is navigating to another page, then there'll be a new top frame (with the same Id) along soon. If the tab is closing, then we'll tidy up in the chrome.tabs.onRemoved listener, below. This approach avoids a dependency on the order in which register and unregister events happens. See comment in #2053.
2016-03-17Tweaks and fixes for #2053.Stephen Blott
Tweaks, plus... Reinstate deletion of two cache entries on tab close.
2016-03-17Use Chrome frameIds.Stephen Blott
2016-03-17Use ports to track frames.Stephen Blott
Use `onConnect()`, the `domReady` port and `onDisconnect()` to track the frames within a tab.
2016-03-09Fix mainFrame command...Stephen Blott
Oversight from #2022.
2016-03-05Generalise topFrame commands.Stephen Blott
This generalises the mechanism by which commands are always run in the tab's main/top frame. Currently, that's just the Vomnibar. This is a precursor to moving other UI components to the main/top frame. It should be fairly trivial to move the help page to the main frame. The HUD might be trickier. Mention: @mrmr1993.
2016-03-05Simplify command-registry generation.Stephen Blott
If we just use the name `background` instead of `isBackgroundCommand`, then we can simplify the building of registry entries. This is preparitory to adding a new registryEntry field: topFrame; initially just for the Vomnibar, but thereafter for other UI components.
2016-03-05Key bindings; document Commands.generateKeyStateMapping().Stephen Blott
2016-03-05Key bindings; and one more tiny tweak.Stephen Blott
2016-03-05Key bindings; move Vomnibar commands back to content scripts.Stephen Blott
2016-03-05Key bindings; small tweaks...Stephen Blott
- simplify pass key condition - don't keep key-parsing Regexp in memory - we should reset the key state when the pass keys change
2016-03-05Key bindings; tweaks.Stephen Blott
2016-03-05Key bindings; tweaks.Stephen Blott
2016-03-05Key bindings; and yet more minor tweaks.Stephen Blott
2016-03-05Key bindings; minor tweaks.Stephen Blott
2016-03-05Key bindings; reinstate keyToCommandRegistry.Stephen Blott
... We need it for the help page.
2016-03-05Key bindings; simplify Commands initialization.Stephen Blott
2016-03-05Key bindings; more tweaks and fixes.Stephen Blott
- There's no need to keep `@keyToCommandRegistry`; it's regenerated whenever it's needed.
2016-03-05Key bindings; handle overlapping bindingsStephen Blott
With: map g something map gg somethingElse The mapping for "g" always takes priority, regardless of the order in which they're encountered in `@keyToCommandRegistry`.
2016-03-05Key bindings; tweaks and fixes.Stephen Blott
2016-03-05Key bindings; rewire vomnibar (fix minor error).Stephen Blott
2016-03-05Key bindings; rewire vomnibar.Stephen Blott
2016-03-05Key bindings; more remove legacy code.Stephen Blott
2016-03-05Key bindings; remove legacy code.Stephen Blott
2016-03-05Key bindings; partially functioning w/ backgound commands.Stephen Blott