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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 String scriptPreprocessorSource() { return m_scriptPreprocessorSource; } | 164 String scriptPreprocessorSource() { return m_scriptPreprocessorSource; } |
165 const AtomicString& resourceSourceMapURL(const String& url); | 165 const AtomicString& resourceSourceMapURL(const String& url); |
166 bool deviceMetricsOverrideEnabled(); | 166 bool deviceMetricsOverrideEnabled(); |
167 void deviceOrPageScaleFactorChanged(); | 167 void deviceOrPageScaleFactorChanged(); |
168 static DocumentLoader* assertDocumentLoader(ErrorString*, LocalFrame*); | 168 static DocumentLoader* assertDocumentLoader(ErrorString*, LocalFrame*); |
169 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector
ResourceContentLoader.get(); } | 169 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector
ResourceContentLoader.get(); } |
170 void clearEditedResourcesContent(); | 170 void clearEditedResourcesContent(); |
171 void addEditedResourceContent(const String& url, const String& content); | 171 void addEditedResourceContent(const String& url, const String& content); |
172 bool getEditedResourceContent(const String& url, String* content); | 172 bool getEditedResourceContent(const String& url, String* content); |
173 | 173 |
| 174 void dispose(); |
174 virtual void trace(Visitor*) OVERRIDE; | 175 virtual void trace(Visitor*) OVERRIDE; |
175 | 176 |
176 private: | 177 private: |
177 class GetResourceContentLoadListener; | 178 class GetResourceContentLoadListener; |
178 | 179 |
179 InspectorPageAgent(Page*, InjectedScriptManager*, InspectorClient*, Inspecto
rOverlay*); | 180 InspectorPageAgent(Page*, InjectedScriptManager*, InspectorClient*, Inspecto
rOverlay*); |
180 bool deviceMetricsChanged(bool enabled, int width, int height, double device
ScaleFactor, bool mobile, bool fitWindow, double scale, double offsetX, double o
ffsetY); | 181 bool deviceMetricsChanged(bool enabled, int width, int height, double device
ScaleFactor, bool mobile, bool fitWindow, double scale, double offsetX, double o
ffsetY); |
181 void updateViewMetricsFromState(); | 182 void updateViewMetricsFromState(); |
182 void updateViewMetrics(bool enabled, int width, int height, double deviceSca
leFactor, bool mobile, bool fitWindow, double scale, double offsetX, double offs
etY); | 183 void updateViewMetrics(bool enabled, int width, int height, double deviceSca
leFactor, bool mobile, bool fitWindow, double scale, double offsetX, double offs
etY); |
183 void updateTouchEventEmulationInPage(bool); | 184 void updateTouchEventEmulationInPage(bool); |
(...skipping 28 matching lines...) Expand all Loading... |
212 bool m_touchEmulationEnabled; | 213 bool m_touchEmulationEnabled; |
213 bool m_originalTouchEnabled; | 214 bool m_originalTouchEnabled; |
214 bool m_originalDeviceSupportsMouse; | 215 bool m_originalDeviceSupportsMouse; |
215 bool m_originalDeviceSupportsTouch; | 216 bool m_originalDeviceSupportsTouch; |
216 int m_originalMaxTouchPoints; | 217 int m_originalMaxTouchPoints; |
217 | 218 |
218 bool m_embedderTextAutosizingEnabled; | 219 bool m_embedderTextAutosizingEnabled; |
219 double m_embedderFontScaleFactor; | 220 double m_embedderFontScaleFactor; |
220 bool m_embedderPreferCompositingToLCDTextEnabled; | 221 bool m_embedderPreferCompositingToLCDTextEnabled; |
221 | 222 |
222 OwnPtr<InspectorResourceContentLoader> m_inspectorResourceContentLoader; | 223 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten
tLoader; |
223 HashMap<String, String> m_editedResourceContent; | 224 HashMap<String, String> m_editedResourceContent; |
224 }; | 225 }; |
225 | 226 |
226 | 227 |
227 } // namespace blink | 228 } // namespace blink |
228 | 229 |
229 | 230 |
230 #endif // !defined(InspectorPagerAgent_h) | 231 #endif // !defined(InspectorPagerAgent_h) |
OLD | NEW |