Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: Source/core/inspector/InspectorPageAgent.h

Issue 1003243002: [DevTools] Cleanup after reversing emulation flow. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/inspector/InspectorPageAgent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual void resetScrollAndPageScaleFactor() { } 71 virtual void resetScrollAndPageScaleFactor() { }
72 virtual float minimumPageScaleFactor() { return 1; } 72 virtual float minimumPageScaleFactor() { return 1; }
73 virtual float maximumPageScaleFactor() { return 1; } 73 virtual float maximumPageScaleFactor() { return 1; }
74 virtual void setPageScaleFactor(float) { } 74 virtual void setPageScaleFactor(float) { }
75 virtual void setShowPaintRects(bool) { } 75 virtual void setShowPaintRects(bool) { }
76 virtual void setShowDebugBorders(bool) { } 76 virtual void setShowDebugBorders(bool) { }
77 virtual void setShowFPSCounter(bool) { } 77 virtual void setShowFPSCounter(bool) { }
78 virtual void setContinuousPaintingEnabled(bool) { } 78 virtual void setContinuousPaintingEnabled(bool) { }
79 virtual void setShowScrollBottleneckRects(bool) { } 79 virtual void setShowScrollBottleneckRects(bool) { }
80 virtual bool overridesShowPaintRects() { return false; } 80 virtual bool overridesShowPaintRects() { return false; }
81 virtual void setDeviceMetricsOverride(int /*width*/, int /*height*/, flo at /*deviceScaleFactor*/, bool /*mobile*/, bool /*fitWindow*/, float /* scale */ , float /* offsetX */, float /* offsetY */) { }
82 virtual void clearDeviceMetricsOverride() { }
83 virtual void setTouchEventEmulationEnabled(bool) { } 81 virtual void setTouchEventEmulationEnabled(bool) { }
84 }; 82 };
85 83
86 enum ResourceType { 84 enum ResourceType {
87 DocumentResource, 85 DocumentResource,
88 StylesheetResource, 86 StylesheetResource,
89 ImageResource, 87 ImageResource,
90 FontResource, 88 FontResource,
91 MediaResource, 89 MediaResource,
92 ScriptResource, 90 ScriptResource,
(...skipping 25 matching lines...) Expand all
118 void addScriptToEvaluateOnLoad(ErrorString*, const String& source, String* r esult) override; 116 void addScriptToEvaluateOnLoad(ErrorString*, const String& source, String* r esult) override;
119 void removeScriptToEvaluateOnLoad(ErrorString*, const String& identifier) ov erride; 117 void removeScriptToEvaluateOnLoad(ErrorString*, const String& identifier) ov erride;
120 void reload(ErrorString*, const bool* optionalIgnoreCache, const String* opt ionalScriptToEvaluateOnLoad) override; 118 void reload(ErrorString*, const bool* optionalIgnoreCache, const String* opt ionalScriptToEvaluateOnLoad) override;
121 void navigate(ErrorString*, const String& url, String* frameId) override; 119 void navigate(ErrorString*, const String& url, String* frameId) override;
122 void getCookies(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::Page::C ookie> >& cookies) override; 120 void getCookies(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::Page::C ookie> >& cookies) override;
123 void deleteCookie(ErrorString*, const String& cookieName, const String& url) override; 121 void deleteCookie(ErrorString*, const String& cookieName, const String& url) override;
124 void getResourceTree(ErrorString*, RefPtr<TypeBuilder::Page::FrameResourceTr ee>&) override; 122 void getResourceTree(ErrorString*, RefPtr<TypeBuilder::Page::FrameResourceTr ee>&) override;
125 void getResourceContent(ErrorString*, const String& frameId, const String& u rl, PassRefPtrWillBeRawPtr<GetResourceContentCallback>) override; 123 void getResourceContent(ErrorString*, const String& frameId, const String& u rl, PassRefPtrWillBeRawPtr<GetResourceContentCallback>) override;
126 void searchInResource(ErrorString*, const String& frameId, const String& url , const String& query, const bool* optionalCaseSensitive, const bool* optionalIs Regex, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::SearchMatch>>&) override ; 124 void searchInResource(ErrorString*, const String& frameId, const String& url , const String& query, const bool* optionalCaseSensitive, const bool* optionalIs Regex, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::SearchMatch>>&) override ;
127 void setDocumentContent(ErrorString*, const String& frameId, const String& h tml) override; 125 void setDocumentContent(ErrorString*, const String& frameId, const String& h tml) override;
128 void setDeviceMetricsOverride(ErrorString*, int width, int height, double de viceScaleFactor, bool mobile, bool fitWindow, const double* optionalScale, const double* optionalOffsetX, const double* optionalOffsetY) override;
129 void clearDeviceMetricsOverride(ErrorString*) override;
130 void resetScrollAndPageScaleFactor(ErrorString*) override; 126 void resetScrollAndPageScaleFactor(ErrorString*) override;
131 void setPageScaleFactor(ErrorString*, double pageScaleFactor) override; 127 void setPageScaleFactor(ErrorString*, double pageScaleFactor) override;
132 void setShowPaintRects(ErrorString*, bool show) override; 128 void setShowPaintRects(ErrorString*, bool show) override;
133 void setShowDebugBorders(ErrorString*, bool show) override; 129 void setShowDebugBorders(ErrorString*, bool show) override;
134 void setShowFPSCounter(ErrorString*, bool show) override; 130 void setShowFPSCounter(ErrorString*, bool show) override;
135 void setContinuousPaintingEnabled(ErrorString*, bool enabled) override; 131 void setContinuousPaintingEnabled(ErrorString*, bool enabled) override;
136 void setShowScrollBottleneckRects(ErrorString*, bool show) override; 132 void setShowScrollBottleneckRects(ErrorString*, bool show) override;
137 void setScriptExecutionDisabled(ErrorString*, bool) override; 133 void setScriptExecutionDisabled(ErrorString*, bool) override;
138 void setTouchEmulationEnabled(ErrorString*, bool enabled, const String* conf iguration) override; 134 void setTouchEmulationEnabled(ErrorString*, bool enabled, const String* conf iguration) override;
139 void setEmulatedMedia(ErrorString*, const String&) override; 135 void setEmulatedMedia(ErrorString*, const String&) override;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 bool screencastEnabled(); 179 bool screencastEnabled();
184 static DocumentLoader* assertDocumentLoader(ErrorString*, LocalFrame*); 180 static DocumentLoader* assertDocumentLoader(ErrorString*, LocalFrame*);
185 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector ResourceContentLoader.get(); } 181 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector ResourceContentLoader.get(); }
186 182
187 DECLARE_VIRTUAL_TRACE(); 183 DECLARE_VIRTUAL_TRACE();
188 184
189 private: 185 private:
190 class GetResourceContentLoadListener; 186 class GetResourceContentLoadListener;
191 187
192 InspectorPageAgent(Page*, InjectedScriptManager*, Client*, InspectorOverlay* ); 188 InspectorPageAgent(Page*, InjectedScriptManager*, Client*, InspectorOverlay* );
193 bool deviceMetricsChanged(bool enabled, int width, int height, double device ScaleFactor, bool mobile, bool fitWindow, double scale, double offsetX, double o ffsetY);
194 void updateViewMetricsFromState();
195 void updateViewMetrics(bool enabled, int width, int height, double deviceSca leFactor, bool mobile, bool fitWindow, double scale, double offsetX, double offs etY);
196 void updateTouchEventEmulationInPage(bool); 189 void updateTouchEventEmulationInPage(bool);
197 bool compositingEnabled(ErrorString*); 190 bool compositingEnabled(ErrorString*);
198 191
199 void finishReload(); 192 void finishReload();
200 void getResourceContentAfterResourcesContentLoaded(const String& frameId, co nst String& url, PassRefPtrWillBeRawPtr<GetResourceContentCallback>); 193 void getResourceContentAfterResourcesContentLoaded(const String& frameId, co nst String& url, PassRefPtrWillBeRawPtr<GetResourceContentCallback>);
201 194
202 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result); 195 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result);
203 196
204 void viewportChanged(); 197 void viewportChanged();
205 198
(...skipping 18 matching lines...) Expand all
224 bool m_reloading; 217 bool m_reloading;
225 218
226 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten tLoader; 219 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten tLoader;
227 }; 220 };
228 221
229 222
230 } // namespace blink 223 } // namespace blink
231 224
232 225
233 #endif // !defined(InspectorPagerAgent_h) 226 #endif // !defined(InspectorPagerAgent_h)
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorPageAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698