Commit graph

143 commits

Author SHA1 Message Date
Cheng Zhao
11221979e5 Disable overriding built-in protocols with protocol.registerProtocol. 2013-08-30 12:51:15 +08:00
Cheng Zhao
72c604f741 Custom the implementation of url request job factory.
It's needed for interceptor API.
2013-08-30 12:04:51 +08:00
Cheng Zhao
04910b8391 Skelecton for interceptor APIs. 2013-08-30 10:15:15 +08:00
Cheng Zhao
4bdd1b88ad Wrap passed 'url' and 'referrer' in an 'request' object. 2013-08-29 21:12:48 +08:00
Cheng Zhao
261f50701a Add 'registered' and 'unregistered' events for protocol module.
This is only used for writing specs.
2013-08-29 20:56:25 +08:00
Cheng Zhao
bc4201f911 Make protocol module an EventEmitter. 2013-08-29 20:38:04 +08:00
Cheng Zhao
6915f020d9 Add protocol.isHandledProtocol API. 2013-08-29 20:22:52 +08:00
Cheng Zhao
244d7eaf17 Allow returning file for custom protocol. 2013-08-25 16:06:29 +08:00
Cheng Zhao
1ed77371c0 Enable customing mime type and charset when returning reqeust string job. 2013-08-25 15:07:07 +08:00
Cheng Zhao
912bac698c Allow returning string in custom protocols. 2013-08-25 12:36:06 +08:00
Cheng Zhao
8464fb4f64 Pass weak pointers when posting tasks to other threads. 2013-08-24 20:32:12 +08:00
Cheng Zhao
0b01e49cd3 💄 2013-08-24 20:21:46 +08:00
Cheng Zhao
8cd7ccdc0d Call the JS handler to get the type of job. 2013-08-24 20:18:12 +08:00
Cheng Zhao
b7c9f8ba1c The request should go through UI thread. 2013-08-24 19:46:38 +08:00
Cheng Zhao
f63661256f Return AdapterRequestJob when creating job. 2013-08-24 19:33:23 +08:00
Cheng Zhao
33279b1a2f Actually set and remove protocol handlers in IO thread.. 2013-08-24 17:59:34 +08:00
Cheng Zhao
96c173217f Remember registered schemes. 2013-08-24 16:38:19 +08:00
Cheng Zhao
b9cbfb8103 Skelecton for the protocol module. 2013-08-24 15:26:10 +08:00
Cheng Zhao
6193a889ff [Win] Use the modified Menu2 class. 2013-08-17 16:45:21 +08:00
Cheng Zhao
a949e9542d Add AtomWindow.isWebViewFocused() API, fixes #57. 2013-08-16 12:56:25 +08:00
Cheng Zhao
fc3bad0d4f 💄 2013-08-15 17:50:30 +08:00
Cheng Zhao
c700d291e5 Don't overwrite existing fields when build menu from template. 2013-08-15 16:11:25 +08:00
Cheng Zhao
63b85bccab [Mac] Clean up the menu controller. 2013-08-14 23:03:02 +08:00
Cheng Zhao
f908619630 [Mac] Move the FixMenuTitles hack to MenuController. 2013-08-14 22:33:18 +08:00
Cheng Zhao
22012d41d8 [Mac] Ship the MenuController implementation from Chromium. 2013-08-14 22:24:21 +08:00
Cheng Zhao
ee2c696577 Make sure all MenuItem's options have a default value. 2013-08-14 21:59:49 +08:00
Cheng Zhao
971b72c2b6 When calling menu item's click callback, pass the item object. 2013-08-14 12:51:47 +08:00
Cheng Zhao
d4a148ea52 The Menu object should store items by its index. 2013-08-14 12:03:37 +08:00
Cheng Zhao
c6f18f095e Enable to attach extra fields to menu items. 2013-08-14 11:07:44 +08:00
Cheng Zhao
f4425afb39 Move accelerator_util to browser/ui. 2013-08-13 17:07:25 +08:00
Cheng Zhao
97bf979b22 Move file_dialog and message_box to browser/ui. 2013-08-13 16:51:47 +08:00
Cheng Zhao
b2872eaf60 [Win] Implement context menu. 2013-08-06 21:08:52 +08:00
Cheng Zhao
ea1f81aa52 [Mac] Add app.dock.getBadge() API. 2013-08-06 16:39:31 +08:00
Cheng Zhao
b1f88d680b [Mac] Add API for dock, fixes #46. 2013-08-06 16:19:56 +08:00
Cheng Zhao
55034be104 Add power-monitor module, fixes #45. 2013-08-03 16:03:56 +08:00
Cheng Zhao
d59fb55a81 Add BrowserWindow.inspectElement(x, y) API. 2013-07-18 19:21:25 +08:00
Cheng Zhao
23dd5b4da8 Add 'open-url' event for app API. Fixes #36. 2013-07-10 18:59:21 +08:00
Cheng Zhao
df460c8d7d Add dummny menu implementation for Windows. 2013-07-05 09:44:56 +08:00
Cheng Zhao
f146c1fe3b Seperate implementation of crash reporter to standalone class. 2013-07-04 16:30:49 +08:00
Cheng Zhao
6bdf7c51b4 Don't rely on "iosfwd" for forward including std::string.
It seems that VS fails on this.
2013-07-01 21:56:46 +08:00
Cheng Zhao
0c6997b160 Fix passing null as window in dialog.showMessageBox. 2013-06-27 19:33:38 +08:00
Cheng Zhao
7138d3a58d Add app.getHomeDir() API. 2013-06-19 13:49:58 +08:00
Cheng Zhao
81aea6a4b9 Add app.getVersion() API. Fixes #28. 2013-06-19 13:44:17 +08:00
Cheng Zhao
dbaf8860a6 Revert "Make BrowserWindow inheritable. Fixed #23."
This reverts commit 5a0aab2e4f.
2013-06-18 21:40:03 +08:00
Cheng Zhao
3d267e2a9f Since we support inheritance of native objects, use js to send messages. 2013-06-18 18:47:13 +08:00
Cheng Zhao
5a0aab2e4f Make BrowserWindow inheritable. Fixed #23. 2013-06-18 18:35:08 +08:00
Cheng Zhao
eaa03facee Add API for renderer's crashes. 2013-06-10 21:08:30 +08:00
Cheng Zhao
f62b88d9ae Add BrowserWindow.restartHangMonitorTimeout() API. 2013-06-07 18:42:57 +08:00
Cheng Zhao
dfbbaa9efb Allow showing message dialog as sheet. 2013-06-07 15:59:12 +08:00
Cheng Zhao
024c316bcd Fullscreen => FullScreen. Fixed #19. 2013-06-07 14:06:30 +08:00