electron/shell/browser/ui
Tristan Partin fa65faa4b0
feat: Use GtkFileChooserNative to support the XDG Desktop Portal specification (#19159)
* feat: Use GtkFileChooserNative if available to support XDG portals

With this commit, users on KDE/plasma will finally have support in
Electron for their native file choosers dialogs.

* fix: namespace

* fix: labels were reversed

* fix: lint issue

* fix: clean up some implementation

* fix: remove deprecation branch

* fix: remove unused header

* fix: remove unused gi18n.h include

Not sure why this is

* fix: add the set_data call into the mirrored SetGtkTransientForAura func

* fix: remove gmodule support and use native for the dialog regardless

* fix: undo yarn.lock changes

* fix: lint

* fix: remove x11 unncessary x11 include

* fix: lint

* fix: remove SetGtkTransientForAura

* Revert "fix: remove gmodule support and use native for the dialog regardless"

This reverts commit 062db5951e59cf99fcce566ab8ebab7ddc031aeb.

* fix: add support in a backwards compatible way

Use GModule to dynamically load functions from libgtk in order to
support GtkNativeDialog.

* fix: lint

* docs: update comment

* Revert "fix: remove x11 unncessary x11 include"

This reverts commit 589cff583add458c25ca5a2202232fdff916c673.

* fix: compiler errors

* fix: int -> x11::time

* fix: move GtkNativeDialog static data to global state

* fix: revert yarn.lock change

* update: for code review comments

* fix: remove functional header

* fix: variable name

* fix: rename GTK native initalization func

* Help out the compiler

* Help out the compiler

* Help out the compiler

* Fix function signature

* Remove unused header

* Rename optional boolean for GtkFileChooserNative support

* Add back in USE_X11 check

* Satisfy linter

* Resatisfy linter

* Fix alignment of if

* Fix alignment of arguments

* linting...

* fix: add back in the i18n hack

* fix: lint

* Respond to some review comments

* fix: lint

* Make adding filter agnostic

* fix: transform is in place

* fix: remove std::transform because not c++17

* Remove unused include

* fix: address Cheng's review

* fix: Remove unused header
2021-04-02 08:29:27 +09:00
..
cocoa don't defer in NSWindow creation 2021-03-26 18:14:07 -07:00
gtk 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 13:58:27 -04:00
views 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 13:58:27 -04:00
webui chore: bump chromium to 7264889ce3aad1568ff3d211c81fe (master) (#27003) 2020-12-22 14:14:44 -08:00
win Merge branch 'master' into roller/chromium/master 2021-03-30 09:47:35 -07:00
x refactor: precache atoms in window-state-watcher (#27575) 2021-02-02 09:50:32 -08:00
accelerator_util.cc
accelerator_util.h
accelerator_util_unittests.cc
autofill_popup.cc 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04:00
autofill_popup.h 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04:00
certificate_trust.h
certificate_trust_mac.mm
certificate_trust_win.cc
devtools_manager_delegate.cc chore: cleanup some typos in comments (#25770) 2020-10-13 10:25:21 -07:00
devtools_manager_delegate.h
devtools_ui.cc fix: sync devtools frontend mime types with upstream (#25780) 2020-10-06 15:59:12 -07:00
devtools_ui.h
drag_util.cc fix: default offset when no drag regions (#27147) 2021-01-04 14:01:32 -08:00
drag_util.h fix: draggable regions exclusively on BrowserViews (#26145) 2020-10-27 14:28:43 -07:00
drag_util_mac.mm
drag_util_views.cc chore: bump chromium to 90.0.4415.0 (master) (#27694) 2021-03-04 09:27:05 -08:00
electron_menu_model.cc 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04:00
electron_menu_model.h 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04:00
file_dialog.h
file_dialog_gtk.cc feat: Use GtkFileChooserNative to support the XDG Desktop Portal specification (#19159) 2021-04-02 08:29:27 +09:00
file_dialog_mac.mm
file_dialog_win.cc linter 2021-03-24 10:53:07 -07:00
gtk_util.cc
gtk_util.h
inspectable_web_contents.cc 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04:00
inspectable_web_contents.h Merge remote-tracking branch 'origin/master' into roller/chromium/master 2021-03-23 11:14:58 -07:00
inspectable_web_contents_delegate.h
inspectable_web_contents_view.h Fixup 2752406: [LSC] Replace base::string16 with std::u16string in //ui 2021-03-16 15:43:51 -04:00
inspectable_web_contents_view_delegate.cc
inspectable_web_contents_view_delegate.h fix: make draggable regions work when devtools is opened on macOS (#26361) 2020-11-09 16:54:04 -05:00
inspectable_web_contents_view_mac.h 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04:00
inspectable_web_contents_view_mac.mm 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04:00
message_box.h 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 13:58:27 -04:00
message_box_gtk.cc 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04:00
message_box_mac.mm 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04:00
message_box_win.cc refactor: make ShowTaskDialog take a wstr 2021-03-30 18:06:00 -07:00
run_all_unittests.cc
tray_icon.cc
tray_icon.h 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04:00
tray_icon_cocoa.h refactor: use C++11 class member variable initialization (#27477) 2021-01-26 12:16:21 -06:00
tray_icon_cocoa.mm refactor: use C++11 class member variable initialization (#27477) 2021-01-26 12:16:21 -06:00
tray_icon_gtk.cc 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04:00
tray_icon_gtk.h 2757472: Reland "Reland "[LSC] Remove base::string16 alias"" 2021-03-16 12:18:45 -04:00
tray_icon_observer.h
tray_icon_win.cc