Commit Graph

3550 Commits

Author SHA1 Message Date
Piro / YUKI Hiroshi
7430a767c1 Add credit 2015-09-29 06:20:22 +09:00
Piro / YUKI Hiroshi
dd6a01532d Add credit 2015-09-29 06:18:14 +09:00
Piro / YUKI Hiroshi
f52486493f Add credit of Xidorn Quan 2015-09-29 06:16:43 +09:00
Piro / YUKI Hiroshi
1d6d4b9f0c Add news topocs 2015-09-29 06:11:59 +09:00
Piro / YUKI Hiroshi
90afd04187 Bump maxVersion to 44.0a1 2015-09-29 06:05:21 +09:00
Piro / YUKI Hiroshi
01eae840aa Partially revert 04b06ef084
Regression: width of tab bar is wrongly reset on the next startup.
2015-09-29 05:11:12 +09:00
Piro / YUKI Hiroshi
2018b2063e Apply new size of the tab bar specified at the configuration dialog, for all windows 2015-09-29 04:50:16 +09:00
Piro / YUKI Hiroshi
dcb84057c8 Hide stressful fog on the tab bar.
It is a background color of the tab bar in a transparent window on Windows. Because vertical tab bar always have its background, we don't need it.
2015-09-29 03:56:45 +09:00
Piro / YUKI Hiroshi
b1b886d27d Suppress error on window closing 2015-09-29 03:47:29 +09:00
Piro / YUKI Hiroshi
04b06ef084 Apply new pref value only for the topmost browser window smartly 2015-09-29 03:45:10 +09:00
YUKI Hiroshi
fe39d5d6f3 Fix mismatched references 2015-09-28 21:42:05 +09:00
YUKI Hiroshi
3a9e922175 Re-introduce configuration UI to change fixed/unfixed and the size of the tab bar #940 2015-09-28 21:32:06 +09:00
YUKI Hiroshi
5913bf1f86 Don't shrink tab bar when a tab is closed or the focus is moved 2015-09-28 21:08:49 +09:00
YUKI Hiroshi
8e47c84fd0 Output more debug print for show/hide of the tab bar 2015-09-28 21:08:33 +09:00
YUKI Hiroshi
7fe5a517f7 Place "overlay" icon at top-right of the tab for "Metal" theme 2015-09-28 20:45:22 +09:00
YUKI Hiroshi
06fb2d4f2f Place "overlay" icon on pinned tabs at top-right of the tab 2015-09-28 20:42:35 +09:00
YUKI Hiroshi
3a3d0945c7 Place sound button in tabs before the closebox 2015-09-28 20:33:31 +09:00
YUKI Hiroshi
b607f36586 Update library to fix broken preferences dialog at Firefox 42
See: https://github.com/piroor/treestyletab/issues/944#issuecomment-143146598
2015-09-25 17:24:55 +09:00
YUKI Hiroshi
a43b31b5c7 Set tab-strip-element attribute for the tabbar internal box ceratinly.
TreeStyleTabBrowser#init() fails to set the attribute for the tabbar internal box,
so resizing of the element is unexpectedly tracked by BrowserUIShowHideObserver
even if it is triggered by the "auto hide" feature. It causes the bug #942.
When the mouse cursor moves onth the shrunken tab bar, autohide service expands
the width of the tab bar by setting width/height attribuets. Such a "resizing"
must be ignored by BrowserUIShowHideObserver because only unexpected resizing
caused by other addons triggers "update size of the floating tab bar".
2015-09-25 15:32:58 +09:00
YUKI Hiroshi
ae050bba76 Output more debug print 2015-09-25 15:26:40 +09:00
YUKI Hiroshi
f42c8c14bd Output attribute old value in the debug print 2015-09-25 15:10:19 +09:00
YUKI Hiroshi
af4c15f08d Report the reason why the tab bar is collapsed/expanded 2015-09-25 14:36:20 +09:00
YUKI Hiroshi
888a858a7d More debug prints 2015-09-25 14:36:01 +09:00
YUKI Hiroshi
064578b3e0 Open child tab correctly with middle click on "view image" in the context menu 2015-09-03 16:24:28 +09:00
YUKI Hiroshi
cbf0cbd47e Open new dummy tab when a blank bookmark folder is droppend to the tab bar (inspired from #923) 2015-08-31 18:55:54 +09:00
YUKI Hiroshi
b4fd1e9fac Drop support for firefox 31 2015-08-28 18:27:39 +09:00
YUKI Hiroshi
84d73d7471 Fix indent 2015-08-28 18:27:03 +09:00
YUKI Hiroshi
7831a6b6cc Remove codes for old Firefox 2015-08-28 18:26:30 +09:00
YUKI Hiroshi
e1198f1ef3 Remove debug print 2015-08-28 18:23:08 +09:00
YUKI Hiroshi
e2b143b372 Fix indent 2015-08-28 18:22:44 +09:00
YUKI Hiroshi
01dab35627 Open new tabs from the about:sync-tabs page as children correctly on lately Firefox 2015-08-28 18:22:19 +09:00
YUKI Hiroshi
bea74f32ba Call renamed methods correctly 2015-08-28 17:39:58 +09:00
YUKI Hiroshi
15666abfcb Call renamed methods correctly 2015-08-28 17:39:04 +09:00
Piro / YUKI Hiroshi
5380304aa8 Simplify #887 2015-08-19 01:24:54 +09:00
Piro / YUKI Hiroshi
dd2f17dd53 Show/hide UI to manage parent tab correctly on Firefox 40 and later #887 2015-08-19 01:12:07 +09:00
Piro / YUKI Hiroshi
289057ce55 Fix indent #887 2015-08-19 01:03:01 +09:00
Piro / YUKI Hiroshi
4abc4413e9 Initialize "edit" UI of a bookmark correctly for Firefox 40 and later #887 2015-08-19 00:59:16 +09:00
Piro / YUKI Hiroshi
c3adaabacf Fix mismatched method call on quitEditMode #887 2015-08-19 00:27:45 +09:00
Piro / YUKI Hiroshi
80938e8858 Replace functions entirely instead of partial patching.
This should fix #887 partially. However, when I click the star button twice, there still be another error like:

~~~
treestyletab: doPatching: gEditItemOverlay._showHideRows is missing! utils.js:319:0
treestyletab: Failed to patch to gEditItemOverlay.initPanel: function initPanel(aInfo) {
    if (typeof(aInfo) != "object" || aInfo === null)
      throw new Error("aInfo must be an object.");

    // For sanity ensure that the implementer has uninited the panel before
    // trying to init it again, or we could end up leaking due to observers.
    if (this.initialized)
      this.uninitPanel(false);

    let { itemId, itemGuid, isItem,
          isURI, uri, title,
          isBookmark, bulkTagging, uris,
          visibleRows } = this._setPaneInfo(aInfo);

    let showOrCollapse =
      (rowId, isAppropriateForInput, nameInHiddenRows = null) => {
        let visible = isAppropriateForInput;
        if (visible && "hiddenRows" in aInfo && nameInHiddenRows)
          visible &= aInfo.hiddenRows.indexOf(nameInHiddenRows) == -1;
        if (visible)
          visibleRows.add(rowId);
        return !(this._element(rowId).collapsed = !visible);
      };

    if (showOrCollapse("nameRow", !bulkTagging, "name")) {
      this._initNamePicker();
      this._namePicker.readOnly = this.readOnly;
    }

    // In some cases we want to hide the location field, since it's not
    // human-readable, but we still want to initialize it.
    showOrCollapse("locationRow", isURI, "location");
    if (isURI) {
      this._initLocationField();
      this._locationField.readOnly = this.readOnly;
    }

    // hide the description field for
    if (showOrCollapse("descriptionRow", isItem && !this.readOnly,
                       "description")) {
      this._initDescriptionField();
      this._descriptionField.readOnly = this.readOnly;
    }

    if (showOrCollapse("keywordRow", isBookmark, "keyword")) {
      this._initKeywordField();
      this._keywordField.readOnly = this.readOnly;
    }

    // Collapse the tag selector if the item does not accept tags.
    if (showOrCollapse("tagsRow", isURI || bulkTagging, "tags"))
      this._initTagsField().catch(Components.utils.reportError);
    else if (!this._element("tagsSelectorRow").collapsed)
      this.toggleTagsSelector().catch(Components.utils.reportError);

    // Load in sidebar.
    if (showOrCollapse("loadInSidebarCheckbox", isBookmark, "loadInSidebar")) {
      this._initLoadInSidebar();
    }

    // Folder picker.
    // Technically we should check that the item is not moveable, but that's
    // not cheap (we don't always have the parent), and there's no use case for
    // this (it's only the Star UI that shows the folderPicker)
    if (showOrCollapse("folderRow", isItem, "folderPicker")) {
      let containerId = PlacesUtils.bookmarks.getFolderIdForItem(itemId);
      this._initFolderMenuList(containerId);
    }

    // Selection count.
    if (showOrCollapse("selectionCount", bulkTagging)) {
      this._element("itemsCountText").value =
        PlacesUIUtils.getPluralString("detailsPane.itemsCountLabel",
                                      uris.length,
                                      [uris.length]);
    }

    // Observe changes.
    if (!this._observersAdded) {
      PlacesUtils.bookmarks.addObserver(this, false);
      window.addEventListener("unload", this, false);
      this._observersAdded = true;
    }
  }
~~~
2015-08-19 00:25:47 +09:00
YUKI "Piro" Hiroshi
4252c461fd Merge pull request #925 from upsuper/fix-fullscreen
Fix fullscreen issues #903 and #910
2015-08-18 16:55:11 +09:00
Xidorn Quan
1e8a1bc324 Fix Fullscreen API issue for Firefox 41+.
This is a change from bug 1161802 which makes the "fullscreen" event be
triggered after window.fullScreen value flips.
2015-08-18 12:11:23 +10:00
Xidorn Quan
075487b836 Fix sidebar in fullscreen mode for Firefox 40+.
This is a change from bug 947854 where FullScreen.mouseoverToggle is
replaced with FullScreen.{show,hide}NavToolbox. This fix detects this
and do patching accordingly.
2015-08-18 12:10:08 +10:00
YUKI Hiroshi
27efc4311d Update library 2015-07-24 11:14:57 +09:00
YUKI "Piro" Hiroshi
11756e550b Merge pull request #916 from jryans/raf
Replace mozRequestAnimationFrame with requestAnimationFrame. Fixes #915
2015-07-24 10:51:06 +09:00
YUKI Hiroshi
c224b26066 Revert "Repair fullscreen detection. Fixes #903"
This reverts commit 5958766997.
It breaks Firefox 39 and older versions.
2015-07-23 12:18:59 +09:00
YUKI "Piro" Hiroshi
68cbf8456d Merge pull request #917 from jryans/fullscreen
Repair fullscreen detection. Fixes #903
2015-07-23 12:13:43 +09:00
J. Ryan Stinnett
5958766997 Repair fullscreen detection. Fixes #903 2015-07-22 19:13:08 -05:00
J. Ryan Stinnett
008a520efd Replace mozRequestAnimationFrame with requestAnimationFrame. Fixes #915 2015-07-22 10:43:47 -05:00
Piro / YUKI Hiroshi
acc59ec32a Add news topic for the next release 2015-06-13 00:38:50 +09:00
Piro / YUKI Hiroshi
b6e4abe842 Update library 2015-06-13 00:19:58 +09:00