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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 static TypeBuilder::Page::ResourceType::Enum resourceTypeJson(ResourceType); | 93 static TypeBuilder::Page::ResourceType::Enum resourceTypeJson(ResourceType); |
94 static ResourceType cachedResourceType(const Resource&); | 94 static ResourceType cachedResourceType(const Resource&); |
95 static TypeBuilder::Page::ResourceType::Enum cachedResourceTypeJson(const Re
source&); | 95 static TypeBuilder::Page::ResourceType::Enum cachedResourceTypeJson(const Re
source&); |
96 static PassOwnPtr<TextResourceDecoder> createResourceTextDecoder(const Strin
g& mimeType, const String& textEncodingName); | 96 static PassOwnPtr<TextResourceDecoder> createResourceTextDecoder(const Strin
g& mimeType, const String& textEncodingName); |
97 | 97 |
98 // Page API for InspectorFrontend | 98 // Page API for InspectorFrontend |
99 void enable(ErrorString*) override; | 99 void enable(ErrorString*) override; |
100 void disable(ErrorString*) override; | 100 void disable(ErrorString*) override; |
101 void addScriptToEvaluateOnLoad(ErrorString*, const String& source, String* r
esult) override; | 101 void addScriptToEvaluateOnLoad(ErrorString*, const String& source, String* r
esult) override; |
102 void removeScriptToEvaluateOnLoad(ErrorString*, const String& identifier) ov
erride; | 102 void removeScriptToEvaluateOnLoad(ErrorString*, const String& identifier) ov
erride; |
103 void reload(ErrorString*, const bool* optionalIgnoreCache, const String* opt
ionalScriptToEvaluateOnLoad, const String* optionalScriptPreprocessor) override; | 103 void reload(ErrorString*, const bool* optionalIgnoreCache, const String* opt
ionalScriptToEvaluateOnLoad) override; |
104 void navigate(ErrorString*, const String& url, String* frameId) override; | 104 void navigate(ErrorString*, const String& url, String* frameId) override; |
105 void getCookies(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::Page::C
ookie> >& cookies) override; | 105 void getCookies(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::Page::C
ookie> >& cookies) override; |
106 void deleteCookie(ErrorString*, const String& cookieName, const String& url)
override; | 106 void deleteCookie(ErrorString*, const String& cookieName, const String& url)
override; |
107 void getResourceTree(ErrorString*, RefPtr<TypeBuilder::Page::FrameResourceTr
ee>&) override; | 107 void getResourceTree(ErrorString*, RefPtr<TypeBuilder::Page::FrameResourceTr
ee>&) override; |
108 void getResourceContent(ErrorString*, const String& frameId, const String& u
rl, PassRefPtrWillBeRawPtr<GetResourceContentCallback>) override; | 108 void getResourceContent(ErrorString*, const String& frameId, const String& u
rl, PassRefPtrWillBeRawPtr<GetResourceContentCallback>) override; |
109 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 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; |
110 void setDocumentContent(ErrorString*, const String& frameId, const String& h
tml) override; | 110 void setDocumentContent(ErrorString*, const String& frameId, const String& h
tml) override; |
111 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 setDeviceMetricsOverride(ErrorString*, int width, int height, double de
viceScaleFactor, bool mobile, bool fitWindow, const double* optionalScale, const
double* optionalOffsetX, const double* optionalOffsetY) override; |
112 void clearDeviceMetricsOverride(ErrorString*) override; | 112 void clearDeviceMetricsOverride(ErrorString*) override; |
113 void resetScrollAndPageScaleFactor(ErrorString*) override; | 113 void resetScrollAndPageScaleFactor(ErrorString*) override; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // Cross-agents API | 160 // Cross-agents API |
161 FrameHost* frameHost(); | 161 FrameHost* frameHost(); |
162 LocalFrame* inspectedFrame(); | 162 LocalFrame* inspectedFrame(); |
163 String createIdentifier(); | 163 String createIdentifier(); |
164 LocalFrame* frameForId(const String& frameId); | 164 LocalFrame* frameForId(const String& frameId); |
165 String frameId(LocalFrame*); | 165 String frameId(LocalFrame*); |
166 bool hasIdForFrame(LocalFrame*) const; | 166 bool hasIdForFrame(LocalFrame*) const; |
167 String loaderId(DocumentLoader*); | 167 String loaderId(DocumentLoader*); |
168 LocalFrame* findFrameWithSecurityOrigin(const String& originRawString); | 168 LocalFrame* findFrameWithSecurityOrigin(const String& originRawString); |
169 LocalFrame* assertFrame(ErrorString*, const String& frameId); | 169 LocalFrame* assertFrame(ErrorString*, const String& frameId); |
170 String scriptPreprocessorSource() { return m_scriptPreprocessorSource; } | |
171 const AtomicString& resourceSourceMapURL(const String& url); | 170 const AtomicString& resourceSourceMapURL(const String& url); |
172 bool deviceMetricsOverrideEnabled(); | 171 bool deviceMetricsOverrideEnabled(); |
173 void pageScaleFactorChanged(); | 172 void pageScaleFactorChanged(); |
174 bool screencastEnabled(); | 173 bool screencastEnabled(); |
175 static DocumentLoader* assertDocumentLoader(ErrorString*, LocalFrame*); | 174 static DocumentLoader* assertDocumentLoader(ErrorString*, LocalFrame*); |
176 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector
ResourceContentLoader.get(); } | 175 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector
ResourceContentLoader.get(); } |
177 void clearEditedResourcesContent(); | 176 void clearEditedResourcesContent(); |
178 void addEditedResourceContent(const String& url, const String& content); | 177 void addEditedResourceContent(const String& url, const String& content); |
179 bool getEditedResourceContent(const String& url, String* content); | 178 bool getEditedResourceContent(const String& url, String* content); |
180 | 179 |
(...skipping 18 matching lines...) Expand all Loading... |
199 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*); | 198 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*); |
200 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc
alFrame*); | 199 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc
alFrame*); |
201 RawPtrWillBeMember<Page> m_page; | 200 RawPtrWillBeMember<Page> m_page; |
202 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; | 201 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; |
203 InspectorClient* m_client; | 202 InspectorClient* m_client; |
204 InspectorFrontend::Page* m_frontend; | 203 InspectorFrontend::Page* m_frontend; |
205 InspectorOverlay* m_overlay; | 204 InspectorOverlay* m_overlay; |
206 long m_lastScriptIdentifier; | 205 long m_lastScriptIdentifier; |
207 String m_pendingScriptToEvaluateOnLoadOnce; | 206 String m_pendingScriptToEvaluateOnLoadOnce; |
208 String m_scriptToEvaluateOnLoadOnce; | 207 String m_scriptToEvaluateOnLoadOnce; |
209 String m_pendingScriptPreprocessor; | |
210 String m_scriptPreprocessorSource; | |
211 HashMap<LocalFrame*, String> m_frameToIdentifier; | 208 HashMap<LocalFrame*, String> m_frameToIdentifier; |
212 HashMap<String, LocalFrame*> m_identifierToFrame; | 209 HashMap<String, LocalFrame*> m_identifierToFrame; |
213 HashMap<DocumentLoader*, String> m_loaderToIdentifier; | 210 HashMap<DocumentLoader*, String> m_loaderToIdentifier; |
214 bool m_enabled; | 211 bool m_enabled; |
215 bool m_ignoreScriptsEnabledNotification; | 212 bool m_ignoreScriptsEnabledNotification; |
216 bool m_deviceMetricsOverridden; | 213 bool m_deviceMetricsOverridden; |
217 bool m_emulateMobileEnabled; | 214 bool m_emulateMobileEnabled; |
218 | 215 |
219 bool m_touchEmulationEnabled; | 216 bool m_touchEmulationEnabled; |
220 bool m_originalTouchEnabled; | 217 bool m_originalTouchEnabled; |
221 bool m_originalDeviceSupportsMouse; | 218 bool m_originalDeviceSupportsMouse; |
222 bool m_originalDeviceSupportsTouch; | 219 bool m_originalDeviceSupportsTouch; |
223 int m_originalMaxTouchPoints; | 220 int m_originalMaxTouchPoints; |
224 | 221 |
225 bool m_embedderTextAutosizingEnabled; | 222 bool m_embedderTextAutosizingEnabled; |
226 double m_embedderFontScaleFactor; | 223 double m_embedderFontScaleFactor; |
227 bool m_embedderPreferCompositingToLCDTextEnabled; | 224 bool m_embedderPreferCompositingToLCDTextEnabled; |
228 | 225 |
229 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten
tLoader; | 226 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten
tLoader; |
230 HashMap<String, String> m_editedResourceContent; | 227 HashMap<String, String> m_editedResourceContent; |
231 }; | 228 }; |
232 | 229 |
233 | 230 |
234 } // namespace blink | 231 } // namespace blink |
235 | 232 |
236 | 233 |
237 #endif // !defined(InspectorPagerAgent_h) | 234 #endif // !defined(InspectorPagerAgent_h) |
OLD | NEW |