| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 virtual void canScreencast(ErrorString*, bool*) OVERRIDE; | 119 virtual void canScreencast(ErrorString*, bool*) OVERRIDE; |
| 120 virtual void startScreencast(ErrorString*, const String* format, const int*
quality, const int* maxWidth, const int* maxHeight) OVERRIDE; | 120 virtual void startScreencast(ErrorString*, const String* format, const int*
quality, const int* maxWidth, const int* maxHeight) OVERRIDE; |
| 121 virtual void stopScreencast(ErrorString*) OVERRIDE; | 121 virtual void stopScreencast(ErrorString*) OVERRIDE; |
| 122 virtual void handleJavaScriptDialog(ErrorString*, bool accept, const String*
promptText) OVERRIDE; | 122 virtual void handleJavaScriptDialog(ErrorString*, bool accept, const String*
promptText) OVERRIDE; |
| 123 virtual void queryUsageAndQuota(WebCore::ErrorString*, const WTF::String&, W
TF::RefPtr<WebCore::TypeBuilder::Page::Quota>&, WTF::RefPtr<WebCore::TypeBuilder
::Page::Usage>&) OVERRIDE; | 123 virtual void queryUsageAndQuota(WebCore::ErrorString*, const WTF::String&, W
TF::RefPtr<WebCore::TypeBuilder::Page::Quota>&, WTF::RefPtr<WebCore::TypeBuilder
::Page::Usage>&) OVERRIDE; |
| 124 virtual void setShowViewportSizeOnResize(ErrorString*, bool show, const bool
* showGrid) OVERRIDE; | 124 virtual void setShowViewportSizeOnResize(ErrorString*, bool show, const bool
* showGrid) OVERRIDE; |
| 125 | 125 |
| 126 // Geolocation override helper. | 126 // Geolocation override helper. |
| 127 GeolocationPosition* overrideGeolocationPosition(GeolocationPosition*); | 127 GeolocationPosition* overrideGeolocationPosition(GeolocationPosition*); |
| 128 | 128 |
| 129 // Text autosizing override helpers. | |
| 130 bool overrideTextAutosizing(bool); | |
| 131 // Note: This is used by Settings::deviceScaleAdjustment to calculate the ov
erridden device scale adjustment. | |
| 132 float overrideFontScaleFactor(float); | |
| 133 | |
| 134 // InspectorInstrumentation API | 129 // InspectorInstrumentation API |
| 135 void didClearWindowObjectInWorld(Frame*, DOMWrapperWorld*); | 130 void didClearWindowObjectInWorld(Frame*, DOMWrapperWorld*); |
| 136 void domContentLoadedEventFired(Frame*); | 131 void domContentLoadedEventFired(Frame*); |
| 137 void loadEventFired(Frame*); | 132 void loadEventFired(Frame*); |
| 138 void didCommitLoad(Frame*, DocumentLoader*); | 133 void didCommitLoad(Frame*, DocumentLoader*); |
| 139 void frameAttachedToParent(Frame*); | 134 void frameAttachedToParent(Frame*); |
| 140 void frameDetachedFromParent(Frame*); | 135 void frameDetachedFromParent(Frame*); |
| 141 void loaderDetachedFromFrame(DocumentLoader*); | 136 void loaderDetachedFromFrame(DocumentLoader*); |
| 142 void frameStartedLoading(Frame*); | 137 void frameStartedLoading(Frame*); |
| 143 void frameStoppedLoading(Frame*); | 138 void frameStoppedLoading(Frame*); |
| 144 void frameScheduledNavigation(Frame*, double delay); | 139 void frameScheduledNavigation(Frame*, double delay); |
| 145 void frameClearedScheduledNavigation(Frame*); | 140 void frameClearedScheduledNavigation(Frame*); |
| 146 void willRunJavaScriptDialog(const String& message); | 141 void willRunJavaScriptDialog(const String& message); |
| 147 void didRunJavaScriptDialog(); | 142 void didRunJavaScriptDialog(); |
| 148 bool applyViewportStyleOverride(StyleResolver*); | 143 bool applyViewportStyleOverride(StyleResolver*); |
| 149 void applyEmulatedMedia(String*); | 144 void applyEmulatedMedia(String*); |
| 150 void didPaint(RenderObject*, const GraphicsLayer*, GraphicsContext*, const L
ayoutRect&); | 145 void didPaint(RenderObject*, const GraphicsLayer*, GraphicsContext*, const L
ayoutRect&); |
| 151 void didLayout(RenderObject*); | 146 void didLayout(RenderObject*); |
| 152 void didScroll(); | 147 void didScroll(); |
| 153 void didResizeMainFrame(); | 148 void didResizeMainFrame(); |
| 154 void didRecalculateStyle(); | 149 void didRecalculateStyle(); |
| 155 void scriptsEnabled(bool isEnabled); | 150 void settingsChanged(); |
| 156 | 151 |
| 157 // Inspector Controller API | 152 // Inspector Controller API |
| 158 virtual void setFrontend(InspectorFrontend*) OVERRIDE; | 153 virtual void setFrontend(InspectorFrontend*) OVERRIDE; |
| 159 virtual void clearFrontend() OVERRIDE; | 154 virtual void clearFrontend() OVERRIDE; |
| 160 virtual void restore() OVERRIDE; | 155 virtual void restore() OVERRIDE; |
| 161 | 156 |
| 162 void webViewResized(const IntSize&); | 157 void webViewResized(const IntSize&); |
| 163 | 158 |
| 164 // Cross-agents API | 159 // Cross-agents API |
| 165 Page* page() { return m_page; } | 160 Page* page() { return m_page; } |
| 166 Frame* mainFrame(); | 161 Frame* mainFrame(); |
| 167 String createIdentifier(); | 162 String createIdentifier(); |
| 168 Frame* frameForId(const String& frameId); | 163 Frame* frameForId(const String& frameId); |
| 169 String frameId(Frame*); | 164 String frameId(Frame*); |
| 170 bool hasIdForFrame(Frame*) const; | 165 bool hasIdForFrame(Frame*) const; |
| 171 String loaderId(DocumentLoader*); | 166 String loaderId(DocumentLoader*); |
| 172 Frame* findFrameWithSecurityOrigin(const String& originRawString); | 167 Frame* findFrameWithSecurityOrigin(const String& originRawString); |
| 173 Frame* assertFrame(ErrorString*, const String& frameId); | 168 Frame* assertFrame(ErrorString*, const String& frameId); |
| 174 String scriptPreprocessorSource() { return m_scriptPreprocessorSource; } | 169 String scriptPreprocessorSource() { return m_scriptPreprocessorSource; } |
| 175 const AtomicString& resourceSourceMapURL(const String& url); | 170 const AtomicString& resourceSourceMapURL(const String& url); |
| 176 bool deviceMetricsOverrideEnabled(); | 171 bool deviceMetricsOverrideEnabled(); |
| 172 |
| 173 // Text autosizing override helpers. |
| 174 bool overrideTextAutosizing(); |
| 175 // Note: This is used by Settings::deviceScaleAdjustment to calculate the ov
erridden device scale adjustment. |
| 176 float overrideFontScaleFactor(); |
| 177 |
| 177 static DocumentLoader* assertDocumentLoader(ErrorString*, Frame*); | 178 static DocumentLoader* assertDocumentLoader(ErrorString*, Frame*); |
| 178 | 179 |
| 179 private: | 180 private: |
| 180 static void resourceContent(ErrorString*, Frame*, const KURL&, String* resul
t, bool* base64Encoded); | 181 static void resourceContent(ErrorString*, Frame*, const KURL&, String* resul
t, bool* base64Encoded); |
| 181 | 182 |
| 182 InspectorPageAgent(InstrumentingAgents*, Page*, InspectorCompositeState*, In
jectedScriptManager*, InspectorClient*, InspectorOverlay*); | 183 InspectorPageAgent(InstrumentingAgents*, Page*, InspectorCompositeState*, In
jectedScriptManager*, InspectorClient*, InspectorOverlay*); |
| 183 bool deviceMetricsChanged(int width, int height, double deviceScaleFactor, b
ool emulateViewport, bool fitWindow, double fontScaleFactor, bool textAutosizing
); | 184 bool deviceMetricsChanged(int width, int height, double deviceScaleFactor, b
ool emulateViewport, bool fitWindow, double fontScaleFactor, bool textAutosizing
); |
| 184 void updateViewMetrics(int width, int height, double deviceScaleFactor, bool
emulateViewport, bool fitWindow); | 185 void updateViewMetrics(int width, int height, double deviceScaleFactor, bool
emulateViewport, bool fitWindow); |
| 185 void updateTouchEventEmulationInPage(bool); | 186 void updateTouchEventEmulationInPage(bool); |
| 186 bool forceCompositingMode(ErrorString*); | 187 bool forceCompositingMode(ErrorString*); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 200 String m_pendingScriptPreprocessor; | 201 String m_pendingScriptPreprocessor; |
| 201 String m_scriptPreprocessorSource; | 202 String m_scriptPreprocessorSource; |
| 202 HashMap<Frame*, String> m_frameToIdentifier; | 203 HashMap<Frame*, String> m_frameToIdentifier; |
| 203 HashMap<String, Frame*> m_identifierToFrame; | 204 HashMap<String, Frame*> m_identifierToFrame; |
| 204 HashMap<DocumentLoader*, String> m_loaderToIdentifier; | 205 HashMap<DocumentLoader*, String> m_loaderToIdentifier; |
| 205 bool m_enabled; | 206 bool m_enabled; |
| 206 bool m_geolocationOverridden; | 207 bool m_geolocationOverridden; |
| 207 bool m_ignoreScriptsEnabledNotification; | 208 bool m_ignoreScriptsEnabledNotification; |
| 208 bool m_deviceMetricsOverridden; | 209 bool m_deviceMetricsOverridden; |
| 209 bool m_emulateViewportEnabled; | 210 bool m_emulateViewportEnabled; |
| 211 bool m_settingsCacheTextAutosizingEnabled; |
| 212 float m_settingsCacheFontScaleFactor; |
| 210 RefPtr<GeolocationPosition> m_geolocationPosition; | 213 RefPtr<GeolocationPosition> m_geolocationPosition; |
| 211 RefPtr<GeolocationPosition> m_platformGeolocationPosition; | 214 RefPtr<GeolocationPosition> m_platformGeolocationPosition; |
| 212 }; | 215 }; |
| 213 | 216 |
| 214 | 217 |
| 215 } // namespace WebCore | 218 } // namespace WebCore |
| 216 | 219 |
| 217 | 220 |
| 218 #endif // !defined(InspectorPagerAgent_h) | 221 #endif // !defined(InspectorPagerAgent_h) |
| OLD | NEW |