| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 virtual void reload(ErrorString*, const bool* optionalIgnoreCache, const Str
ing* optionalScriptToEvaluateOnLoad, const String* optionalScriptPreprocessor); | 92 virtual void reload(ErrorString*, const bool* optionalIgnoreCache, const Str
ing* optionalScriptToEvaluateOnLoad, const String* optionalScriptPreprocessor); |
| 93 virtual void navigate(ErrorString*, const String& url); | 93 virtual void navigate(ErrorString*, const String& url); |
| 94 virtual void getNavigationHistory(ErrorString*, int*, RefPtr<TypeBuilder::Ar
ray<TypeBuilder::Page::NavigationEntry> >&); | 94 virtual void getNavigationHistory(ErrorString*, int*, RefPtr<TypeBuilder::Ar
ray<TypeBuilder::Page::NavigationEntry> >&); |
| 95 virtual void navigateToHistoryEntry(ErrorString*, int); | 95 virtual void navigateToHistoryEntry(ErrorString*, int); |
| 96 virtual void getCookies(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder:
:Page::Cookie> >& cookies, WTF::String* cookiesString); | 96 virtual void getCookies(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder:
:Page::Cookie> >& cookies, WTF::String* cookiesString); |
| 97 virtual void deleteCookie(ErrorString*, const String& cookieName, const Stri
ng& url); | 97 virtual void deleteCookie(ErrorString*, const String& cookieName, const Stri
ng& url); |
| 98 virtual void getResourceTree(ErrorString*, RefPtr<TypeBuilder::Page::FrameRe
sourceTree>&); | 98 virtual void getResourceTree(ErrorString*, RefPtr<TypeBuilder::Page::FrameRe
sourceTree>&); |
| 99 virtual void getResourceContent(ErrorString*, const String& frameId, const S
tring& url, String* content, bool* base64Encoded); | 99 virtual void getResourceContent(ErrorString*, const String& frameId, const S
tring& url, String* content, bool* base64Encoded); |
| 100 virtual void searchInResource(ErrorString*, const String& frameId, const Str
ing& url, const String& query, const bool* optionalCaseSensitive, const bool* op
tionalIsRegex, RefPtr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch> >&); | 100 virtual void searchInResource(ErrorString*, const String& frameId, const Str
ing& url, const String& query, const bool* optionalCaseSensitive, const bool* op
tionalIsRegex, RefPtr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch> >&); |
| 101 virtual void setDocumentContent(ErrorString*, const String& frameId, const S
tring& html); | 101 virtual void setDocumentContent(ErrorString*, const String& frameId, const S
tring& html); |
| 102 virtual void setDeviceMetricsOverride(ErrorString*, int width, int height, d
ouble deviceScaleFactor, bool fitWindow, const bool* optionalTextAutosizing, con
st double* optionalFontScaleFactor); | 102 virtual void setDeviceMetricsOverride(ErrorString*, int width, int height, d
ouble deviceScaleFactor, bool emulateViewport, bool fitWindow, const bool* optio
nalTextAutosizing, const double* optionalFontScaleFactor); |
| 103 virtual void setShowPaintRects(ErrorString*, bool show); | 103 virtual void setShowPaintRects(ErrorString*, bool show); |
| 104 virtual void setShowDebugBorders(ErrorString*, bool show); | 104 virtual void setShowDebugBorders(ErrorString*, bool show); |
| 105 virtual void setShowFPSCounter(ErrorString*, bool show); | 105 virtual void setShowFPSCounter(ErrorString*, bool show); |
| 106 virtual void setContinuousPaintingEnabled(ErrorString*, bool enabled); | 106 virtual void setContinuousPaintingEnabled(ErrorString*, bool enabled); |
| 107 virtual void setShowScrollBottleneckRects(ErrorString*, bool show); | 107 virtual void setShowScrollBottleneckRects(ErrorString*, bool show); |
| 108 virtual void getScriptExecutionStatus(ErrorString*, PageCommandHandler::Resu
lt::Enum*); | 108 virtual void getScriptExecutionStatus(ErrorString*, PageCommandHandler::Resu
lt::Enum*); |
| 109 virtual void setScriptExecutionDisabled(ErrorString*, bool); | 109 virtual void setScriptExecutionDisabled(ErrorString*, bool); |
| 110 virtual void setGeolocationOverride(ErrorString*, const double*, const doubl
e*, const double*); | 110 virtual void setGeolocationOverride(ErrorString*, const double*, const doubl
e*, const double*); |
| 111 virtual void clearGeolocationOverride(ErrorString*); | 111 virtual void clearGeolocationOverride(ErrorString*); |
| 112 virtual void setDeviceOrientationOverride(ErrorString*, double, double, doub
le); | 112 virtual void setDeviceOrientationOverride(ErrorString*, double, double, doub
le); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 Frame* assertFrame(ErrorString*, const String& frameId); | 175 Frame* assertFrame(ErrorString*, const String& frameId); |
| 176 String scriptPreprocessorSource() { return m_scriptPreprocessorSource; } | 176 String scriptPreprocessorSource() { return m_scriptPreprocessorSource; } |
| 177 String resourceSourceMapURL(const String& url); | 177 String resourceSourceMapURL(const String& url); |
| 178 bool deviceMetricsOverrideEnabled(); | 178 bool deviceMetricsOverrideEnabled(); |
| 179 static DocumentLoader* assertDocumentLoader(ErrorString*, Frame*); | 179 static DocumentLoader* assertDocumentLoader(ErrorString*, Frame*); |
| 180 | 180 |
| 181 private: | 181 private: |
| 182 static void resourceContent(ErrorString*, Frame*, const KURL&, String* resul
t, bool* base64Encoded); | 182 static void resourceContent(ErrorString*, Frame*, const KURL&, String* resul
t, bool* base64Encoded); |
| 183 | 183 |
| 184 InspectorPageAgent(InstrumentingAgents*, Page*, InspectorCompositeState*, In
jectedScriptManager*, InspectorClient*, InspectorOverlay*); | 184 InspectorPageAgent(InstrumentingAgents*, Page*, InspectorCompositeState*, In
jectedScriptManager*, InspectorClient*, InspectorOverlay*); |
| 185 bool deviceMetricsChanged(int width, int height, double deviceScaleFactor, b
ool fitWindow, double fontScaleFactor, bool textAutosizing); | 185 bool deviceMetricsChanged(int width, int height, double deviceScaleFactor, b
ool emulateViewport, bool fitWindow, double fontScaleFactor, bool textAutosizing
); |
| 186 void updateViewMetrics(int width, int height, double deviceScaleFactor, bool
fitWindow); | 186 void updateViewMetrics(int width, int height, double deviceScaleFactor, bool
emulateViewport, bool fitWindow); |
| 187 void updateTouchEventEmulationInPage(bool); | 187 void updateTouchEventEmulationInPage(bool); |
| 188 | 188 |
| 189 static bool dataContent(const char* data, unsigned size, const String& textE
ncodingName, bool withBase64Encode, String* result); | 189 static bool dataContent(const char* data, unsigned size, const String& textE
ncodingName, bool withBase64Encode, String* result); |
| 190 | 190 |
| 191 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(Frame*); | 191 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(Frame*); |
| 192 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Fra
me*); | 192 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Fra
me*); |
| 193 Page* m_page; | 193 Page* m_page; |
| 194 InjectedScriptManager* m_injectedScriptManager; | 194 InjectedScriptManager* m_injectedScriptManager; |
| 195 InspectorClient* m_client; | 195 InspectorClient* m_client; |
| 196 InspectorFrontend::Page* m_frontend; | 196 InspectorFrontend::Page* m_frontend; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 210 bool m_deviceMetricsOverridden; | 210 bool m_deviceMetricsOverridden; |
| 211 RefPtr<GeolocationPosition> m_geolocationPosition; | 211 RefPtr<GeolocationPosition> m_geolocationPosition; |
| 212 RefPtr<GeolocationPosition> m_platformGeolocationPosition; | 212 RefPtr<GeolocationPosition> m_platformGeolocationPosition; |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 | 215 |
| 216 } // namespace WebCore | 216 } // namespace WebCore |
| 217 | 217 |
| 218 | 218 |
| 219 #endif // !defined(InspectorPagerAgent_h) | 219 #endif // !defined(InspectorPagerAgent_h) |
| OLD | NEW |