Cheng Zhao
b92d5071fa
views: Make auto-hide-menu-bar work when NumLock is on, fixes #796
2014-11-07 21:59:26 -05:00
Frank Hale
ef255db069
Making Http Referrer addition better!
...
- Code cleanup
2014-11-07 21:54:36 -05:00
Frank Hale
24f8c51959
Make sure frame is frameless
2014-11-07 13:34:52 -05:00
Frank Hale
4b20ac3dc6
Fix Windows min/max animation on frameless windows
...
- Frameless windows disappeared or appears when minimized and maximized
on Windows. This commit fixes that.
2014-11-07 13:13:12 -05:00
Cheng Zhao
edcae49e52
views: Fix showing menu bar when pressing Alt for a long time
2014-11-07 15:20:16 +08:00
Cheng Zhao
81283db2da
views: Make auto-hide-menu-bar work when NumLock is on, fixes #796
2014-11-07 15:05:55 +08:00
Frank Hale
f56d1ea7b4
Add support for setting http referrer
...
- Add url option to specify the http referrer
- Add httpReferrer attribute to webview
NOTE: This is still not complete. Some love has to be done to
guest-view-manager.coffee and very likely the function calls called
createGuest and to the code that uses them.
2014-11-06 14:29:41 -05:00
Cheng Zhao
217b1afe87
Load the "preload" script in <webview>
2014-11-06 15:13:37 +08:00
Cheng Zhao
058046304d
Forbid using dialog module before app is ready
2014-11-05 19:50:24 +08:00
Cheng Zhao
7ff0e0214e
linux: Use GTK+ for error reporting when GUI is ready
2014-11-05 19:27:43 +08:00
Cheng Zhao
2be5393768
Don't print error to console in default_app
2014-11-05 19:08:09 +08:00
Cheng Zhao
b54caccb22
linux: Print error to console when GUI is not ready
2014-11-05 19:08:00 +08:00
Cheng Zhao
c499dfbb22
mac: Implement dialog.showErrorBox
2014-11-05 17:27:04 +08:00
Cheng Zhao
f6ba308ff8
Use dialog.showErrorBox for showing errors
2014-11-05 16:05:29 +08:00
Cheng Zhao
10e195a444
win: Implement dialog.showErrorBox
2014-11-05 16:05:11 +08:00
Cheng Zhao
490a12d38a
Add dialog.showErrorBox API
2014-11-05 16:04:39 +08:00
Cheng Zhao
80d574482e
Add "plugins" attribute for <webview>
2014-11-05 14:59:28 +08:00
Cheng Zhao
d1724ad733
Bump v0.19.1.
2014-11-04 19:19:31 +08:00
Cheng Zhao
c5212b36f7
External links should have "foreground-tab" disposition
2014-11-04 18:49:57 +08:00
Cheng Zhao
22c5720aa2
Window opened by window.open should have "default" disposition
2014-11-04 18:31:47 +08:00
Cheng Zhao
f29c7164f3
Translate |disposition| to string
2014-11-04 18:12:57 +08:00
Cheng Zhao
013593ccf8
Emit "new-window" event for dispositions other than CURRENT_TAB
2014-11-04 17:59:15 +08:00
Cheng Zhao
4c12a4369d
Fixes Event.prevenDefault() not working, closes #771
2014-11-03 23:24:20 +08:00
Cheng Zhao
4ebe58df57
Also add closeDevTools and isDevToolsOpened for webview
2014-11-03 22:12:56 +08:00
Cheng Zhao
accd08a2bf
Show devtools for guest page in undocked mode
2014-11-03 21:48:25 +08:00
Cheng Zhao
1731d609b7
Fix double freeing WebContents
2014-11-03 19:45:09 +08:00
Cheng Zhao
cf9f249f07
Merge branch 'webview-devtools' of https://github.com/project-infinium/atom-shell into project-infinium-webview-devtools
2014-11-03 18:42:18 +08:00
Cheng Zhao
92cfd96933
Merge pull request #777 from atom/web-dialog
...
Implement file dialog and color chooser for <input> tag
2014-11-03 17:47:08 +08:00
gray
6c3f065147
force devtools to show as undocked.
2014-11-02 11:32:06 -08:00
gray
45f4a25ac9
fix for cpplint
2014-11-02 07:32:33 -08:00
gray
f43c227806
update and document openDevTools on web view.
2014-11-02 07:20:10 -08:00
gray
368d23ef5b
add open devtools api to webview tag
2014-11-02 06:34:22 -08:00
Kevin Sawicki
b6b6fc3bfd
Remove All Rights Reserved after GitHub copyright
...
Closes #762
2014-10-31 11:17:05 -07:00
Cheng Zhao
14c9a2a087
mac: Add color chooser dialog
2014-10-31 22:53:15 +08:00
Cheng Zhao
0f5a058bdd
Implement RunFileChooser
2014-10-31 19:27:01 +08:00
Cheng Zhao
7d15aa2321
OVERRIDE => override in atom_browser_client.h
2014-10-31 18:26:01 +08:00
Cheng Zhao
9b1bcf51c6
Implement EnumerateDirectory
2014-10-31 17:37:32 +08:00
Cheng Zhao
b710cc3063
Add WebDialogHelper
2014-10-31 00:37:14 +08:00
Cheng Zhao
9ed6ad8165
Forbid using protocol module before app is ready, fixes #661
2014-10-30 22:27:29 +08:00
Cheng Zhao
25f69df341
Throw error when BrowserWindow is created before app is ready
2014-10-30 21:32:35 +08:00
Cheng Zhao
35e5c2172f
Bump v0.19.0.
2014-10-30 12:02:42 +08:00
Cheng Zhao
0c21c863d7
Simplify the GuestWindowManager
...
Instead of recording guest explicitly in a map, we just make use of
closure for bookkeeping.
2014-10-28 18:51:28 +08:00
Cheng Zhao
c71aa0995a
Reuse the window of same frame name
2014-10-28 13:23:25 +08:00
Cheng Zhao
89990ec037
Don't throw exception on closed guest window
2014-10-27 23:59:11 +08:00
Cheng Zhao
cc9ff77dd2
Make <a target="_blank"> open window by default
2014-10-27 23:46:47 +08:00
Cheng Zhao
7f4d00fac0
Add eval() for FakeWindow
2014-10-27 23:07:41 +08:00
Cheng Zhao
bdad1d1753
Add focus() and blur() for FakeWindow
2014-10-27 23:03:05 +08:00
Cheng Zhao
6f41598962
Use GuestWindowManager to mange windows created by window.open
2014-10-27 21:56:04 +08:00
Cheng Zhao
fefeb39757
Add "frameName" as paramter for "new-window" event
2014-10-27 19:14:57 +08:00
Cheng Zhao
389e56ce36
Route window.open to "new-window" event
2014-10-27 18:52:55 +08:00
Cheng Zhao
94818aef26
Set "defaultPrevented" when "preventDefault()" is called
2014-10-27 17:55:28 +08:00
Cheng Zhao
e9b344b200
OVERRIDE => override in atom_api_window.h
2014-10-27 16:58:35 +08:00
Cheng Zhao
fb864a8f23
Prevent creating popup window from inside WebContents
2014-10-27 16:56:28 +08:00
Cheng Zhao
cf4c2d02f3
OVERRIDE => override in native_window.h
2014-10-27 16:47:50 +08:00
Cheng Zhao
0839915538
Merge pull request #740 from atom/webview
...
Implement <webview> tag
2014-10-26 19:43:52 +08:00
Cheng Zhao
404e08c0e7
Make remote.getCurrentWindow() work in <webview>
2014-10-26 19:30:53 +08:00
Cheng Zhao
10a8f3c884
Make <webview> work with plugins turned off
2014-10-26 14:05:54 +08:00
Cheng Zhao
24b4fcea15
Add BIND_DONE event for process object
2014-10-25 23:21:17 +08:00
Cheng Zhao
e110f5c37c
Remove unneeded cleanup code
2014-10-25 23:09:45 +08:00
Cheng Zhao
1a93babdbc
Fix double freeing guest
2014-10-25 22:01:24 +08:00
Cheng Zhao
22e3b9df44
Add attribute to turn on node integration in <webview>
2014-10-25 20:52:42 +08:00
Cheng Zhao
d596a7427e
Node integration option is now only true/false
2014-10-25 19:20:04 +08:00
Cheng Zhao
81170d81b3
Remove iframe related security code
2014-10-25 19:08:21 +08:00
Cheng Zhao
f629fa7b27
Detect node integration in JavaScript
2014-10-25 18:51:26 +08:00
Cheng Zhao
04f1860bf5
Make autoresize follow Chrome's behavior
2014-10-25 16:04:16 +08:00
Cheng Zhao
194ed3884c
Add 'new-window' event for <webview>
2014-10-25 13:21:09 +08:00
Cheng Zhao
d8447524cb
Allow passing V8 objects in EventEmitter
2014-10-25 11:30:35 +08:00
patr0nus
915a6196cc
Remove the deprecated convertScreenToBase and convertBaseToScreen.
2014-10-25 11:06:39 +08:00
patr0nus
623e3ebc03
Fix type convertion errors.
2014-10-25 11:06:10 +08:00
Cheng Zhao
485bd7bbd3
Add 'close' and 'console-message' for <webview>
2014-10-25 10:01:19 +08:00
Cheng Zhao
218d69d288
Dispatch WebContents events to <webview>
2014-10-25 09:05:50 +08:00
Cheng Zhao
d63f44cd07
Add more events for WebContents
2014-10-24 23:05:25 +08:00
Cheng Zhao
2d56067819
Fix creating window in <webview>
2014-10-24 22:14:12 +08:00
Cheng Zhao
a96cde254b
Send unhandled key event to embedder
2014-10-24 21:46:47 +08:00
Cheng Zhao
e214ce6bc4
Add WebContents.insertCSS
2014-10-24 21:04:50 +08:00
Cheng Zhao
1f08d50e98
Add WebContents.setUserAgent
2014-10-24 20:57:44 +08:00
Cheng Zhao
46ed83a057
Assign a new SiteInstance for guest
2014-10-24 20:20:56 +08:00
Cheng Zhao
e95c1256a0
Add remote.getGuestWebContents
2014-10-24 19:57:29 +08:00
Cheng Zhao
58a38d90b8
Don't fork renderer process for guest
2014-10-24 19:08:26 +08:00
Cheng Zhao
4ccb0cccf3
Rename web-view module to web-frame
2014-10-24 18:45:03 +08:00
Cheng Zhao
4f43c41577
Enable navigation from webview
2014-10-24 18:44:32 +08:00
Cheng Zhao
6336edbe92
Implement allowtransparency attribute
2014-10-24 16:48:21 +08:00
Cheng Zhao
ce793ec86d
Destroy guest when the embedder is gone
2014-10-24 16:19:00 +08:00
Cheng Zhao
993f66bd02
Fix initializing webview
2014-10-24 16:09:18 +08:00
Cheng Zhao
39e75574f4
Attach <webview> with guest WebContents
2014-10-24 14:37:14 +08:00
Cheng Zhao
2d8fe489a7
Add converters between gfx:: and v8
2014-10-24 12:48:52 +08:00
Cheng Zhao
dacbf7a042
Register guest web view
2014-10-23 23:08:48 +08:00
Cheng Zhao
a22a5c67bd
Implement GuestViewInternal.createGuest and destroyGuest
2014-10-23 17:54:52 +08:00
Cheng Zhao
d34cff2eef
api: Add webContent.create() to create detached WebContents
2014-10-23 14:04:13 +08:00
Cheng Zhao
c72d769ff0
Make WebContents cache object template
2014-10-23 13:31:10 +08:00
Cheng Zhao
380de24f2e
Add code to register <webview> tag
2014-10-22 22:55:13 +08:00
Cheng Zhao
645f81effd
Bump v0.18.2.
2014-10-21 21:27:43 +08:00
Cheng Zhao
0d19e772e6
linux: Don't append --force-device-scale-factor to process.argv
2014-10-21 20:55:37 +08:00
Cheng Zhao
2844d3b358
Make code cleaner
2014-10-21 20:45:50 +08:00
Cheng Zhao
fe3489b383
linux: Also check for schema before init
2014-10-21 20:06:54 +08:00
Cheng Zhao
f6ff97cbeb
linux: Make scale factor default to 1
2014-10-21 19:48:08 +08:00
Cheng Zhao
779e5c2ea5
linux: Set scale factor to the value in gsettings
2014-10-21 19:32:40 +08:00
Cheng Zhao
4b75b10542
Add libgio loader
2014-10-21 18:50:50 +08:00
Cheng Zhao
f82de6528b
linux: Fix detect global menu bar
...
It seems that detecting the bus name "com.canonical.AppMenu.Registrar"
is the most reliable way to detect whether the appmenu is available, see
http://git.io/JmP7Yg for the discussion.
2014-10-21 12:10:31 +08:00
Cheng Zhao
ab652b738c
mac: Should restart renderer when reloading
...
Fixes #692 .
2014-10-19 16:27:50 +08:00