Permalink
Browse files

Shorten names.

  • Loading branch information...
int3 committed Mar 6, 2013
1 parent 25c871c commit 8fec3a8a1418c548a158144f7abadba27594ac32
Showing with 8 additions and 8 deletions.
  1. +2 −2 background_scripts/commands.coffee
  2. +2 −2 background_scripts/main.coffee
  3. +4 −4 content_scripts/link_hints.coffee
@@ -110,7 +110,7 @@ Commands =
advancedCommands: [
"scrollToLeft", "scrollToRight", "moveTabToNewWindow",
"goUp", "goToRoot", "focusInput", "LinkHints.activateModeWithQueue",
- "LinkHints.activateModeToOpenIncognitoWindow", "goNext", "Marks.activateCreateMode", "Marks.activateGotoMode"]
+ "LinkHints.activateModeToOpenIncognito", "goNext", "Marks.activateCreateMode", "Marks.activateGotoMode"]
defaultKeyMappings =
"?": "showHelp"
@@ -217,7 +217,7 @@ commandDescriptions =
'LinkHints.activateModeToOpenInNewTab': ["Open a link in a new tab"]
'LinkHints.activateModeWithQueue': ["Open multiple links in a new tab"]
- "LinkHints.activateModeToOpenIncognitoWindow": ["Open a link in incognito window"]
+ "LinkHints.activateModeToOpenIncognito": ["Open a link in incognito window"]
enterFindMode: ["Enter find mode"]
performFind: ["Cycle forward to the next find match"]
@@ -168,7 +168,7 @@ openUrlInNewTab = (request) ->
chrome.tabs.getSelected(null, (tab) ->
chrome.tabs.create({ url: Utils.convertToUrl(request.url), index: tab.index + 1, selected: true }))
-openUrlInIncognitoWindow = (request) ->
+openUrlInIncognito = (request) ->
chrome.windows.create({ url: Utils.convertToUrl(request.url), incognito: true})
#
@@ -564,7 +564,7 @@ sendRequestHandlers =
getCompletionKeys: getCompletionKeysRequest,
getCurrentTabUrl: getCurrentTabUrl,
openUrlInNewTab: openUrlInNewTab,
- openUrlInIncognitoWindow: openUrlInIncognitoWindow,
+ openUrlInIncognito: openUrlInIncognito,
openUrlInCurrentTab: openUrlInCurrentTab,
openOptionsPageInNewTab: openOptionsPageInNewTab,
registerFrame: registerFrame,
@@ -12,7 +12,7 @@ OPEN_IN_CURRENT_TAB = {}
OPEN_IN_NEW_TAB = {}
OPEN_WITH_QUEUE = {}
COPY_LINK_URL = {}
-OPEN_INCOGNITO_WINDOW = {}
+OPEN_INCOGNITO = {}
LinkHints =
hintMarkerContainingDiv: null
@@ -49,7 +49,7 @@ LinkHints =
activateModeToOpenInNewTab: -> @activateMode(OPEN_IN_NEW_TAB)
activateModeToCopyLinkUrl: -> @activateMode(COPY_LINK_URL)
activateModeWithQueue: -> @activateMode(OPEN_WITH_QUEUE)
- activateModeToOpenIncognitoWindow: -> @activateMode(OPEN_INCOGNITO_WINDOW)
+ activateModeToOpenIncognito: -> @activateMode(OPEN_INCOGNITO)
activateMode: (mode = OPEN_IN_CURRENT_TAB) ->
# we need documentElement to be ready in order to append links
@@ -92,12 +92,12 @@ LinkHints =
HUD.show("Copy link URL to Clipboard")
@linkActivator = (link) ->
chrome.extension.sendRequest({handler: "copyToClipboard", data: link.href})
- else if @mode is OPEN_INCOGNITO_WINDOW
+ else if @mode is OPEN_INCOGNITO
HUD.show("Open link in incognito window")
@linkActivator = (link) ->
chrome.extension.sendMessage(
- handler: 'openUrlInIncognitoWindow'
+ handler: 'openUrlInIncognito'
url: link.href)
else # OPEN_IN_CURRENT_TAB
HUD.show("Open link in current tab")

0 comments on commit 8fec3a8

Please sign in to comment.