Lines Matching refs:errorString

251 void InspectorPageAgent::resourceContent(ErrorString* errorString, Frame* frame, const KURL& url, String* result, bool* base64Encoded)
253 DocumentLoader* loader = assertDocumentLoader(errorString, frame);
257 *errorString = "No resource with given URL found";
575 void InspectorPageAgent::getResourceContent(ErrorString* errorString, const String& frameId, const String& url, String* content, bool* base64Encoded)
577 Frame* frame = assertFrame(errorString, frameId);
580 resourceContent(errorString, frame, KURL(ParsedURLString, url), content, base64Encoded);
623 void InspectorPageAgent::setDocumentContent(ErrorString* errorString, const String& frameId, const String& html)
625 Frame* frame = assertFrame(errorString, frameId);
631 *errorString = "No Document instance to set HTML for";
637 void InspectorPageAgent::setDeviceMetricsOverride(ErrorString* errorString, int width, int height, double deviceScaleFactor, bool emulateViewport, bool fitWindow, const bool* optionalTextAutosizing, const double* optionalFontScaleFactor)
645 *errorString = "Width and height values must be positive, not greater than " + String::number(maxDimension);
650 *errorString = "Both width and height must be either zero or non-zero at once";
655 *errorString = "deviceScaleFactor must be positive";
660 *errorString = "fontScaleFactor must be positive";
666 if (errorString)
667 *errorString = "Compositing mode is not supported";
709 void InspectorPageAgent::setShowDebugBorders(ErrorString* errorString, bool show)
712 if (show && !forceCompositingMode(errorString))
717 void InspectorPageAgent::setShowFPSCounter(ErrorString* errorString, bool show)
721 if (show && !forceCompositingMode(errorString))
726 void InspectorPageAgent::setContinuousPaintingEnabled(ErrorString* errorString, bool enabled)
729 if (enabled && !forceCompositingMode(errorString))
734 void InspectorPageAgent::setShowScrollBottleneckRects(ErrorString* errorString, bool show)
737 if (show && !forceCompositingMode(errorString))
895 Frame* InspectorPageAgent::assertFrame(ErrorString* errorString, const String& frameId)
899 *errorString = "No frame for given id found";
929 DocumentLoader* InspectorPageAgent::assertDocumentLoader(ErrorString* errorString, Frame* frame)
933 *errorString = "No documentLoader for given frame found";
1224 bool InspectorPageAgent::forceCompositingMode(ErrorString* errorString)
1228 if (errorString)
1229 *errorString = "Compositing mode is not supported";
1261 void InspectorPageAgent::handleJavaScriptDialog(ErrorString* errorString, bool accept, const String* promptText)