| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 static TypeBuilder::Page::ResourceType::Enum cachedResourceTypeJson(const Re
source&); | 94 static TypeBuilder::Page::ResourceType::Enum cachedResourceTypeJson(const Re
source&); |
| 95 static PassOwnPtr<TextResourceDecoder> createResourceTextDecoder(const Strin
g& mimeType, const String& textEncodingName); | 95 static PassOwnPtr<TextResourceDecoder> createResourceTextDecoder(const Strin
g& mimeType, const String& textEncodingName); |
| 96 | 96 |
| 97 // Page API for InspectorFrontend | 97 // Page API for InspectorFrontend |
| 98 void enable(ErrorString*) override; | 98 void enable(ErrorString*) override; |
| 99 void disable(ErrorString*) override; | 99 void disable(ErrorString*) override; |
| 100 void addScriptToEvaluateOnLoad(ErrorString*, const String& source, String* r
esult) override; | 100 void addScriptToEvaluateOnLoad(ErrorString*, const String& source, String* r
esult) override; |
| 101 void removeScriptToEvaluateOnLoad(ErrorString*, const String& identifier) ov
erride; | 101 void removeScriptToEvaluateOnLoad(ErrorString*, const String& identifier) ov
erride; |
| 102 void reload(ErrorString*, const bool* optionalIgnoreCache, const String* opt
ionalScriptToEvaluateOnLoad, const String* optionalScriptPreprocessor) override; | 102 void reload(ErrorString*, const bool* optionalIgnoreCache, const String* opt
ionalScriptToEvaluateOnLoad, const String* optionalScriptPreprocessor) override; |
| 103 void navigate(ErrorString*, const String& url, String* frameId) override; | 103 void navigate(ErrorString*, const String& url, String* frameId) override; |
| 104 void getCookies(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::Page::C
ookie> >& cookies) override; | 104 void getCookies(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::Page::C
ookie>>& cookies) override; |
| 105 void deleteCookie(ErrorString*, const String& cookieName, const String& url)
override; | 105 void deleteCookie(ErrorString*, const String& cookieName, const String& url)
override; |
| 106 void getResourceTree(ErrorString*, RefPtr<TypeBuilder::Page::FrameResourceTr
ee>&) override; | 106 void getResourceTree(ErrorString*, RefPtr<TypeBuilder::Page::FrameResourceTr
ee>&) override; |
| 107 void getResourceContent(ErrorString*, const String& frameId, const String& u
rl, PassRefPtrWillBeRawPtr<GetResourceContentCallback>) override; | 107 void getResourceContent(ErrorString*, const String& frameId, const String& u
rl, PassRefPtrWillBeRawPtr<GetResourceContentCallback>) override; |
| 108 void searchInResource(ErrorString*, const String& frameId, const String& url
, const String& query, const bool* optionalCaseSensitive, const bool* optionalIs
Regex, RefPtr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch> >&) override; | 108 void searchInResource(ErrorString*, const String& frameId, const String& url
, const String& query, const bool* optionalCaseSensitive, const bool* optionalIs
Regex, RefPtr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch>>&) override; |
| 109 void setDocumentContent(ErrorString*, const String& frameId, const String& h
tml) override; | 109 void setDocumentContent(ErrorString*, const String& frameId, const String& h
tml) override; |
| 110 void setDeviceMetricsOverride(ErrorString*, int width, int height, double de
viceScaleFactor, bool mobile, bool fitWindow, const double* optionalScale, const
double* optionalOffsetX, const double* optionalOffsetY) override; | 110 void setDeviceMetricsOverride(ErrorString*, int width, int height, double de
viceScaleFactor, bool mobile, bool fitWindow, const double* optionalScale, const
double* optionalOffsetX, const double* optionalOffsetY) override; |
| 111 void clearDeviceMetricsOverride(ErrorString*) override; | 111 void clearDeviceMetricsOverride(ErrorString*) override; |
| 112 void resetScrollAndPageScaleFactor(ErrorString*) override; | 112 void resetScrollAndPageScaleFactor(ErrorString*) override; |
| 113 void setPageScaleFactor(ErrorString*, double pageScaleFactor) override; | 113 void setPageScaleFactor(ErrorString*, double pageScaleFactor) override; |
| 114 void setShowPaintRects(ErrorString*, bool show) override; | 114 void setShowPaintRects(ErrorString*, bool show) override; |
| 115 void setShowDebugBorders(ErrorString*, bool show) override; | 115 void setShowDebugBorders(ErrorString*, bool show) override; |
| 116 void setShowFPSCounter(ErrorString*, bool show) override; | 116 void setShowFPSCounter(ErrorString*, bool show) override; |
| 117 void setContinuousPaintingEnabled(ErrorString*, bool enabled) override; | 117 void setContinuousPaintingEnabled(ErrorString*, bool enabled) override; |
| 118 void setShowScrollBottleneckRects(ErrorString*, bool show) override; | 118 void setShowScrollBottleneckRects(ErrorString*, bool show) override; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 | 227 |
| 228 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten
tLoader; | 228 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten
tLoader; |
| 229 HashMap<String, String> m_editedResourceContent; | 229 HashMap<String, String> m_editedResourceContent; |
| 230 }; | 230 }; |
| 231 | 231 |
| 232 | 232 |
| 233 } // namespace blink | 233 } // namespace blink |
| 234 | 234 |
| 235 | 235 |
| 236 #endif // !defined(InspectorPagerAgent_h) | 236 #endif // !defined(InspectorPagerAgent_h) |
| OLD | NEW |