Molybden API
Loading...
Searching...
No Matches
molybden::InjectCssAction Class Reference

The BrowserDelegates::onInjectCss action. More...

#include <browser_delegates.hpp>

Inheritance diagram for molybden::InjectCssAction:
molybden::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 molybden::Action
 Action (std::unique_ptr< rpc::internal::Callback > callback)
 

Additional Inherited Members

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

Detailed Description

Member Function Documentation

◆ inject()

void molybden::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: