Cheng Zhao
9772777919
web_prefrences() => dict()
...
Having property name being the same with class name is making code
harder to understand, and dict is much shorter.
2018-03-22 15:15:30 +09:00
Charles Kerr
558ef7352d
Better GTK+ Menu color support ( #12300 )
...
* Better GTK+ Menu color support
* Fix 'invisible menu' issue (#12275 )
* Now updates menu text color when focus changes!
* Better caching of colors when system theme changes
* Removed all GTK+ deprecation warnings from menubar
* Don't highlight menu text on mouseover in GTK+
* Fix textColor declaration scope error
* Simplify FocusManager connection management a bit
* Make the linter happy
* Decouple MenuBar view recoloring from rebuilding
This way we don't need to rebuild the subview each time a recolor
is needed, e.g. when window focus changes or the system theme changes
* Don't iterate child views if we don't need to
* Move variable declaration outside of a loop
* More efficient iteration of MenuBar children
* Cleaner MenuButton bounds testing
* Fix oops
* Add a nullptr check in MenuBar::GetItemCount()
* Simplify iteration in MenuBar::RebuildChildren()
* Make the linter happy
* Fix signed-unsigned comparison
* Remove declarations of nonexistent methods
* Make SubmenuButton accessor const
* Cleaner accelerator iteration
* Windows fixes
2018-03-17 06:37:36 +09:00
Lyall Hamilton
ba24920fec
Fix menubar toggle alt key detection on focus
...
Reset alt keypress flag on window blur so switching window via
Alt+* window manager keybindings can't incedentally trigger
annoying menubar toggles
2018-03-08 21:48:43 +13:00
Cheng Zhao
9000bd6679
views: Explicitly set initially focused view
2018-03-06 16:21:18 +09:00
Cheng Zhao
bf862d1d07
views: Focus webContents in BrowserWindow
2018-03-06 16:21:17 +09:00
Cheng Zhao
3b3e69f8b2
Save browser_view_ in the NativeWindow
...
No need to store it separately in subclasses.
2018-03-06 16:20:37 +09:00
Cheng Zhao
503b0ba1b1
mac: Move draggable region code to BrowserWindow
...
On macOS current draggable region implementation highly relies on
WebContents, the code is only meaningful for BrowserWindow.
2018-03-06 16:20:37 +09:00
Cheng Zhao
1681ee35db
Set WebContents background color in BrowserWindow
2018-03-06 16:20:37 +09:00
Cheng Zhao
66fab65a1a
Add NativeWindowObserver::OnCloseButtonClicked
2018-02-22 19:01:45 +09:00
Cheng Zhao
bffb31c337
Remove OnMessageReceived from NativeWindow
2018-02-22 19:01:45 +09:00
Cheng Zhao
44e7282b4b
The UpdateDraggableRegions does not share implementations
2018-02-22 19:01:45 +09:00
Heilig Benedek
50690d25f1
Remove WS_EX_COMPOSITED style from window
2018-01-23 20:14:34 +01:00
Heilig Benedek
d5ab691fdb
fix osr devtools crash introduced during merge
2017-12-20 12:57:02 +09:00
Ales Pergl
fd7af5c1d9
Don't call ui::SetAtomArrayProperty
with an empty vector (fails DCHECK)
2017-12-01 17:55:22 +01:00
shelley vohr
c18afc924b
Merge pull request #10213 from electron/upgrade-to-chromium-61
...
[WIP] Upgrade to Chromium 61
2017-11-24 10:17:52 +01:00
Tony Ganch
59550b203f
Include objbase.h only for Windows
2017-11-24 10:58:17 +09:00
Tony Ganch
da04cbd4d8
Rename set_background to SetBackground
2017-11-24 10:58:17 +09:00
Aleksei Kuzmin
7f5fbb04e2
Migrate from ScopedComPtr::CreateInstance() to CoCreateInstance in chrome/...
...
https://codereview.chromium.org/2894483002
2017-11-24 10:58:17 +09:00
Heilig Benedek
bb5eecc16c
Use SizeConstraints instead of window events
2017-11-23 21:25:25 +01:00
Cheng Zhao
72440d4ae7
No need to add new methods to WebContentsPreferences
2017-11-13 17:35:49 +09:00
Cheng Zhao
7e0593950c
Code style fixes
2017-11-13 16:13:54 +09:00
Heilig Benedek
276e12ce71
pass on web_contents to properly handle devtools
2017-11-13 15:50:50 +09:00
Heilig Benedek
4b10445c2e
lint fix
2017-11-13 15:50:49 +09:00
Heilig Benedek
193beb57c9
fix datalist element popup position when menu is hidden
2017-11-13 15:50:49 +09:00
Heilig Benedek
f8b3009ebf
restructure code to use web_preferences if possible
2017-11-13 15:50:49 +09:00
Heilig Benedek
71b36ef54d
don't show the dummy window for the rest of the dialogs too on mac
2017-11-13 15:46:46 +09:00
Heilig Benedek
e39aacb30e
fix a bug that caused a crash when using an offscreen window with detached devtools, related to autofill popups
2017-11-13 15:46:46 +09:00
Taeho Kim
7570ec9d39
Add BrowserWindow.getOpacity for consistency
2017-10-03 00:08:10 +09:00
Taeho Kim
7df5182901
Fix lint
2017-10-02 09:52:27 +09:00
Ted Kim
7f2c4a9e06
Add window opacity support
2017-09-29 17:49:10 +09:00
Birunthan Mohanathas
e1ddd3bdbc
Stop sending resize event for minimized windows on Windows
...
This makes it consistent with macOS.
This also fixes BrowserView auto-resize on Windows when minimizing and
restoring the window. Previously it would incorrectly grow too in some
cases.
2017-09-25 11:44:32 +09:00
Birunthan Mohanathas
f3f6bedf8e
Make BrowserView auto-resize relative to window size on Windows/Linux
...
Previously it was relative to the window web contents size, which was
not consistent with macOS.
2017-09-25 11:44:32 +09:00
Cheng Zhao
a19a229a59
Merge pull request #10254 from zachflower/feature/simple-fullscreen-mode
...
Feature/simple fullscreen mode
2017-09-14 09:39:50 +09:00
Cheng Zhao
70fd42808e
Fix build on Linux
2017-08-21 17:42:45 +09:00
Cheng Zhao
19323c88f9
win: Fix "thickFrame: false" not working for normal window
2017-08-21 17:21:59 +09:00
Cheng Zhao
f908678e8e
Merge pull request #10183 from andens/mouse_forward
...
Mouse forward functionality on Windows
2017-08-17 15:54:22 +09:00
Andreas Flöjt
814702f5b8
Cleanup potential mouse forwarding resources when window is destroyed.
2017-08-16 03:28:07 +02:00
Kevin Sawicki
4bb95acc2b
👕 Remove linter errors
2017-08-15 16:19:21 +03:00
Aleksei Kuzmin
627eb30409
The Blink Rename
2017-08-15 16:19:21 +03:00
Andreas Flöjt
3d33da7696
Make mouse forward option of setIgnoreMouseMessages and update documentation.
2017-08-14 20:21:00 +02:00
Andreas Flöjt
60c0bf1636
Set up legacy window subclass and mouse hook during setForwardMouseMessages.
...
As opposed to when a legacy window is created/destroyed. This enables forwarding on a per-window basis.
2017-08-14 18:12:55 +02:00
Zachary Flower
ba5fa2c8b1
Add support for simple (pre-Lion) fullscreen on Mac OS
2017-08-13 00:28:33 -06:00
Andreas Flöjt
a84fa0eecb
🏁 Add API to forward mouse messages.
...
As opposed to the existing setIgnoreMouseEvents this call makes Chromium aware of mouse movements, allowing the user to stop forwarding according to movements in the webpage.
2017-08-02 21:16:37 +02:00
Vladimir Vainer
06b5acdac0
Fix #8768 : Show() on already open modal
...
Calling show() on an already open modal causes the parent to become unusable
2017-07-09 06:49:12 +03:00
dharders
112f4656c3
👕 fix lint warning
2017-06-14 11:30:33 +10:00
dharders
265ab45bd7
🎨 Reuse existing function
2017-06-14 11:05:39 +10:00
dharders
4c09b357a7
🏁 Fix #6036 . Ensure window is visible after fullscreen toggle
2017-06-01 14:38:51 +10:00
Heilig Benedek
192cd7787b
move popup related code to nativewindow
2017-05-26 03:39:36 +02:00
Heilig Benedek
d5c038a7fb
ci build fix
2017-05-21 20:57:19 +02:00
Heilig Benedek
20d2ab29ab
Add support for child and popup windows in OSR
2017-05-10 22:19:05 +02:00