Cheng Zhao
337e9f9553
Fixes crash caused by NativeWindow::IsWebViewFocused.
...
The RenderViewHostView could be NULL when the renderer process has
crashed.
Fixes #206 .
2014-03-10 09:24:51 +08:00
Cheng Zhao
2f113286aa
Disable acclerated composition in frameless window.
2014-03-06 11:07:04 +08:00
Cheng Zhao
686493e8ec
Append command line for renderer in NativeWindow.
2014-03-06 10:40:10 +08:00
Cheng Zhao
0fe65a688e
Temporary fix for flashing devtools.
2014-03-06 10:30:22 +08:00
Cheng Zhao
aae4abfa86
Use except-iframe security by default.
2014-03-04 20:12:43 +08:00
Cheng Zhao
dc154f3907
Disable the detachment of devtools.
2014-03-04 19:59:25 +08:00
Cheng Zhao
01b42c9e59
Make devtools API aware of devtools window.
2014-03-04 18:45:36 +08:00
Cheng Zhao
6bd0b82b2e
Store the devtools window in weak pointer.
2014-03-04 18:42:37 +08:00
Cheng Zhao
5e05a3045c
Use InspectableWebContentsDelegate.
2014-03-04 17:08:30 +08:00
Cheng Zhao
c2996d4fd1
Take control if devtools is undocked.
2014-03-04 15:46:12 +08:00
Cheng Zhao
d37bf06b5a
Make the DebugDevTools API more generic.
2014-03-04 14:35:35 +08:00
Cheng Zhao
1c07235121
Disable the undocked devtools.
2014-03-04 14:25:15 +08:00
Cheng Zhao
c98e16b18f
Do not dectect unresponsive eagerly when quitting.
...
Fixes https://github.com/atom/atom/issues/1589 .
2014-02-27 12:47:00 +08:00
Cheng Zhao
f65f95e95c
The DevTools window should manage lifetime itself.
2014-02-24 12:17:10 +08:00
Cheng Zhao
eaedac2536
Add the debugDevTools JS API.
2014-02-24 12:08:33 +08:00
Cheng Zhao
8b9d35d84e
Separate devtools code out.
2014-02-24 11:53:13 +08:00
Cheng Zhao
f2bef6c26d
Setup devtools frontend.
2014-02-24 11:28:21 +08:00
Cheng Zhao
1f57994e2a
Setup devtools client for the correct contents.
2014-02-24 10:09:32 +08:00
Cheng Zhao
618040efc1
Add DebugDevTools API.
2014-02-24 09:52:20 +08:00
Cheng Zhao
9ba7db8815
win: Fix detecting attached modal dialog.
2014-02-10 20:07:38 +08:00
Cheng Zhao
ec00da416f
Rename iframe-security to node-integration.
2014-01-30 23:20:12 +08:00
Cheng Zhao
a0b15661ed
Append --iframe-security to renderer process.
2014-01-30 21:57:01 +08:00
Cheng Zhao
249366c90a
Restart renderer process for all navigations and reloads, fixes #157 .
2014-01-14 16:03:01 +08:00
Cheng Zhao
cac3973731
Flip the y axis in CapturePage API, fixes #148 .
2013-12-31 14:40:42 +08:00
Cheng Zhao
a60be1563f
Do not implement window.open.
2013-12-27 14:32:24 +08:00
Cheng Zhao
409a431892
Huge commit to use new V8 and Content APIs.
...
Still got a lots of linking errors!
2013-12-11 15:48:19 +08:00
Cheng Zhao
cb73a3c572
Remove the RestartHangMonitorTimeout API, which is useless now.
2013-12-09 14:17:56 +08:00
Cheng Zhao
085b1a45ee
Report the right render view that is deleted.
2013-12-06 15:53:40 +08:00
Cheng Zhao
623e0f3ae4
Release render view's remote objects when it's deleted.
...
Privously we release them when the window is unloaded, which is not
correct since a render view can have multiple windows (or js contexts)
and when the unload event is emitted the render view could already have
gone.
This PR does the cleaning work purely in browser, so here is no need to
worry about renderer's life time.
2013-12-06 14:44:25 +08:00
Cheng Zhao
0229c3187b
Override the user agent to contain application and atom-shell's version.
2013-12-05 11:21:11 +08:00
Cheng Zhao
e45f83e62a
Make sure browserWindow.destroy() doesn't leave zombie processes.
2013-12-04 22:00:20 +08:00
Cheng Zhao
e43b39a009
Do not send "unresponsive" message if window is showing a modal dialog.
2013-12-04 17:18:55 +08:00
Cheng Zhao
bfe8928ab1
Do not use flags to mark whether the window is unresponsive.
...
It's error prone.
2013-12-04 17:10:59 +08:00
Cheng Zhao
a0a5b20ef1
Send the "unresponsive" event if window is not closed in 500ms when closing it.
2013-11-29 14:52:12 +08:00
Cheng Zhao
8d6764e0a0
Return screenshot's data buffer instead of directly saving to file.
2013-11-21 22:03:29 +08:00
Cheng Zhao
36ecb35cb1
Add API to capture a page into file.
2013-11-21 21:50:06 +08:00
Cheng Zhao
baa6d9730c
win: Enable setting window icon in creation options.
2013-11-11 19:29:40 +08:00
Cheng Zhao
dc1a8b644a
Get the status of devtools from brightray, fixed #27 .
2013-11-05 10:32:45 +08:00
Cheng Zhao
d443b36446
Send reply for sync messages when event.returnValue is set.
2013-09-22 09:52:58 +08:00
Cheng Zhao
ef4b36d621
Use string16 instead of std::string when sending IPC messages.
...
The underlying V8::String is represented in UTF18, by using string16 in
IPC messages we can avoid the overhead of encode conversion.
2013-09-20 22:55:42 +08:00
Cheng Zhao
ef5a4b5fe0
Pass synchronous messages by JSON string.
...
We are going to use IPC_MESSAGE_HANDLER_DELAY_REPLY to handle
synchronous messages but DictionaryValue is not copyable, so we pass the
JSON string instead.
2013-09-20 22:32:59 +08:00
Cheng Zhao
a5eb9ea08f
Add has_frame_ attribute for NativeWindow.
2013-09-05 21:43:47 +08:00
Cheng Zhao
4223867dbc
Send and receive the AtomViewHostMsg_UpdateDraggableRegions message.
2013-09-05 20:06:54 +08:00
Cheng Zhao
dbdf2d8d54
Add OnLoadingStateChanged for NativeWindowObserver.
2013-08-29 11:19:34 +08:00
Cheng Zhao
a949e9542d
Add AtomWindow.isWebViewFocused() API, fixes #57 .
2013-08-16 12:56:25 +08:00
Cheng Zhao
d888f5cc31
Revert "Enable getUserMedia(). Part of fixes for #31."
...
Now the getUserMedia is implemented in brightray.
This reverts commit f26db5c7a1
.
Conflicts:
atom.gyp
2013-08-01 14:50:06 +08:00
Cheng Zhao
e248e2ffc8
Delay the unresponsive message for a second, fixes #42 .
...
It could happen that a window became responsive immediately after the
unresponsive message is sent (for example, the window was blocked by
showing a save as dialog), by delaying sending the unresponsive message
for a second, we can give the window a chance to whether it's really
unresponsive or not.
2013-07-23 15:29:56 +08:00
Cheng Zhao
d59fb55a81
Add BrowserWindow.inspectElement(x, y) API.
2013-07-18 19:21:25 +08:00
Cheng Zhao
4ddd1bccb4
Fix how we detect renderer crash.
2013-07-18 18:37:40 +08:00
Cheng Zhao
1b93ec1032
Fix compilation errors and warnings on native_window.cc.
2013-07-01 22:01:17 +08:00