# Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

# This file is automatically generated. DO NOT EDIT!
# Regenerate with: bazel run //rb/lib/selenium/webdriver:bidi-generate

module Selenium
  module WebDriver
    class BiDi
      module Protocol
        class Emulation < ::Selenium::WebDriver::BiDi::Protocol::Domain
          FORCED_COLORS_MODE_THEME: Hash[Symbol, String]

          SCREEN_ORIENTATION_NATURAL: Hash[Symbol, String]

          SCREEN_ORIENTATION_TYPE: Hash[Symbol, String]

          class SetForcedColorsModeThemeOverrideParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader theme: Symbol?
            attr_reader contexts: untyped
            attr_reader user_contexts: untyped
            def self.new: (theme: Symbol?, ?contexts: Array[String], ?user_contexts: Array[String]) -> instance
          end

          class SetGeolocationOverrideParameters < ::Selenium::WebDriver::BiDi::Serialization::Union
            class Coordinates < ::Selenium::WebDriver::BiDi::Serialization::Record
              attr_reader contexts: untyped
              attr_reader user_contexts: untyped
              attr_reader coordinates: ::Selenium::WebDriver::BiDi::Protocol::Emulation::GeolocationCoordinates?
              def self.new: (?contexts: Array[String], ?user_contexts: Array[String], coordinates: ::Selenium::WebDriver::BiDi::Protocol::Emulation::GeolocationCoordinates?) -> instance
            end
            class Error < ::Selenium::WebDriver::BiDi::Serialization::Record
              attr_reader contexts: untyped
              attr_reader user_contexts: untyped
              attr_reader error: ::Selenium::WebDriver::BiDi::Protocol::Emulation::GeolocationPositionError
              def self.new: (?contexts: Array[String], ?user_contexts: Array[String], error: ::Selenium::WebDriver::BiDi::Protocol::Emulation::GeolocationPositionError) -> instance
            end
          end

          class GeolocationCoordinates < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader latitude: Integer
            attr_reader longitude: Integer
            attr_reader accuracy: untyped
            attr_reader altitude: untyped
            attr_reader altitude_accuracy: untyped
            attr_reader heading: untyped
            attr_reader speed: untyped
            def self.new: (latitude: Integer, longitude: Integer, ?accuracy: Numeric, ?altitude: Numeric?, ?altitude_accuracy: Numeric?, ?heading: Integer?, ?speed: Numeric?) -> instance
          end

          class GeolocationPositionError < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader type: String
            def self.new: (?type: String) -> instance
          end

          class SetLocaleOverrideParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader locale: String?
            attr_reader contexts: untyped
            attr_reader user_contexts: untyped
            def self.new: (locale: String?, ?contexts: Array[String], ?user_contexts: Array[String]) -> instance
          end

          class SetNetworkConditionsParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader network_conditions: ::Selenium::WebDriver::BiDi::Protocol::Emulation::NetworkConditionsOffline?
            attr_reader contexts: untyped
            attr_reader user_contexts: untyped
            def self.new: (network_conditions: ::Selenium::WebDriver::BiDi::Protocol::Emulation::NetworkConditionsOffline?, ?contexts: Array[String], ?user_contexts: Array[String]) -> instance
          end

          class NetworkConditionsOffline < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader type: String
            def self.new: (?type: String) -> instance
          end

          class ScreenArea < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader width: Integer
            attr_reader height: Integer
            def self.new: (width: Integer, height: Integer) -> instance
          end

          class SetScreenSettingsOverrideParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader screen_area: ::Selenium::WebDriver::BiDi::Protocol::Emulation::ScreenArea?
            attr_reader contexts: untyped
            attr_reader user_contexts: untyped
            def self.new: (screen_area: ::Selenium::WebDriver::BiDi::Protocol::Emulation::ScreenArea?, ?contexts: Array[String], ?user_contexts: Array[String]) -> instance
          end

          class ScreenOrientation < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader natural: Symbol
            attr_reader type: Symbol
            def self.new: (natural: Symbol, type: Symbol) -> instance
          end

          class SetScreenOrientationOverrideParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader screen_orientation: ::Selenium::WebDriver::BiDi::Protocol::Emulation::ScreenOrientation?
            attr_reader contexts: untyped
            attr_reader user_contexts: untyped
            def self.new: (screen_orientation: ::Selenium::WebDriver::BiDi::Protocol::Emulation::ScreenOrientation?, ?contexts: Array[String], ?user_contexts: Array[String]) -> instance
          end

          class SetUserAgentOverrideParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader user_agent: String?
            attr_reader contexts: untyped
            attr_reader user_contexts: untyped
            def self.new: (user_agent: String?, ?contexts: Array[String], ?user_contexts: Array[String]) -> instance
          end

          class SetScriptingEnabledParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader enabled: bool?
            attr_reader contexts: untyped
            attr_reader user_contexts: untyped
            def self.new: (enabled: bool?, ?contexts: Array[String], ?user_contexts: Array[String]) -> instance
          end

          class SetScrollbarTypeOverrideParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader scrollbar_type: untyped
            attr_reader contexts: untyped
            attr_reader user_contexts: untyped
            def self.new: (scrollbar_type: untyped, ?contexts: Array[String], ?user_contexts: Array[String]) -> instance
          end

          class SetTimezoneOverrideParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader timezone: String?
            attr_reader contexts: untyped
            attr_reader user_contexts: untyped
            def self.new: (timezone: String?, ?contexts: Array[String], ?user_contexts: Array[String]) -> instance
          end

          class SetTouchOverrideParameters < ::Selenium::WebDriver::BiDi::Serialization::Record
            attr_reader max_touch_points: Integer?
            attr_reader contexts: untyped
            attr_reader user_contexts: untyped
            def self.new: (max_touch_points: Integer?, ?contexts: Array[String], ?user_contexts: Array[String]) -> instance
          end

          def set_forced_colors_mode_theme_override: (theme: Symbol?, ?contexts: Array[String], ?user_contexts: Array[String]) -> untyped
          def set_geolocation_override: (?contexts: Array[String], ?user_contexts: Array[String], ?coordinates: ::Selenium::WebDriver::BiDi::Protocol::Emulation::GeolocationCoordinates?, ?error: ::Selenium::WebDriver::BiDi::Protocol::Emulation::GeolocationPositionError) -> untyped
          def set_locale_override: (locale: String?, ?contexts: Array[String], ?user_contexts: Array[String]) -> untyped
          def set_network_conditions: (network_conditions: ::Selenium::WebDriver::BiDi::Protocol::Emulation::NetworkConditionsOffline?, ?contexts: Array[String], ?user_contexts: Array[String]) -> untyped
          def set_screen_orientation_override: (screen_orientation: ::Selenium::WebDriver::BiDi::Protocol::Emulation::ScreenOrientation?, ?contexts: Array[String], ?user_contexts: Array[String]) -> untyped
          def set_screen_settings_override: (screen_area: ::Selenium::WebDriver::BiDi::Protocol::Emulation::ScreenArea?, ?contexts: Array[String], ?user_contexts: Array[String]) -> untyped
          def set_scripting_enabled: (enabled: bool?, ?contexts: Array[String], ?user_contexts: Array[String]) -> untyped
          def set_scrollbar_type_override: (scrollbar_type: untyped, ?contexts: Array[String], ?user_contexts: Array[String]) -> untyped
          def set_timezone_override: (timezone: String?, ?contexts: Array[String], ?user_contexts: Array[String]) -> untyped
          def set_touch_override: (max_touch_points: Integer?, ?contexts: Array[String], ?user_contexts: Array[String]) -> untyped
          def set_user_agent_override: (user_agent: String?, ?contexts: Array[String], ?user_contexts: Array[String]) -> untyped
        end
      end
    end
  end
end
