diff options
author | webbeef <me@webbeef.org> | 2024-08-27 13:17:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-27 20:17:33 +0000 |
commit | 1b48bd18aa855cc966869dd81530aa0da3eea4f3 (patch) | |
tree | 8c44eead81b685f766d889586558475d30e74633 /ports/servoshell/resources.rs | |
parent | a0ff57cea1675e7ec9ee8657d80024a110a0092a (diff) | |
download | servo-1b48bd18aa855cc966869dd81530aa0da3eea4f3.tar.gz servo-1b48bd18aa855cc966869dd81530aa0da3eea4f3.zip |
Basic tab strip for the minibrowser (#33100)
This implements a simple tab system for servoshell:
- The egui part uses the built-in SelectableLabels components and
display the full tab title on hover.
- WebView structs now hold all the state for each WebView. When we
need "global" state, we return the focused WebView state, eg.
for the load status since it's still global in the UI.
- New keyboard shortcut: [Cmd-or-Ctrl]+[W] to close the current tab.
- New keyboard shortcut: [Cmd-or-Ctrl]+[T] to create a new tab.
- The new tab content is loaded from the 'servo:newtab' url using a
couple of custom protocol handlers.
Signed-off-by: webbeef <me@webbeef.org>
Diffstat (limited to 'ports/servoshell/resources.rs')
-rw-r--r-- | ports/servoshell/resources.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/servoshell/resources.rs b/ports/servoshell/resources.rs index fe65dfafa5c..9801a8923ea 100644 --- a/ports/servoshell/resources.rs +++ b/ports/servoshell/resources.rs @@ -17,7 +17,7 @@ pub fn init() { resources::set(Box::new(ResourceReader)); } -fn resources_dir_path() -> PathBuf { +pub(crate) fn resources_dir_path() -> PathBuf { // This needs to be called before the process is sandboxed // as we only give permission to read inside the resources directory, // not the permissions the "search" for the resources directory. |