diff --git a/src/browser/main/tab/page/meta.rs b/src/browser/main/tab/page/meta.rs index 3b70aebb..b255d6d5 100644 --- a/src/browser/main/tab/page/meta.rs +++ b/src/browser/main/tab/page/meta.rs @@ -1,14 +1,30 @@ use gtk::glib::GString; +// Page MIME type (not related with gemini status code) +// Useful for content renderer detection, etc pub enum Mime { TextGemini, TextPlain, } +// Internal page status (not related with gemini status code) +// Useful for widgets composition +pub enum Status { + Failure, + Redirect, + Success, +} + pub struct Meta { + // Text meta data for page + // Useful to update window title, label text, etc pub title: Option, pub description: Option, + // Enums pub mime: Option, + pub status: Option, + // Useful to compose other widgets + // (e.g. navigation bar listen for this value update) pub progress_fraction: f32, } @@ -18,6 +34,7 @@ impl Meta { title: None, description: None, mime: None, + status: None, progress_fraction: 0.0, } }