Cheng Zhao
917b33dbe7
Small code cleanup
2015-10-29 10:55:08 +08:00
Omri Litov
ef038257d1
Returns buffer instead of WPARAM and LPARAM
2015-10-29 03:00:44 +02:00
Omri Litov
f22837523f
Use WPARAM as uint64_t and LPARAM as int64_t
2015-10-28 21:54:50 +02:00
Cheng Zhao
b86267aa3b
Use uint64_t instead of LPARAM
...
LPARAM is defined to differnt types on differnt machines with different
SDKs, so there is no way to represent it on all platforms safely, using
uint64_t seems to be the only safe choice.
2015-10-28 19:51:24 +08:00
Omri Litov
edbebf84b9
Added browser-window event 'message'
2015-10-27 03:12:01 +02:00
Cheng Zhao
e36d455d51
Add setBackgroundColor method
2015-10-23 11:35:33 +08:00
Cheng Zhao
d092c6acc9
osx: Implement draggable region with mouseDownCanMoveWindow
...
Previously we implemented draggable region by tracking mouse position,
it is buggy and causing some problems. But it is interesting that until
this didn't cause troubles until recently.
2015-10-21 08:54:46 +08:00
Cheng Zhao
11a49bba35
win: Fix "enable-larger-than-screen" option spec
2015-10-15 16:36:29 +08:00
Cheng Zhao
898db4d6bd
osx: Set resizable flag when creating window
...
Setting resizable for frameless window before it is shown will change
its size.
2015-10-06 15:23:23 +08:00
Cheng Zhao
428c5b6d01
Setting "x" and "y" should not change window size
2015-10-06 14:50:18 +08:00
Cheng Zhao
b70e7c6a4c
Remove default definition of ContentSizeToWindowSize
2015-10-06 00:39:16 +08:00
Cheng Zhao
e675407552
Make min/max size respect use-content-size
2015-10-05 20:36:28 +08:00
Cheng Zhao
8577f2b52f
osx: Add NativeWindow::SetSizeConstraints
2015-10-05 20:07:20 +08:00
Cheng Zhao
8d61531f4e
Revert #2879
2015-10-01 17:46:11 +08:00
Cheng Zhao
83c514001e
Move devtools API to WebContents
2015-10-01 11:25:31 +08:00
Cheng Zhao
7884a2319c
osx: Make draggable region work for window with hidden titlebar
2015-09-25 16:38:36 +08:00
Robo
5ca5c4fb92
browser: hide webcontents when window not shown
2015-09-24 10:30:18 +05:30
Cheng Zhao
86f523d3c1
Move BeginFrameSubscription to WebContents
2015-09-18 15:57:43 +08:00
Cheng Zhao
42863e4700
Move SendInputEvent to WebContents
2015-09-18 14:20:31 +08:00
Cheng Zhao
9e7de78231
Fix cpplint warnings
2015-09-18 14:12:48 +08:00
Cheng Zhao
c550546ff1
Do not manually convert Object to WebInputEvent
2015-09-18 14:09:31 +08:00
Cheng Zhao
5a599cb6ff
Sequence of definitions should follow the declarations
2015-09-18 13:49:33 +08:00
Cheng Zhao
d7bac5a10b
Remove the offscreen-render option
...
We are going to move the APIs to WebContents
2015-09-18 12:15:13 +08:00
Cheng Zhao
ee0d48dc5a
Merge branch 'master' of https://github.com/MaxWhere/electron into MaxWhere-master
2015-09-18 12:01:33 +08:00
Heilig Benedek
5269380b6d
Removed duplicate keydown event sending.
2015-09-16 03:12:49 +02:00
Heilig Benedek
ceef06b344
Renamed setOffscreenRender to begin/endFrameSubscription because the name was a bit misleading, and replaced the ArrayBuffer creation with a node::Buffer::New call.
2015-09-16 02:59:16 +02:00
Cheng Zhao
b72a5884f2
Add BrowserWindow.isDevToolsFocused
2015-09-15 11:43:45 +08:00
Cheng Zhao
0b97d58a6f
Move a few options in NativeWindow to web-preferences
2015-09-06 10:53:03 +08:00
Cheng Zhao
880dce950d
Move OverrideWebkitPrefs to WebContentsPreferences
2015-09-06 10:53:03 +08:00
Cheng Zhao
39975378bb
Move AppendExtraCommandLineSwitches to WebContentsPreferences
2015-09-06 10:53:03 +08:00
Cheng Zhao
96771c7098
NPAPI has been removed, remove related option
2015-09-06 10:53:03 +08:00
Heilig Benedek
dbcd0a4235
Key event sending update.
2015-09-02 02:33:40 +02:00
Heilig Benedek
3dd3fd9200
Merge branch 'master' of https://github.com/brenca/electron
...
Conflicts:
atom/browser/api/atom_api_window.h
atom/browser/native_window.cc
2015-08-31 18:46:29 +02:00
Heilig Benedek
c59c0bd5b3
Mouse event handling and keyboard event handling (not totally working yet)
2015-08-31 18:32:33 +02:00
gellert
58081ca9e9
setOffscreenRender and api docs added
2015-08-29 00:45:00 +02:00
Heilig Benedek
e4c01f3187
Offscreen render support base
2015-08-27 11:22:39 +02:00
Cheng Zhao
a28f70e85c
Decouple TaskbarHost from NativeWindow
2015-08-06 11:10:34 +08:00
Haojian Wu
2f1cb8b52a
Expose NativeWindow.setThumbarButtons API to all platforms.
2015-08-05 22:30:05 +08:00
Cheng Zhao
58b1172025
Avoid exposing data members to subclass
2015-08-05 12:46:32 +08:00
Cheng Zhao
438a5acc0f
Use ranged for loop
2015-08-05 12:34:45 +08:00
Cheng Zhao
58c0486236
Remove duplicate UpdateDraggableRegions
2015-08-05 12:32:22 +08:00
Cheng Zhao
1347c61c8e
Set AppUserModelID for all renderer processes
2015-08-04 17:13:05 +08:00
Cheng Zhao
bbce2c7e2f
Merge pull request #2372 from atom/allow-insecure-content
...
Add allowing-insecure-content option
2015-07-30 09:38:27 +08:00
Cheng Zhao
643ed27fd4
Check whether entry is null
...
This fixes the crash in #7877 .
2015-07-29 18:26:20 +08:00
Haojian Wu
f154da38e6
Make 'allow-displaying-insecure-content' and
...
'allow-running-insecure-content' higher priority than `web-security`.
2015-07-29 18:08:44 +08:00
Haojian Wu
77a8a3d33c
Add allow-running-insecure-content
, allow-display-insecure-content
...
in BrowserWindow option.
2015-07-29 16:15:03 +08:00
Cheng Zhao
df35700b94
Style fixes
...
* Use under_score for variable names in C++
* Use const& when possible
* Line length <= 80
2015-07-23 10:07:58 +08:00
Michael S. Barthelemy
6d25c81bd1
changes requested for pull request #2250 into electron master
2015-07-22 10:23:31 -04:00
Michael S. Barthelemy
d0c6176640
wrap lines to meet Travis CI build requirements
2015-07-16 14:45:27 -04:00
Michael S. Barthelemy
7cdfa44438
shorten names
2015-07-16 14:31:01 -04:00
Michael S. Barthelemy
666aca7803
add function maintainAspectRatioOfInteriorContent to BrowserWindow in order to enforce an aspect ratio for an electron window
2015-07-16 13:54:51 -04:00
Cheng Zhao
3ffd774405
Merge pull request #2197 from deepak1556/user_agent_patch
...
webContents: set http useragent settings when overriding user agent
2015-07-14 09:59:09 -07:00
Cheng Zhao
9e8a118d10
Cleanup code
2015-07-14 03:23:19 +08:00
Cheng Zhao
0c7c6ddcc9
Merge pull request #2175 from atom/propagate-app-model-id
...
Propagate App Model User ID on Windows
2015-07-13 12:16:10 -07:00
Robo
cb4309bbd9
webContents: set http useragent settings when overriding user agent
2015-07-13 02:20:15 +05:30
Cheng Zhao
5ae57baf11
Allow more insecure content when web-security is off
...
Close #2076
2015-07-10 13:29:46 +08:00
Paul Betts
39c6e2d2e5
Linter fixes
2015-07-09 17:00:19 -07:00
Paul Betts
779583adf5
Append the app user model ID as a switch
2015-07-09 16:37:12 -07:00
Robo
b5c5cce725
window: use _NET_WM_STATE_FULLSCREEN before window is mapped
2015-06-29 19:44:56 +05:30
Cheng Zhao
1e514620b5
Remove window from window list before notifying closed event
2015-06-27 17:11:36 +08:00
Cheng Zhao
9f52b11761
Remove NativeWindow::GetWebContents
2015-06-25 14:54:00 +08:00
Cheng Zhao
9974a238c2
Fix the order of function definitions
2015-06-25 13:29:30 +08:00
Cheng Zhao
62c44ee47b
Rename CloseWebContents to RequestToClosePage
2015-06-25 13:27:51 +08:00
Cheng Zhao
eb370ba22a
Allowing destroying a closed window
2015-06-25 13:08:11 +08:00
Cheng Zhao
afa9f30aac
Add InspectableWebContentsViewDelegate
2015-06-25 12:30:04 +08:00
Cheng Zhao
fb5fe7a714
Decouple WebContentsDelegate from NativeWindow
2015-06-25 11:07:23 +08:00
Cheng Zhao
5236b0c067
Don't create WebContents in NativeWindow
2015-06-25 09:47:57 +08:00
Cheng Zhao
081a4597e9
Pass isGuest when creating WebContents
2015-06-24 23:29:32 +08:00
Cheng Zhao
19ca011735
Discard is_guest_, use type_ instead
2015-06-24 22:23:38 +08:00
Cheng Zhao
2bfa9da82e
Store NativeWindow's weak ptr in WebContents
2015-06-24 22:14:46 +08:00
Cheng Zhao
87f44c42df
Handle close cancel in BeforeUnloadDialogCancelled
2015-06-24 21:28:36 +08:00
Cheng Zhao
b822a83bc2
Remove usages of NotificationObserver
2015-06-24 20:16:51 +08:00
Cheng Zhao
7d05a12ee9
Remove ActivateContents and DeactivateContents
2015-06-24 20:10:07 +08:00
Cheng Zhao
e209312459
Replace a few calls to AtomBrowserMainParts::Get.
...
These calls replies on global BrowserContext, we can just make them use
the future default BrowserContext.
2015-06-18 17:01:23 +08:00
Haojian Wu
47eac062f6
Expose Print API to webContents and webView.
...
Also move the print implementation from window to webContents.
2015-06-16 20:08:30 +08:00
Haojian Wu
57580e00f9
Fix code style.
2015-06-16 20:07:45 +08:00
Haojian Wu
c0a6cb69bf
Move printToPDF API to WebContents.
...
Also expose in webview.
2015-06-16 20:06:52 +08:00
Haojian Wu
2597ded985
Cleanup.
2015-06-16 20:02:25 +08:00
Haojian Wu
8572ccb807
Add callback function in printToPDF API.
2015-06-16 20:02:24 +08:00
Haojian Wu
ce8bbb689c
Add options to custom print settings in printToPDF API.
2015-06-16 20:02:24 +08:00
Haojian Wu
7ffa7042b1
Add printToPDF Implementation.
2015-06-16 20:02:23 +08:00
Haojian Wu
b360f7d86a
Add printToPDF API skeleton.
2015-06-16 20:02:23 +08:00
Cheng Zhao
af62b7b5c9
Put common code of OpenURLFromTab to CommonWebContentsDelegate
2015-06-05 17:45:17 +08:00
Cheng Zhao
8f9a109fa6
Implement HTML5 fullscreen in CommonWebContentsDelegate
2015-06-05 17:27:24 +08:00
Cheng Zhao
05468cc3fa
Remove devtools APIs from NativeWindow
2015-06-05 17:01:17 +08:00
Cheng Zhao
d9efc3b4bf
Move more methods to CommonWebContentsDelegate
2015-06-05 15:12:38 +08:00
Cheng Zhao
92b15c81e9
Manage InspectableWebContents in CommonWebContentsDelegate
2015-06-05 14:55:07 +08:00
Cheng Zhao
19d742de37
Add CommonWebContentsDelegate
2015-06-05 13:49:24 +08:00
Cheng Zhao
7f7cdbf775
Remove NativeWindow::CallDevToolsFunction
2015-06-05 13:32:01 +08:00
Cheng Zhao
8306dc427a
Merge pull request #1867 from deepak1556/devtools_workspace_patch
...
devtools: supporting workspace usage
2015-06-05 13:26:37 +08:00
deepak1556
790fba598e
devtools: supporting workspace usage
2015-06-05 01:06:53 +05:30
deepak1556
683917ae67
renderer: option to override page visiblity state
2015-06-04 14:40:13 +05:30
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
4a376694b4
Merge pull request #1719 from deepak1556/service_worker_patch
...
devtools: api to inspect service worker
2015-05-27 15:47:41 +08:00
deepak1556
9a60fde59b
alias move and moved event on OS X
2015-05-22 12:24:12 +05:30
deepak1556
3a5977e09f
window: adding resize and move events
2015-05-22 12:13:00 +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
Cheng Zhao
7c69c2846b
Simplify how we find NativeWindow from WebContents
2015-05-20 10:27:16 +08:00
deepak1556
9963ddc485
implement method on browser window
2015-05-18 20:08:08 +05:30
Cheng Zhao
0d4d2080ca
Implement size and position APIs with bounds API
2015-05-04 12:47:56 +08:00
deepak1556
9ae59e8ac7
removed move utility and replaced with setbounds
2015-05-01 20:10:46 +05:30
Cheng Zhao
16b2f08cd3
Don't use Chromium's history list
2015-04-27 15:11:59 +08:00
deepak1556
20b4cae980
window: supports HTML5 fullscreen api
2015-04-23 12:14:29 +05:30
Cheng Zhao
b37c73436b
Fix API changes
2015-04-21 18:56:08 +08:00
Cheng Zhao
c7468278df
Change the window class names
2015-04-14 16:18:57 +08:00
Cheng Zhao
43fe82e1e5
Merge branch 'master' into rename-to-electron
2015-04-12 21:49:08 +08:00
Cheng Zhao
252ac465c5
Merge pull request #1384 from atom/component_build
...
Links with Chromium directly instead of linking its shared library
2015-04-11 14:12:16 +08:00
Kevin Sawicki
6615ef1054
Atom Shell -> Electron
2015-04-08 10:16:10 -07:00
Cheng Zhao
ca161e29ce
Fix calling our new APIs in patch
2015-04-02 23:02:22 +08:00
Robo
3aefa5f549
browserWindow: adding devtools-focused event
2015-04-02 12:23:57 +05:30
Cheng Zhao
21a09d3ae8
Improve #1317
2015-03-27 16:29:14 +08:00
Cheng Zhao
2505f8b8b2
Merge pull request #1317 from deepak1556/api_window_patch
...
npapi: warn users loading npapi plugins on unsupported platform
2015-03-27 16:26:03 +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
Robo
c677a44688
npapi: warn users loading npapi plugins on unsupported platform
2015-03-27 04:14:01 +05:30
Cheng Zhao
ae5586408f
Enable setting only one side of max/min size, fixes #1301
2015-03-26 12:23:38 +08:00
Cheng Zhao
30e931f10b
Revert "The "subpixel-font-scaling" option is removed"
...
This reverts commit 98fbe5127b
.
2015-03-23 16:29:32 +08:00
Cheng Zhao
9bae54f917
Avoid extra copy of data in capturePage
2015-03-20 10:26:42 +08:00
Cheng Zhao
6af7388ac0
Use DevToolsAPI instead of InspectorFrontendAPI
2015-03-18 09:57:43 +08:00
Cheng Zhao
98fbe5127b
The "subpixel-font-scaling" option is removed
2015-03-18 09:57:41 +08:00
Cheng Zhao
8e2fdc178b
Fix API changes of CopyFromBackingStore
2015-03-18 09:57:40 +08:00
Cheng Zhao
8a138fafd4
Fix API changes of WebContentsDelegate
2015-03-18 09:57:38 +08:00
Cheng Zhao
819ab5cd0c
Fix ui/gfx/geometry headers
2015-03-18 09:57:38 +08:00
Cheng Zhao
5523938a47
kDisableDirectWrite has been moved to ui/gfx
2015-01-27 13:19:18 -08:00
Cheng Zhao
750db6aed8
base/file_util.h has been moved to base/files/file_util.h
2015-01-27 13:18:30 -08:00
Cheng Zhao
4fc73117c4
Tell the render widget to use transparent background.
2014-12-23 11:17:32 -08:00
Hajime Morrita
dc9329ff43
Add BrowserWindow.showDefinitionForSelection()
...
This API shows the system-provided pop-up dictionary.
Some Mac apps including Chrome have "Look Up in in Dictionary" context
menu item. This API can be used to implement it.
2014-12-18 16:45:45 -08:00
Cheng Zhao
fd596d4a65
Add "will-navigate" event for BrowserWindow
2014-12-17 14:40:19 -08:00
Cheng Zhao
d50eeb04d5
Upgrade cpplint
2014-12-15 17:15:56 -08:00
Cheng Zhao
271eb63083
SetFullscreen => SetFullScreen
2014-11-25 14:34:14 +08:00
Cheng Zhao
b77e6c369a
x11: Implement window state events
2014-11-25 12:43:25 +08:00
Cheng Zhao
a9b1b567fb
Fix capturePage API, closes #847
2014-11-24 13:44:45 +08:00
Cheng Zhao
79d4724a15
Add a bunch of menu bar related APIs
2014-11-12 17:36:20 +08:00
Cheng Zhao
9f29f66768
Add "preload" option for BrowserWindow
2014-11-12 15:04:03 +08:00
Cheng Zhao
c5212b36f7
External links should have "foreground-tab" disposition
2014-11-04 18:49: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
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
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
9b1bcf51c6
Implement EnumerateDirectory
2014-10-31 17:37:32 +08:00
Cheng Zhao
fb864a8f23
Prevent creating popup window from inside WebContents
2014-10-27 16:56:28 +08:00
Cheng Zhao
10a8f3c884
Make <webview> work with plugins turned off
2014-10-26 14:05:54 +08:00
Cheng Zhao
d596a7427e
Node integration option is now only true/false
2014-10-25 19:20:04 +08:00
Cheng Zhao
32dff999a5
Fix API changes of Chrome 38
2014-10-11 19:11:34 +08:00
Cheng Zhao
9653f20995
win: Add "direct-write" option for BrowserWindow.
...
For atom/atom#3540 .
2014-09-18 21:49:04 +08:00