Interface InjectCssCallback.Response
- Enclosing interface:
- InjectCssCallback
public static interface InjectCssCallback.Response
A response of the
InjectCssCallback.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic InjectCssCallback.ResponseInjects the givencustomStyleSheetstring that represents a custom style sheet (CSS) into the document that is loaded in this browser instance.static InjectCssCallback.Responseproceed()Notifies the browser that it can proceed without injecting a custom style sheet.
-
Method Details
-
inject
Injects the givencustomStyleSheetstring that represents a custom style sheet (CSS) into the document that is loaded in this browser instance.If CSS property defined in the given
customStyleSheetstring already exists on the loaded HTML document, then the existing CSS property won't be overridden. The CSS properties defined in the givencustomStyleSheetstring will be applied only if these properties aren't defined on the loaded document.- Parameters:
customStyleSheet- CSS code that will be injected into the document- Throws:
IllegalArgumentException- whencustomStyleSheetis empty or blank
-
proceed
Notifies the browser that it can proceed without injecting a custom style sheet.
-