All Downloads are FREE. Search and download functionalities are using the official Maven repository.

chrome.tabs.bindings.ZoomSettings.scala Maven / Gradle / Ivy

package chrome.tabs.bindings

import scala.scalajs.js

@js.native
trait ZoomSettings extends js.Object {

  def mode: js.UndefOr[ZoomSettings.Mode] = js.native

  def scope: js.UndefOr[ZoomSettings.Scope] = js.native

}

object ZoomSettings {

  type Mode = String
  type Scope = String

  def apply(
      mode: js.UndefOr[ZoomSettings.Mode] = js.undefined,
      scope: js.UndefOr[ZoomSettings.Scope] = js.undefined): ZoomSettings = {
    js.Dynamic
      .literal(
          mode = mode,
          scope = scope
      )
      .asInstanceOf[ZoomSettings]
  }

  object Modes {
    val AUTOMATIC: Mode = "automatic"
    val MANUAL: Mode = "manual"
    val DISABLED: Mode = "disabled"
  }

  object Scopes {
    val PER_ORIGIN: Mode = "per-origin"
    val PER_TAB: Mode = "per-tab"
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy