MōBrowser API
Loading...
Searching...
No Matches
mobrowser::InjectCssAction Class Reference

The BrowserDelegates::onInjectCss action. More...

#include <browser_delegates.hpp>

Inheritance diagram for mobrowser::InjectCssAction:
mobrowser::Action

Public Member Functions

 InjectCssAction (std::unique_ptr< rpc::internal::Callback > callback)
 
void inject (const std::string &css)
 Inject the given custom style sheet into the frame's document.
 
void proceed ()
 Continue without injecting a custom style sheet.
 
- Public Member Functions inherited from mobrowser::Action
 Action (std::unique_ptr< rpc::internal::Callback > callback)
 

Additional Inherited Members

- Protected Attributes inherited from mobrowser::Action
std::unique_ptr< rpc::internal::Callback > callback_
 

Detailed Description

Member Function Documentation

◆ inject()

void mobrowser::InjectCssAction::inject ( const std::string &  css)

Inject the given custom style sheet into the frame's document.

The given CSS properties will be applied only if they are not already defined in the frame's document.

Parameters
csscustom CSS properties that will be injected into the document.

The documentation for this class was generated from the following file: