]> khamidou — GitHub mirrors - electron.git/log
electron.git
10 years agoExtend NativeWindow to track touch-based scroll events on OS X
Ben Gotow [Thu, 21 Jan 2016 17:40:21 +0000 (09:40 -0800)]
Extend NativeWindow to track touch-based scroll events on OS X

In N1, we want to implement the famous "swipe to archive" action on threads in the user's inbox. Chrome exposes `scroll` and `wheel` events, but these aren't sufficient to implement the interaction because the element needs to "snap" when the user lifts their fingers from the trackpad, not when they / we stop receiving `wheel` / `scroll` events. These events may stop before the user lifts their fingers, or continue after the user has lifted their fingers if they had enough momentum for the gesture to continue.

This exposes BrowserWindow `scroll-touch-down` and `scroll-touch-up`, which fire immeditaely when the user touches two fingers to the trackpad, and again when the user lifts their fingers. Combined with the existing wheel event should allow for "swipe-to-archive" and other similar interactions.

Note: This is only implemented on Mac OS X and the events don't fire unless you're using a trackpad!

Related: #1486, #2683, https://github.com/nylas/N1/issues/541

10 years agoMerge pull request #4172 from atom/enable-eslint-rules
Kevin Sawicki [Thu, 21 Jan 2016 16:56:07 +0000 (09:56 -0700)]
Merge pull request #4172 from atom/enable-eslint-rules

Enable more eslint rules

10 years agoAdd WebView to globals
Kevin Sawicki [Wed, 20 Jan 2016 16:50:10 +0000 (09:50 -0700)]
Add WebView to globals

10 years agoEnable no-undef eslint rule
Kevin Sawicki [Wed, 20 Jan 2016 16:50:00 +0000 (09:50 -0700)]
Enable no-undef eslint rule

10 years agoAdd missing fs require
Kevin Sawicki [Wed, 20 Jan 2016 16:49:52 +0000 (09:49 -0700)]
Add missing fs require

10 years agoAdd missing semicolons
Kevin Sawicki [Wed, 20 Jan 2016 16:48:25 +0000 (09:48 -0700)]
Add missing semicolons

10 years agoAdd globals to eslint config
Kevin Sawicki [Wed, 20 Jan 2016 14:10:14 +0000 (07:10 -0700)]
Add globals to eslint config

10 years agoRun cpplint from lint npm script
Kevin Sawicki [Wed, 20 Jan 2016 14:07:39 +0000 (07:07 -0700)]
Run cpplint from lint npm script

10 years agoe -> error
Kevin Sawicki [Tue, 19 Jan 2016 23:11:55 +0000 (15:11 -0800)]
e -> error

10 years agoClean up semicolon lint errors
Kevin Sawicki [Tue, 19 Jan 2016 22:53:59 +0000 (14:53 -0800)]
Clean up semicolon lint errors

10 years agoClean up no-unused-vars lint errors
Kevin Sawicki [Tue, 19 Jan 2016 22:49:40 +0000 (14:49 -0800)]
Clean up no-unused-vars lint errors

10 years agoClean up no-empty lint errors
Kevin Sawicki [Tue, 19 Jan 2016 19:31:47 +0000 (11:31 -0800)]
Clean up no-empty lint errors

10 years agoClean up indent eslint errors
Kevin Sawicki [Tue, 19 Jan 2016 18:25:03 +0000 (10:25 -0800)]
Clean up indent eslint errors

10 years agoClean up no-unreachable lint errors
Kevin Sawicki [Tue, 19 Jan 2016 18:21:18 +0000 (10:21 -0800)]
Clean up no-unreachable lint errors

10 years agoAdd npm run lint script
Kevin Sawicki [Tue, 19 Jan 2016 18:21:06 +0000 (10:21 -0800)]
Add npm run lint script

10 years agoMerge pull request #4170 from arniu/patch-1
Cheng Zhao [Wed, 20 Jan 2016 22:47:32 +0000 (15:47 -0700)]
Merge pull request #4170 from arniu/patch-1

Update coding-style.md

10 years agoMerge pull request #4166 from ragingwind/patch-1
Cheng Zhao [Wed, 20 Jan 2016 22:34:31 +0000 (15:34 -0700)]
Merge pull request #4166 from ragingwind/patch-1

Add Korean community

