CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 02:38:51 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/electron/electron.git
etag: W/"435540010f2678091e2005c1c569ab05"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=bwBDFl6bfWmPnl2zC6RL%2Bb7LbUKCjgqTwfin4x29H5OPK6ZHijX7GMJXuh%2FFvlyH3uj7olFfHT2%2F9TWC3AYroAl5ZQGkUwbXHbA3CNGFu%2B4lMqBjqli0ftAcNiB95KxCPb6HTIQyj696ZrKRU5WJTtKD%2BsxZJDaEy5OUvr6hX9e2rhMsomZUxcTsj8ZrEP%2BsoLlCxuhmdV95Q%2FE7t0rNb10V3EfvQa530%2FmY1oGJieysUm1MZpvuom2vrWbwJYbQ9MgqdmSjVWs7m1Yy0Gf0sQ%3D%3D--mV5Hgq1dOTOjHGGH--7W1u54puxgLAEf5RSWLugA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1825600867.1753497531; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 02:38:51 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 02:38:51 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: EB3A:2992:D0869:1477C9:68843FBA
feat: Add BrowserWindow.setWindowButtonVisibility() · electron/electron@a42ca9e · GitHub
Copy file name to clipboardExpand all lines: atom/browser/api/atom_api_top_level_window.cc
Copy file name to clipboardExpand all lines: atom/browser/api/atom_api_top_level_window.h
Copy file name to clipboardExpand all lines: atom/browser/native_window.cc
Copy file name to clipboardExpand all lines: atom/browser/native_window.h
Copy file name to clipboardExpand all lines: atom/browser/native_window_mac.h
Copy file name to clipboardExpand all lines: atom/browser/native_window_mac.mm
Copy file name to clipboardExpand all lines: spec/api-browser-window-spec.js
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 16.2k
Commit a42ca9e
feat: Add BrowserWindow.setWindowButtonVisibility()
Fixes #12701 and supersedes #13131.
Ideally we would have added `setTitleBarStyle()`, but that is a
significantly more involved change. For example, consider the case where
we switch from `hidden` to `normal`. We would not only have to show the
traffic light buttons, we would also have to switch the window from a
frameless to a framed window and deal with various other window state.
Lets instead implement a simple solution for #12701.1 parent 00c0c18 commit a42ca9eCopy full SHA for a42ca9e
File tree
Expand file treeCollapse file tree
8 files changed
+82
-7
lines changedFilter options
- atom/browser
- api
- docs/api
- spec
Expand file treeCollapse file tree
8 files changed
+82
-7
lines changedatom/browser/api/atom_api_top_level_window.cc
Copy file name to clipboardExpand all lines: atom/browser/api/atom_api_top_level_window.cc+9Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
738 | 738 |
| |
739 | 739 |
| |
740 | 740 |
| |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
741 | 748 |
| |
742 | 749 |
| |
743 | 750 |
| |
| |||
1030 | 1037 |
| |
1031 | 1038 |
| |
1032 | 1039 |
| |
| 1040 | + | |
| 1041 | + | |
1033 | 1042 |
| |
1034 | 1043 |
| |
1035 | 1044 |
| |
|
atom/browser/api/atom_api_top_level_window.h
Copy file name to clipboardExpand all lines: atom/browser/api/atom_api_top_level_window.h+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
| 176 | + | |
176 | 177 |
| |
177 | 178 |
| |
178 | 179 |
| |
|
atom/browser/native_window.cc
Copy file name to clipboardExpand all lines: atom/browser/native_window.cc+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
355 | 355 |
| |
356 | 356 |
| |
357 | 357 |
| |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
358 | 362 |
| |
359 | 363 |
| |
360 | 364 |
| |
|
atom/browser/native_window.h
Copy file name to clipboardExpand all lines: atom/browser/native_window.h+3Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
187 | 187 |
| |
188 | 188 |
| |
189 | 189 |
| |
| 190 | + | |
| 191 | + | |
| 192 | + | |
190 | 193 |
| |
191 | 194 |
| |
192 | 195 |
| |
|
atom/browser/native_window_mac.h
Copy file name to clipboardExpand all lines: atom/browser/native_window_mac.h+6Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
| 122 | + | |
| 123 | + | |
122 | 124 |
| |
123 | 125 |
| |
124 | 126 |
| |
| |||
193 | 195 |
| |
194 | 196 |
| |
195 | 197 |
| |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
196 | 202 |
| |
197 | 203 |
| |
198 | 204 |
| |
|
atom/browser/native_window_mac.mm
Copy file name to clipboardExpand all lines: atom/browser/native_window_mac.mm+25-7Lines changed: 25 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
884 | 884 |
| |
885 | 885 |
| |
886 | 886 |
| |
887 |
| - | |
888 |
| - | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
889 | 890 |
| |
890 | 891 |
| |
891 | 892 |
| |
| |||
904 | 905 |
| |
905 | 906 |
| |
906 | 907 |
| |
907 |
| - | |
908 |
| - | |
909 |
| - | |
910 |
| - | |
911 |
| - | |
912 | 908 |
| |
913 | 909 |
| |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
914 | 919 |
| |
915 | 920 |
| |
916 | 921 |
| |
| |||
1148 | 1153 |
| |
1149 | 1154 |
| |
1150 | 1155 |
| |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
1151 | 1169 |
| |
1152 | 1170 |
| |
1153 | 1171 |
| |
|
+7Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1342 | 1342 |
| |
1343 | 1343 |
| |
1344 | 1344 |
| |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
1345 | 1352 |
| |
1346 | 1353 |
| |
1347 | 1354 |
| |
|
spec/api-browser-window-spec.js
Copy file name to clipboardExpand all lines: spec/api-browser-window-spec.js+27Lines changed: 27 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
765 | 765 |
| |
766 | 766 |
| |
767 | 767 |
| |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
768 | 795 |
| |
769 | 796 |
| |
770 | 797 |
| |
|
You can’t perform that action at this time.
0 commit comments