Cheng Zhao
912ed2ca10
Merge pull request #1839 from deepak1556/devtools_api_patch
...
devtools: initialise devtoolsWebContents when opened with inspect* apis
2015-06-03 18:31:25 +08:00
Cheng Zhao
d4be2da70e
Don't rely on process_id to search for NativeWindow
2015-06-03 14:08:56 +08:00
deepak1556
67a9931b55
devtools: initialise devtoolsWebContents when opened with inspect* apis
2015-06-01 17:23:44 +05:30
Cheng Zhao
a9ad783bca
The ElementSizeChanged has been removed
2015-05-29 13:52:14 +08:00
Cheng Zhao
b5c9fe78f1
Listen to ElementSizeChanged event
2015-05-29 13:47:09 +08:00
Cheng Zhao
e4bb456964
Pass element size when attaching
2015-05-29 11:47:54 +08:00
Cheng Zhao
bdf73fcd4c
Update to the new algorithm of setting webview size
2015-05-29 11:12:55 +08:00
deepak1556
f98da217e1
fix accessing headers from resourcerequestdetails
2015-05-28 11:20:07 +05:30
Cheng Zhao
4a376694b4
Merge pull request #1719 from deepak1556/service_worker_patch
...
devtools: api to inspect service worker
2015-05-27 15:47:41 +08:00
Cheng Zhao
1c60575dc0
Merge pull request #1738 from deepak1556/http_ptach
...
webContents: providing header details with response event
2015-05-27 15:05:55 +08:00
Cheng Zhao
c244e83e10
Merge pull request #1633 from deepak1556/window_event_patch
...
window: adding resize and move events
2015-05-27 14:54:36 +08:00
deepak1556
2de0b025f1
retrieve headers from response info
2015-05-24 10:56:25 +05:30
deepak1556
2b9826404a
using mate::Dictionary instead of base::DictionaryValue
2015-05-23 19:26:47 +05:30
deepak1556
4d5790dc09
return headers as object
2015-05-23 19:26:47 +05:30
deepak1556
c22b138b67
webContents: providing header details with response event
2015-05-23 19:26:47 +05:30
Cheng Zhao
b202bba2e6
Don't read Buffer in IO thread
2015-05-22 22:15:13 +08:00
Cheng Zhao
d78efe7c22
Use Local instead of Handle
2015-05-22 19:11:22 +08:00
Cheng Zhao
01e891652f
Fix compilation errors
2015-05-22 15:24:34 +08:00
deepak1556
9a60fde59b
alias move and moved event on OS X
2015-05-22 12:24:12 +05:30
Robo
1b1735bca9
avoid unnecessary api calls
2015-05-22 12:13:00 +05:30
deepak1556
3a5977e09f
window: adding resize and move events
2015-05-22 12:13:00 +05:30
Cheng Zhao
fd41f1e8bc
Merge pull request #1616 from deepak1556/webview_fullscreen_patch
...
webContents: override fullscreen notification apis for webview
2015-05-21 15:03:48 +08:00
Cheng Zhao
32b2ef3539
Merge pull request #1710 from deepak1556/screen_patch
...
screen: initialise displays_ vector with primary display
2015-05-21 14:58:27 +08:00
Cheng Zhao
cde6b41a05
Merge pull request #1730 from deepak1556/webview_navigation_patch
...
navigation: adding clearHistory method
2015-05-21 14:56:30 +08:00
deepak1556
3ecfadf367
screen: initialise displays_ vector with available displays
2015-05-21 11:28:48 +05:30
deepak1556
e8a02316ce
also emit html fullscreen notification on windows when its webview contents trigger it
2015-05-21 10:41:53 +05:30
deepak1556
0dcf061dc1
check if window is html or forced fullscreen
2015-05-21 10:16:11 +05:30
deepak1556
f2d91bc53c
adding events to notify fullscreen state
2015-05-21 10:16:11 +05:30
deepak1556
ddda8e4197
track html api triggered fullscreen separaely
2015-05-21 10:16:11 +05:30
deepak1556
4fe294ed04
check for renderviewhost availability before using
2015-05-21 10:16:10 +05:30
deepak1556
be57151037
webContents: override fullscreen notification apis for webview
2015-05-21 10:16:10 +05:30
Cheng Zhao
427b9567ca
Merge pull request #1713 from deepak1556/navigation_patch
...
navigation: fix accessing url from history array for goToIndex
2015-05-21 10:43:34 +08:00
Cheng Zhao
dbecc8d5f5
Merge pull request #1701 from CharlieHess/paste-and-match-style
...
Paste and Match Style
2015-05-20 23:12:46 +08:00
Cheng Zhao
4ae1998d09
Revert #1604
2015-05-20 20:35:54 +08:00
deepak1556
e80e4ae02c
remove usage global browser context
2015-05-20 16:14:57 +05:30
deepak1556
04b797ff0c
webContents: providing response headers in did-get-response-details event
2015-05-20 15:54:30 +05:30
deepak1556
c548b9c87e
webContents: adding events to detect gpu and plugin process crashes
2015-05-20 15:05:48 +05:30
Cheng Zhao
b558485394
Merge pull request #1732 from atom/web-preferences
...
Simplify how we find NativeWindow from WebContents
2015-05-20 10:45:01 +08:00
Cheng Zhao
7c69c2846b
Simplify how we find NativeWindow from WebContents
2015-05-20 10:27:16 +08:00
Paul Betts
5ee0ff9ee9
Fixup code review items
2015-05-19 14:27:15 -07:00
Paul Betts
e4d90f747f
Pass user agent along like http referrer and set user agent in C++
2015-05-19 14:27:15 -07:00
deepak1556
b0e8cafa00
navigation: adding clearHistory method
2015-05-19 22:41:03 +05:30
deepak1556
9963ddc485
implement method on browser window
2015-05-18 20:08:08 +05:30
deepak1556
46d80e8f05
devtools: api to inspect service worker for current webcontents
2015-05-18 19:19:33 +05:30
deepak1556
ef30adcaef
navigation: fix accessing url from history array for goToIndex
2015-05-17 03:31:24 +05:30
Charlie Hess
3913e18447
Add WebContents API for PasteAndMatchStyle.
2015-05-15 00:15:19 -07:00
Cheng Zhao
e817192df3
Make history.go work
2015-05-11 16:44:01 +08:00
Cheng Zhao
2bb7497312
Handle when in-page entries are cleared
2015-05-11 16:37:53 +08:00
Cheng Zhao
82ffa4d2b1
Send history operations as asynchronous messages
...
Sending as sync message will cause weird results for
NavigationController
2015-05-11 16:03:25 +08:00
Cheng Zhao
d1545a64ae
Don't force restart renderer process for in-page navigation
2015-05-11 14:40:40 +08:00
Cheng Zhao
40631edb70
Use Chrome's navigation controller for in-page navigations
2015-05-11 14:30:26 +08:00
Cheng Zhao
fc2bc20572
Determine wheter a navigation entry is in-page
2015-05-11 13:51:52 +08:00
deepak1556
24bcd3b21e
provide default error message
2015-05-11 10:24:44 +05:30
deepak1556
9ab53b0e4b
protocol: adding error job to log error with custom protocols
2015-05-11 10:17:31 +05:30
deepak1556
22c50d0800
webContents: removing getFavicon api
2015-05-04 13:39:13 +05:30
Cheng Zhao
f5cf3556b1
Pass bounds in clicked event of tray
2015-05-04 11:43:22 +08:00
Cheng Zhao
294dbac869
Merge pull request #1543 from deepak1556/tray_icon_patch
...
tray: send tray icon position as payload onclick OSX and windows
2015-05-04 11:11:13 +08:00
deepak1556
6d7d068e49
tray: send tray icon position as payload onclick OSX
2015-05-01 19:30:01 +05:30
deepak1556
ae6a1b409f
window: adding setBounds and getBounds api
2015-05-01 16:20:53 +05:30
Cheng Zhao
9300859983
Merge pull request #1535 from deepak1556/contents_patch
...
webContents: adding serviceworker helper utilities
2015-05-01 14:56:35 +08:00
deepak1556
d76bd4a103
webContents: adding serviceworker helper utilities
2015-05-01 12:02:57 +05:30
Cheng Zhao
bfac7f7a17
Make beforeunload work in webview
2015-05-01 13:48:39 +08:00
Cheng Zhao
817dfbdc27
Merge pull request #1525 from deepak1556/dom_event_patch
...
webContents: providing dom-ready event
2015-05-01 12:08:03 +08:00
Cheng Zhao
72f5381c31
Merge pull request #1521 from deepak1556/title_patch
...
webContents: check for navigation entry before using
2015-04-30 16:54:14 +08:00
deepak1556
8c5f171a93
webContents: providing dom-ready event
2015-04-30 09:58:29 +05:30
Cheng Zhao
8d3404d26c
win: Fix compilation error
2015-04-29 15:13:46 +08:00
deepak1556
d8be645d5a
webContents: check for navigation entry before using
2015-04-29 08:57:49 +05:30
Paul Betts
7c2b1468c8
Fix typo
2015-04-28 15:49:16 -07:00
Paul Betts
fb6c80d12e
Create an explicit API for setting the App User Model ID
2015-04-28 12:23:58 -07:00
Cheng Zhao
dde791d475
Allow calling goBack for multiple times
2015-04-27 15:11:59 +08:00
Cheng Zhao
16b2f08cd3
Don't use Chromium's history list
2015-04-27 15:11:59 +08:00
Cheng Zhao
0143a45488
Implement our own NavigationController
2015-04-27 15:11:59 +08:00
Cheng Zhao
858198a2bd
Merge pull request #1461 from deepak1556/webview_devtools_patch
...
webview: add inspectElement method
2015-04-25 16:14:13 +08:00
deepak1556
6cc571bdfe
include headers only in places used
2015-04-25 10:13:52 +05:30
deepak1556
18b3dfa350
removed will-navigate and did-navigate events
2015-04-25 09:50:28 +05:30
deepak1556
05be71e9bc
fix getFavcion api in webview to return dataUrl
2015-04-25 09:50:28 +05:30
deepak1556
36819e2638
added did-navigate event, getFavicon api and workaround webview spec
2015-04-25 09:50:28 +05:30
deepak1556
9b585458c1
webview: will-navigate and page-favicon-set navigation events
2015-04-25 09:50:28 +05:30
deepak1556
cdb1711fe1
webview: add inspectElement method
2015-04-23 15:18:13 +05:30
Cheng Zhao
1690df9bcf
Merge branch 'api_content_tracing_patch' of https://github.com/deepak1556/atom-shell into deepak1556-api_content_tracing_patch
2015-04-23 10:21:15 +08:00
Cheng Zhao
b37c73436b
Fix API changes
2015-04-21 18:56:08 +08:00
Cheng Zhao
51b5e953f4
Align the " in #1426
2015-04-20 20:04:02 +08:00
deepak1556
1f580cbb67
pm: throw when initialising module before ready event
2015-04-20 13:47:36 +05:30
deepak1556
51cadc6e90
nativemate: moved std::set converter
2015-04-18 01:29:57 +05:30
Cheng Zhao
fc7bddf0d9
Merge pull request #1409 from deepak1556/webcontents_geturl_patch
...
webContents: fix dereferencing null in getURL
2015-04-13 17:07:36 +08:00
Cheng Zhao
e28fc190f2
Merge pull request #1382 from deepak1556/webcontents_patch
...
webContents: workaround reloadIgnoringcache without breaking node integration
2015-04-13 14:54:06 +08:00
deepak1556
a3f630e55c
webContents: workaround reloadIgnoringcache without breaking node integration
2015-04-13 11:03:16 +05:30
Cheng Zhao
64f9f7e906
Merge pull request #1386 from deepak1556/web_contents_patch
...
webContents: event to detect status of requested resource
2015-04-13 11:59:37 +08:00
Cheng Zhao
6137c2317d
Improves #1373
...
* Don't pollute Menu API.
* Add examples in docs.
* Moves the docs from menu-item.md to menu.md.
2015-04-13 11:22:33 +08:00
Cheng Zhao
7a97488023
Merge pull request #1373 from FoldingText/position-menu-items
...
Add position attribute for menu items
2015-04-13 09:46:13 +08:00
Robo
847ae5abe4
webContents: fix dereferencing null in getURL
2015-04-12 10:51:05 +05:30
deepak1556
15a648a879
webContents: event to detect status of requested resource
2015-04-08 19:14:47 +05:30
Jesse Grosjean
c8a3c14a8c
Add position attribute for menu items
...
This commit adds a position attribute for menu items defined in menu
templates. When the final menu is built the position attribute is used
to determine menu item positions in a similar design to how Eclipse
positions menu items.
2015-04-07 11:14:28 -04:00
Cheng Zhao
fb00c28026
Merge pull request #1356 from deepak1556/web_view_patch
...
webview: adding page-title-set event
2015-04-07 10:54:07 +08:00
Robo
87af6f9c80
webview: adding page-title-set event
2015-04-05 14:50:42 +05:30
Robo
3aefa5f549
browserWindow: adding devtools-focused event
2015-04-02 12:23:57 +05:30
Cheng Zhao
3b1be743ef
Merge pull request #1309 from hokein/workspace-visible-api
...
Add workspace visible APIs
2015-03-29 20:37:07 +08:00
Haojian Wu
0342854e25
Update workspace visible APIs.
2015-03-29 10:01:52 +08:00
Cheng Zhao
32cd068427
Improve #1307
2015-03-27 16:24:33 +08:00
deepak1556
69d958b94e
providing option to undock devtools from browser-window
2015-03-27 13:32:08 +05:30
Haojian Wu
476b61322f
Add SetVisibleOnAllWorkspaces/IsVisibleOnAllWorkspaces API.
...
These two APIs are only available on OS X/Linux platforms.
2015-03-26 14:18:37 +08:00
Cheng Zhao
a4342fd5ba
Unify how we throw exceptions
2015-03-26 11:34:41 +08:00
deepak1556
e87041bcfc
throw when trying to create tray before app is ready
2015-03-25 20:10:01 +05:30
Cheng Zhao
2c0b50a7e9
Merge pull request #1208 from deepak1556/protocol
...
adding protocol.RequestBufferJob api
2015-03-20 10:34:31 +08:00
Cheng Zhao
9bae54f917
Avoid extra copy of data in capturePage
2015-03-20 10:26:42 +08:00
deepak1556
9eac8ef266
add protocol.RequestBuffer api
2015-03-19 09:36:57 +05:30
Cheng Zhao
12d5474077
Fix webview for the new API
2015-03-18 09:57:46 +08:00
Cheng Zhao
dfad907530
Fix API changes of tracing API
2015-03-18 09:57:39 +08:00
Cheng Zhao
8a138fafd4
Fix API changes of WebContentsDelegate
2015-03-18 09:57:38 +08:00
Cheng Zhao
dead7caab2
CommandLine moved to base::CommandLine
2015-03-18 09:57:37 +08:00
Cheng Zhao
7457eccdee
Merge pull request #1238 from deepak1556/browser_window_lib_patch
...
define devToolsWebContents for use from remote module
2015-03-16 16:43:46 +08:00
Robo
87cb2ece80
add DidFailProvisionalLoad method
2015-03-14 08:58:30 +05:30
deepak1556
adb130cefa
define devToolsWebContents for use from remote module
2015-03-11 19:58:12 +05:30
Cheng Zhao
6856d203c5
Merge pull request #1215 from deepak1556/dialog_patch
...
avoid overriding type value of showMessageBox
2015-03-09 13:50:18 -07:00
Cheng Zhao
29471ff8b5
Fix styling of #1209
2015-03-09 13:46:46 -07:00
deepak1556
0b780def24
avoid overriding type value of showMessageBox
2015-03-06 17:56:26 +05:30
Robo
0663b9dae2
using WebContentsObserver::NavigationEntryCommitted to set virtualurl
2015-03-05 20:09:27 +05:30
Charlie Hess
b6787a9b34
Emit a new before-quit event at the start of Browser::Quit, which gives us a chance to cancel before any windows are closed.
2015-02-25 19:33:42 -08:00
Cheng Zhao
e81baf759a
Enable setting icon of menu item
2015-02-13 12:11:50 +08:00
Cheng Zhao
b28a241dbf
Simplify the code to call delegate method
2015-02-13 11:47:22 +08:00
Cheng Zhao
da407200d2
Return NativeImage in BrowserWindow.capturePage
2015-02-12 13:45:50 +08:00
Paul Betts
86de75deef
Style fixups
2015-02-10 17:14:26 -08:00
Paul Betts
f55379ed5b
Add missing trampoline method
2015-02-06 17:07:29 -08:00
Paul Betts
1b9649b481
Switch to gfx::Image
2015-02-06 17:00:26 -08:00
Paul Betts
fa6d499a4e
Come correct with line length and constness
2015-02-06 16:32:27 -08:00
Paul Betts
0afac1e05a
Plumb code all the way up
2015-02-06 16:12:32 -08:00
Cheng Zhao
071a55974a
A little clean up
2015-02-05 00:19:30 -08:00
Cheng Zhao
7c8bed7bfc
Get the WebViewManager from embedder WebContents
...
This make our lives easier when we have multiple BrowserContext support.
2015-02-04 15:52:59 -08:00
Cheng Zhao
209840871c
Seperate the API implementation of WebViewManager
2015-02-04 15:39:41 -08:00
Cheng Zhao
331d0481bb
Move web_view_manager to atom/browser
2015-02-04 15:17:28 -08:00
Cheng Zhao
2c61070b36
Avoid using global BrowserContext
2015-02-04 15:08:29 -08:00
Cheng Zhao
502c0f0df7
Remove the WebViewRendererState class
2015-02-04 14:58:03 -08:00
Cheng Zhao
92142ee372
Fix the API to set opaque background
2015-01-27 13:18:31 -08:00
Cheng Zhao
43421aedcf
OVERRIDE macro is now removed
2015-01-27 13:18:30 -08:00
Cheng Zhao
20431f4f2f
No need to route via ATOM_INTERNAL_MESSAGE
2015-01-27 10:47:11 -08:00
Cheng Zhao
81b370ee9f
Implement CheckMediaAccessPermission, fixes #1017
2015-01-23 15:13:49 -08:00
Cheng Zhao
3d858bee95
Guard against bad events in screen module
...
It can happen that the DisplayObserver methods are called without a
valid Display object passed.
2015-01-19 14:46:29 -08:00
Cheng Zhao
7fbf4246ac
Add editing commands for WebContents
2015-01-19 12:09:47 -08:00
Cheng Zhao
4604c9bb0e
Add a few more paths for app.getPath
2015-01-18 21:43:23 -08:00
Cheng Zhao
ce52a87477
Add "cache" and "userCache" directories
2015-01-18 21:43:22 -08:00
Cheng Zhao
3d398458a8
Throw error when PathService call failed
2015-01-18 21:43:21 -08:00
Cheng Zhao
a988b48016
Implement app.getHomeDir with app.getPath
2015-01-18 21:43:20 -08:00
Cheng Zhao
06da5f254a
Add app.setPath and app.getPath APIs
...
They can be used to set/get any path defined in PathService
2015-01-18 21:43:19 -08:00
Cheng Zhao
45c26e0e5a
Add app.setDataPath API
2015-01-18 21:43:18 -08:00
Cheng Zhao
c6fb645f6b
Warning of app not ready in screen module
2015-01-18 21:42:46 -08:00
Cheng Zhao
b3c3556286
Update the displays when there is metrics change
2015-01-16 12:04:35 -08:00
Cheng Zhao
50b96ca7ef
Pass the display in screen events
2015-01-16 12:02:32 -08:00
Cheng Zhao
7749484628
Make getAllDisplays return current displays.
2015-01-16 11:39:25 -08:00
Cheng Zhao
b5898d3355
Add events on display add/remove.
2015-01-16 11:01:38 -08:00
Cheng Zhao
809c995c0b
Make "screen" module a browser module
2015-01-16 11:01:38 -08:00