10 years agoMerge pull request #4164 from deepak1556/menu_toggle_crash_patch
Cheng Zhao [Wed, 20 Jan 2016 22:32:53 +0000 (15:32 -0700)]
Merge pull request #4164 from deepak1556/menu_toggle_crash_patch

browser: fix crash when switching to sibling menu from submenus

10 years agoMerge pull request #4165 from yamatoya/master
Cheng Zhao [Wed, 20 Jan 2016 22:28:17 +0000 (15:28 -0700)]
Merge pull request #4165 from yamatoya/master

Add Japanes translated docs.

10 years agoMerge pull request #4168 from atom/cpplint-utility-folder
Kevin Sawicki [Wed, 20 Jan 2016 17:00:50 +0000 (10:00 -0700)]
Merge pull request #4168 from atom/cpplint-utility-folder

Run cpplint on utility folder

10 years agodocs: win.destroy() is safe
Cheng Zhao [Wed, 20 Jan 2016 16:46:38 +0000 (09:46 -0700)]
docs: win.destroy() is safe

10 years agoRemove trailing whitespace
Kevin Sawicki [Wed, 20 Jan 2016 14:11:38 +0000 (07:11 -0700)]
Remove trailing whitespace

10 years agoRun cpplint on utility folder
Kevin Sawicki [Wed, 20 Jan 2016 14:11:28 +0000 (07:11 -0700)]
Run cpplint on utility folder

10 years agoMerge pull request #4158 from atom/desktop-capturer-error-message
Cheng Zhao [Wed, 20 Jan 2016 16:42:51 +0000 (09:42 -0700)]
Merge pull request #4158 from atom/desktop-capturer-error-message

Fix error calling desktopCapturer.getSources twice

10 years agoUpdate coding-style.md
Hailin Tseng [Wed, 20 Jan 2016 16:03:41 +0000 (00:03 +0800)]
Update coding-style.md

10 years agoAdd Korean community
Jimmy Moon [Wed, 20 Jan 2016 10:05:35 +0000 (19:05 +0900)]
Add Korean community

10 years agoAdd Japanes translated docs.
Takahito Yamatoya [Wed, 20 Jan 2016 07:09:01 +0000 (16:09 +0900)]
Add Japanes translated docs.

10 years agobrowser: fix crash when switching to sibling menu from submenus
Robo [Wed, 20 Jan 2016 02:59:44 +0000 (08:29 +0530)]
browser: fix crash when switching to sibling menu from submenus

10 years agoMerge pull request #4146 from yamatoya/master
Cheng Zhao [Tue, 19 Jan 2016 20:12:41 +0000 (12:12 -0800)]
Merge pull request #4146 from yamatoya/master

Add Japanes translated docs.

10 years agoTweak spec description
Kevin Sawicki [Tue, 19 Jan 2016 19:05:57 +0000 (11:05 -0800)]
Tweak spec description

10 years agoRemove unused errorMessage reference
Kevin Sawicki [Tue, 19 Jan 2016 19:02:12 +0000 (11:02 -0800)]
Remove unused errorMessage reference

10 years agoAdd failing spec
Kevin Sawicki [Tue, 19 Jan 2016 18:57:18 +0000 (10:57 -0800)]
Add failing spec

10 years agoUse const and remove extra returns
Kevin Sawicki [Tue, 19 Jan 2016 18:54:12 +0000 (10:54 -0800)]
Use const and remove extra returns

10 years agoMerge pull request #4153 from sunaiwen/patch-1
Kevin Sawicki [Tue, 19 Jan 2016 18:12:26 +0000 (10:12 -0800)]
Merge pull request #4153 from sunaiwen/patch-1

Update debugging-main-process.md

10 years agoMerge pull request #4150 from hamxiaoz/patch-1
Kevin Sawicki [Tue, 19 Jan 2016 18:10:17 +0000 (10:10 -0800)]
Merge pull request #4150 from hamxiaoz/patch-1

Fix a broken link

10 years agoAdd Japanes translated docs.
Takahito Yamatoya [Tue, 19 Jan 2016 08:23:17 +0000 (17:23 +0900)]
Add Japanes translated docs.

10 years agoUpdate debugging-main-process.md
Niven Su [Tue, 19 Jan 2016 05:49:49 +0000 (13:49 +0800)]
Update debugging-main-process.md

fix doc typo

10 years agoFix a broken link
Andrew Zheng [Mon, 18 Jan 2016 21:50:33 +0000 (13:50 -0800)]
Fix a broken link

