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

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

Issue 345723003: [DevTools] Separate text autosizing from device metrics override. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: compile fix Created 6 years, 5 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
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 virtual void removeScriptToEvaluateOnLoad(ErrorString*, const String& identi fier) OVERRIDE; 101 virtual void removeScriptToEvaluateOnLoad(ErrorString*, const String& identi fier) OVERRIDE;
102 virtual void reload(ErrorString*, const bool* optionalIgnoreCache, const Str ing* optionalScriptToEvaluateOnLoad, const String* optionalScriptPreprocessor) O VERRIDE; 102 virtual void reload(ErrorString*, const bool* optionalIgnoreCache, const Str ing* optionalScriptToEvaluateOnLoad, const String* optionalScriptPreprocessor) O VERRIDE;
103 virtual void navigate(ErrorString*, const String& url) OVERRIDE; 103 virtual void navigate(ErrorString*, const String& url) OVERRIDE;
104 virtual void getCookies(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder: :Page::Cookie> >& cookies) OVERRIDE; 104 virtual void getCookies(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder: :Page::Cookie> >& cookies) OVERRIDE;
105 virtual void deleteCookie(ErrorString*, const String& cookieName, const Stri ng& url) OVERRIDE; 105 virtual void deleteCookie(ErrorString*, const String& cookieName, const Stri ng& url) OVERRIDE;
106 virtual void getResourceTree(ErrorString*, RefPtr<TypeBuilder::Page::FrameRe sourceTree>&) OVERRIDE; 106 virtual void getResourceTree(ErrorString*, RefPtr<TypeBuilder::Page::FrameRe sourceTree>&) OVERRIDE;
107 virtual void getResourceContent(ErrorString*, const String& frameId, const S tring& url, PassRefPtr<GetResourceContentCallback>) OVERRIDE; 107 virtual void getResourceContent(ErrorString*, const String& frameId, const S tring& url, PassRefPtr<GetResourceContentCallback>) OVERRIDE;
108 virtual void hasTouchInputs(ErrorString*, bool* result) OVERRIDE; 108 virtual void hasTouchInputs(ErrorString*, bool* result) OVERRIDE;
109 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> >&) OVE RRIDE; 109 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> >&) OVE RRIDE;
110 virtual void setDocumentContent(ErrorString*, const String& frameId, const S tring& html) OVERRIDE; 110 virtual void setDocumentContent(ErrorString*, const String& frameId, const S tring& html) OVERRIDE;
111 virtual void setDeviceMetricsOverride(ErrorString*, int width, int height, d ouble deviceScaleFactor, bool emulateViewport, bool fitWindow, const double* opt ionalScale, const double* optionalOffsetX, const double* optionalOffsetY, const bool* optionalTextAutosizing, const double* optionalFontScaleFactor) OVERRIDE; 111 virtual void setDeviceMetricsOverride(ErrorString*, int width, int height, d ouble deviceScaleFactor, bool emulateViewport, bool fitWindow, const double* opt ionalScale, const double* optionalOffsetX, const double* optionalOffsetY) OVERRI DE;
112 virtual void clearDeviceMetricsOverride(ErrorString*) OVERRIDE; 112 virtual void clearDeviceMetricsOverride(ErrorString*) OVERRIDE;
113 virtual void setShowPaintRects(ErrorString*, bool show) OVERRIDE; 113 virtual void setShowPaintRects(ErrorString*, bool show) OVERRIDE;
114 virtual void setShowDebugBorders(ErrorString*, bool show) OVERRIDE; 114 virtual void setShowDebugBorders(ErrorString*, bool show) OVERRIDE;
115 virtual void setShowFPSCounter(ErrorString*, bool show) OVERRIDE; 115 virtual void setShowFPSCounter(ErrorString*, bool show) OVERRIDE;
116 virtual void setContinuousPaintingEnabled(ErrorString*, bool enabled) OVERRI DE; 116 virtual void setContinuousPaintingEnabled(ErrorString*, bool enabled) OVERRI DE;
117 virtual void setShowScrollBottleneckRects(ErrorString*, bool show) OVERRIDE; 117 virtual void setShowScrollBottleneckRects(ErrorString*, bool show) OVERRIDE;
118 virtual void getScriptExecutionStatus(ErrorString*, PageCommandHandler::Resu lt::Enum*) OVERRIDE; 118 virtual void getScriptExecutionStatus(ErrorString*, PageCommandHandler::Resu lt::Enum*) OVERRIDE;
119 virtual void setScriptExecutionDisabled(ErrorString*, bool) OVERRIDE; 119 virtual void setScriptExecutionDisabled(ErrorString*, bool) OVERRIDE;
120 virtual void setTouchEmulationEnabled(ErrorString*, bool) OVERRIDE; 120 virtual void setTouchEmulationEnabled(ErrorString*, bool) OVERRIDE;
121 virtual void setEmulatedMedia(ErrorString*, const String&) OVERRIDE; 121 virtual void setEmulatedMedia(ErrorString*, const String&) OVERRIDE;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 static DocumentLoader* assertDocumentLoader(ErrorString*, LocalFrame*); 165 static DocumentLoader* assertDocumentLoader(ErrorString*, LocalFrame*);
166 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector ResourceContentLoader.get(); } 166 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector ResourceContentLoader.get(); }
167 void clearEditedResourcesContent(); 167 void clearEditedResourcesContent();
168 void addEditedResourceContent(const String& url, const String& content); 168 void addEditedResourceContent(const String& url, const String& content);
169 bool getEditedResourceContent(const String& url, String* content); 169 bool getEditedResourceContent(const String& url, String* content);
170 170
171 private: 171 private:
172 class GetResourceContentLoadListener; 172 class GetResourceContentLoadListener;
173 173
174 InspectorPageAgent(Page*, InjectedScriptManager*, InspectorClient*, Inspecto rOverlay*); 174 InspectorPageAgent(Page*, InjectedScriptManager*, InspectorClient*, Inspecto rOverlay*);
175 bool deviceMetricsChanged(bool enabled, int width, int height, double device ScaleFactor, bool emulateViewport, bool fitWindow, double scale, double offsetX, double offsetY, double fontScaleFactor, bool textAutosizing); 175 bool deviceMetricsChanged(bool enabled, int width, int height, double device ScaleFactor, bool emulateViewport, bool fitWindow, double scale, double offsetX, double offsetY);
176 void updateViewMetricsFromState(); 176 void updateViewMetricsFromState();
177 void updateViewMetrics(bool enabled, int width, int height, double deviceSca leFactor, bool emulateViewport, bool fitWindow, double scale, double offsetX, do uble offsetY, double fontScaleFactor, bool textAutosizingEnabled); 177 void updateViewMetrics(bool enabled, int width, int height, double deviceSca leFactor, bool emulateViewport, bool fitWindow, double scale, double offsetX, do uble offsetY);
178 void updateTouchEventEmulationInPage(bool); 178 void updateTouchEventEmulationInPage(bool);
179 bool compositingEnabled(ErrorString*); 179 bool compositingEnabled(ErrorString*);
180 180
181 void getResourceContentAfterResourcesContentLoaded(const String& frameId, co nst String& url, PassRefPtr<GetResourceContentCallback>); 181 void getResourceContentAfterResourcesContentLoaded(const String& frameId, co nst String& url, PassRefPtr<GetResourceContentCallback>);
182 182
183 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result); 183 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result);
184 184
185 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*); 185 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*);
186 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc alFrame*); 186 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc alFrame*);
187 Page* m_page; 187 Page* m_page;
(...skipping 24 matching lines...) Expand all
212 212
213 OwnPtr<InspectorResourceContentLoader> m_inspectorResourceContentLoader; 213 OwnPtr<InspectorResourceContentLoader> m_inspectorResourceContentLoader;
214 HashMap<String, String> m_editedResourceContent; 214 HashMap<String, String> m_editedResourceContent;
215 }; 215 };
216 216
217 217
218 } // namespace WebCore 218 } // namespace WebCore
219 219
220 220
221 #endif // !defined(InspectorPagerAgent_h) 221 #endif // !defined(InspectorPagerAgent_h)
OLDNEW
« no previous file with comments | « LayoutTests/inspector/text-autosizing-override.html ('k') | Source/core/inspector/InspectorPageAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698