The reference-style link uses a relative path, which doesn't work well on the main site http://electron.atom.io/.

10 years agoAdd Japanes translated docs.
Takahito Yamatoya [Mon, 18 Jan 2016 14:38:44 +0000 (23:38 +0900)]
Add Japanes translated docs.

10 years agoMerge pull request #4142 from Rokt33r/patch-2
Cheng Zhao [Mon, 18 Jan 2016 10:33:03 +0000 (18:33 +0800)]
Merge pull request #4142 from Rokt33r/patch-2

Update frameless-window.md

10 years agoUpdate frameless-window.md
Dick Choi [Mon, 18 Jan 2016 09:35:14 +0000 (18:35 +0900)]
Update frameless-window.md

`-title-bar-style` => `titleBarStyle“

https://github.com/atom/electron/blob/master/docs/api/browser-window.md#class-browserwindow

10 years agoMerge pull request #4138 from yamatoya/master
Cheng Zhao [Mon, 18 Jan 2016 07:37:07 +0000 (15:37 +0800)]
Merge pull request #4138 from yamatoya/master

Add Japanes translated docs.

10 years agoAdd Japanes translated docs.
Takahito Yamatoya [Sun, 17 Jan 2016 16:00:28 +0000 (01:00 +0900)]
Add Japanes translated docs.

10 years agoMerge pull request #4135 from atom/add-npm-start
Cheng Zhao [Sun, 17 Jan 2016 06:33:28 +0000 (14:33 +0800)]
Merge pull request #4135 from atom/add-npm-start

Add npm start script

10 years agoAdd npm start script
Kevin Sawicki [Sat, 16 Jan 2016 20:31:09 +0000 (12:31 -0800)]
Add npm start script

10 years agoMerge pull request #4133 from yamatoya/master
Cheng Zhao [Sat, 16 Jan 2016 16:11:52 +0000 (00:11 +0800)]
Merge pull request #4133 from yamatoya/master

Update Japanese translated docs.

10 years agoUpdate Japanese translated docs.
Takahito Yamatoya [Sat, 16 Jan 2016 16:02:02 +0000 (01:02 +0900)]
Update Japanese translated docs.

10 years agomodules.exports => module.exports
Cheng Zhao [Sat, 16 Jan 2016 06:26:01 +0000 (14:26 +0800)]
modules.exports => module.exports

10 years agoMerge pull request #4131 from etiktin/add_is_DWM_enabled
Cheng Zhao [Sat, 16 Jan 2016 06:16:22 +0000 (14:16 +0800)]
Merge pull request #4131 from etiktin/add_is_DWM_enabled

Add API for checking if DWM composition (Aero Glass) is enabled

10 years agoMerge pull request #4126 from atom/add-eslint
Cheng Zhao [Sat, 16 Jan 2016 05:26:07 +0000 (13:26 +0800)]
Merge pull request #4126 from atom/add-eslint

Run eslint on CI

10 years agoMerge pull request #4121 from atom/format-coffee-helpers
Cheng Zhao [Sat, 16 Jan 2016 05:24:26 +0000 (13:24 +0800)]
Merge pull request #4121 from atom/format-coffee-helpers

Format leftover CoffeeScript helpers

10 years agoAdd documentation
Eran Tiktin [Sat, 16 Jan 2016 05:18:20 +0000 (07:18 +0200)]
Add documentation

10 years agoAdd API for checking if AeroGlass/DWM is enabled
Eran Tiktin [Sat, 16 Jan 2016 04:27:44 +0000 (06:27 +0200)]
Add API for checking if AeroGlass/DWM is enabled

Resolves #1020

10 years agoMerge pull request #4112 from evgenyzinoviev/resize-animate-pr
Cheng Zhao [Sat, 16 Jan 2016 04:12:00 +0000 (12:12 +0800)]
Merge pull request #4112 from evgenyzinoviev/resize-animate-pr

Animate window resizing on OS X

10 years agoUpdate brightray, close #4124
Cheng Zhao [Sat, 16 Jan 2016 03:43:15 +0000 (11:43 +0800)]
Update brightray, close #4124

10 years agoMerge pull request #4129 from etiktin/fix_4127
Cheng Zhao [Sat, 16 Jan 2016 03:41:28 +0000 (11:41 +0800)]
Merge pull request #4129 from etiktin/fix_4127

Fix freeing asar fd on Windows

10 years agoFix Windows crash when trying to free asar fd
Eran Tiktin [Sat, 16 Jan 2016 01:48:07 +0000 (03:48 +0200)]
Fix Windows crash when trying to free asar fd

10 years agoRemove unneeded semicolon
Kevin Sawicki [Fri, 15 Jan 2016 23:10:26 +0000 (15:10 -0800)]
Remove unneeded semicolon

10 years agoAdd missing {
Kevin Sawicki [Fri, 15 Jan 2016 23:09:25 +0000 (15:09 -0800)]
Add missing {

10 years agoUse ES6 style class
Kevin Sawicki [Fri, 15 Jan 2016 22:31:23 +0000 (14:31 -0800)]
Use ES6 style class

10 years agoDisable linebreak-style rule
Kevin Sawicki [Fri, 15 Jan 2016 22:58:34 +0000 (14:58 -0800)]
Disable linebreak-style rule

10 years agoLint entire atom folder
Kevin Sawicki [Fri, 15 Jan 2016 22:43:23 +0000 (14:43 -0800)]
Lint entire atom folder

10 years agoCombine duplicate eslint keys
Kevin Sawicki [Fri, 15 Jan 2016 22:40:37 +0000 (14:40 -0800)]
Combine duplicate eslint keys

10 years agoRun eslint on CI
Kevin Sawicki [Fri, 15 Jan 2016 22:38:07 +0000 (14:38 -0800)]
Run eslint on CI

10 years agoRename eslintrc-src to eslintrc-base
Kevin Sawicki [Fri, 15 Jan 2016 22:37:51 +0000 (14:37 -0800)]
Rename eslintrc-src to eslintrc-base

10 years agoAdd back v8Util binding
Kevin Sawicki [Fri, 15 Jan 2016 22:29:36 +0000 (14:29 -0800)]
Add back v8Util binding

10 years agoUse ES6 style class
Kevin Sawicki [Fri, 15 Jan 2016 22:28:12 +0000 (14:28 -0800)]
Use ES6 style class

10 years agoUse ES6 style class
Kevin Sawicki [Fri, 15 Jan 2016 22:15:42 +0000 (14:15 -0800)]
Use ES6 style class

10 years agoUse ES6 style class
Kevin Sawicki [Fri, 15 Jan 2016 22:12:57 +0000 (14:12 -0800)]
Use ES6 style class

10 years agoLint spec js files
Kevin Sawicki [Fri, 15 Jan 2016 22:02:05 +0000 (14:02 -0800)]
Lint spec js files

10 years agoAdd eslint dev dependency
Kevin Sawicki [Fri, 15 Jan 2016 21:52:42 +0000 (13:52 -0800)]
Add eslint dev dependency

10 years agoAdd initial eslint script
Kevin Sawicki [Fri, 15 Jan 2016 21:52:18 +0000 (13:52 -0800)]
Add initial eslint script

10 years agoAdd initial eslint config
Kevin Sawicki [Fri, 15 Jan 2016 21:37:03 +0000 (13:37 -0800)]
Add initial eslint config

10 years agoUse const instead of var
Kevin Sawicki [Fri, 15 Jan 2016 19:46:52 +0000 (11:46 -0800)]
Use const instead of var

10 years agoMerge pull request #11 from atom/master
Eran Tiktin [Fri, 15 Jan 2016 19:00:37 +0000 (21:00 +0200)]
Merge pull request #11 from atom/master

Update from upstream

10 years agoRemove unneeded .constructor segments
Kevin Sawicki [Fri, 15 Jan 2016 18:29:00 +0000 (10:29 -0800)]
Remove unneeded .constructor segments

10 years agoUse util.inherits instead of CoffeeScript's extend function
Kevin Sawicki [Fri, 15 Jan 2016 17:57:36 +0000 (09:57 -0800)]
Use util.inherits instead of CoffeeScript's extend function

10 years agoDeclare vars one per line
Kevin Sawicki [Fri, 15 Jan 2016 17:32:57 +0000 (09:32 -0800)]
Declare vars one per line

10 years agoUse [].inclues where appropriate
Kevin Sawicki [Fri, 15 Jan 2016 17:30:29 +0000 (09:30 -0800)]
Use [].inclues where appropriate

10 years agoRemove unneeded [].indexOf fallback
Kevin Sawicki [Fri, 15 Jan 2016 17:24:53 +0000 (09:24 -0800)]
Remove unneeded [].indexOf fallback

10 years agoMerge pull request #4122 from atom/remove-cpp-lint-warning
Kevin Sawicki [Fri, 15 Jan 2016 18:17:16 +0000 (10:17 -0800)]
Merge pull request #4122 from atom/remove-cpp-lint-warning

Fix lint errors in archive.cc

10 years agoAdd missing semicolon
Kevin Sawicki [Fri, 15 Jan 2016 18:09:19 +0000 (10:09 -0800)]
Add missing semicolon

10 years agoUse 2 space indent instead of 3
Kevin Sawicki [Fri, 15 Jan 2016 18:05:35 +0000 (10:05 -0800)]
Use 2 space indent instead of 3

10 years agocode style fix
evgenyzinoviev [Fri, 15 Jan 2016 16:40:42 +0000 (17:40 +0100)]
code style fix

10 years agoarguments handing rewritten, doc updated
evgenyzinoviev [Fri, 15 Jan 2016 16:31:31 +0000 (17:31 +0100)]
arguments handing rewritten, doc updated

10 years agoMerge pull request #4118 from Ivshti/patch-1
Cheng Zhao [Fri, 15 Jan 2016 15:58:57 +0000 (23:58 +0800)]
Merge pull request #4118 from Ivshti/patch-1

Ensure we close FD on Windows

10 years agoMerge pull request #4116 from 0b61d29/patch-1
Cheng Zhao [Fri, 15 Jan 2016 15:33:25 +0000 (23:33 +0800)]
Merge pull request #4116 from 0b61d29/patch-1

Spelling: bellow → below

10 years agoMerge pull request #4113 from importcjj/master
Cheng Zhao [Fri, 15 Jan 2016 15:32:39 +0000 (23:32 +0800)]
Merge pull request #4113 from importcjj/master

fix incorrect markdown tag

10 years agoMerge pull request #4111 from evgenyzinoviev/movable
Cheng Zhao [Fri, 15 Jan 2016 15:24:22 +0000 (23:24 +0800)]
Merge pull request #4111 from evgenyzinoviev/movable

Added an option to prevent a window from being moved on OS X

10 years agoadded a note that this option is only implemented on osx
evgenyzinoviev [Fri, 15 Jan 2016 15:02:23 +0000 (16:02 +0100)]
added a note that this option is only implemented on osx

10 years agoEnsure we close FD on Windows
Ivo Georgiev [Fri, 15 Jan 2016 14:54:29 +0000 (16:54 +0200)]
Ensure we close FD on Windows

10 years agospelling: bellow -> below
Florian Hämmerle [Fri, 15 Jan 2016 12:43:44 +0000 (13:43 +0100)]
spelling: bellow -> below

10 years agoMerge pull request #4082 from atom/web-contents-lifetime
Cheng Zhao [Fri, 15 Jan 2016 09:24:47 +0000 (17:24 +0800)]
Merge pull request #4082 from atom/web-contents-lifetime

Fix some junk output when running tests

10 years agoSmall ajustments on lifetime of webContents
Cheng Zhao [Wed, 13 Jan 2016 09:59:59 +0000 (17:59 +0800)]
Small ajustments on lifetime of webContents

10 years agospec: Group session.cookies tests
Cheng Zhao [Wed, 13 Jan 2016 09:19:53 +0000 (17:19 +0800)]
spec: Group session.cookies tests

10 years agospec: Remove annoying outputs from savePage test
Cheng Zhao [Wed, 13 Jan 2016 09:12:47 +0000 (17:12 +0800)]
spec: Remove annoying outputs from savePage test

10 years agoNo need to call sender.callbacks.remove
Cheng Zhao [Wed, 13 Jan 2016 09:07:18 +0000 (17:07 +0800)]
No need to call sender.callbacks.remove

The IDWeakMap automatically removes the key when object is garbage
collected.

10 years agoMerge pull request #4109 from atom/const
Cheng Zhao [Fri, 15 Jan 2016 08:32:07 +0000 (16:32 +0800)]
Merge pull request #4109 from atom/const

[WIP] Use `const` for requires

10 years agofix incorrect markdown tag
Importcjj [Fri, 15 Jan 2016 07:26:16 +0000 (15:26 +0800)]
fix incorrect markdown tag

10 years agoBump v0.36.4 v0.36.4
Cheng Zhao [Fri, 15 Jan 2016 06:27:19 +0000 (14:27 +0800)]
Bump v0.36.4