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

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

Issue 979033003: Move code from StyleResolver to ViewportStyleResolver. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed stray method declaration 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class InspectorCSSAgent; 51 class InspectorCSSAgent;
52 class InspectorDebuggerAgent; 52 class InspectorDebuggerAgent;
53 class InspectorOverlay; 53 class InspectorOverlay;
54 class InspectorResourceContentLoader; 54 class InspectorResourceContentLoader;
55 class KURL; 55 class KURL;
56 class LayoutRect; 56 class LayoutRect;
57 class LocalFrame; 57 class LocalFrame;
58 class Page; 58 class Page;
59 class LayoutObject; 59 class LayoutObject;
60 class SharedBuffer; 60 class SharedBuffer;
61 class StyleResolver;
62 class TextResourceDecoder; 61 class TextResourceDecoder;
63 62
64 typedef String ErrorString; 63 typedef String ErrorString;
65 64
66 class InspectorPageAgent final : public InspectorBaseAgent<InspectorPageAgent>, public InspectorBackendDispatcher::PageCommandHandler { 65 class InspectorPageAgent final : public InspectorBaseAgent<InspectorPageAgent>, public InspectorBackendDispatcher::PageCommandHandler {
67 WTF_MAKE_NONCOPYABLE(InspectorPageAgent); 66 WTF_MAKE_NONCOPYABLE(InspectorPageAgent);
68 public: 67 public:
69 enum ResourceType { 68 enum ResourceType {
70 DocumentResource, 69 DocumentResource,
71 StylesheetResource, 70 StylesheetResource,
72 ImageResource, 71 ImageResource,
73 FontResource, 72 FontResource,
74 MediaResource, 73 MediaResource,
75 ScriptResource, 74 ScriptResource,
76 TextTrackResource, 75 TextTrackResource,
77 XHRResource, 76 XHRResource,
78 WebSocketResource, 77 WebSocketResource,
79 OtherResource 78 OtherResource
80 }; 79 };
81 80
82 static PassOwnPtrWillBeRawPtr<InspectorPageAgent> create(Page*, InjectedScri ptManager*, InspectorClient*, InspectorOverlay*); 81 static PassOwnPtrWillBeRawPtr<InspectorPageAgent> create(Page*, InjectedScri ptManager*, InspectorClient*, InspectorOverlay*);
83 void setDeferredAgents(InspectorDebuggerAgent*, InspectorCSSAgent*); 82 void setDeferredAgents(InspectorDebuggerAgent*, InspectorCSSAgent*);
84 83
85 // Settings overrides. 84 // Settings overrides.
86 void setTextAutosizingEnabled(bool); 85 void setTextAutosizingEnabled(bool);
87 void setDeviceScaleAdjustment(float); 86 void setDeviceScaleAdjustment(float);
88 void setPreferCompositingToLCDTextEnabled(bool); 87 void setPreferCompositingToLCDTextEnabled(bool);
88 void setUseMobileViewportStyle(bool);
89 89
90 static Vector<Document*> importsForFrame(LocalFrame*); 90 static Vector<Document*> importsForFrame(LocalFrame*);
91 static bool cachedResourceContent(Resource*, String* result, bool* base64Enc oded); 91 static bool cachedResourceContent(Resource*, String* result, bool* base64Enc oded);
92 static bool sharedBufferContent(PassRefPtr<SharedBuffer>, const String& text EncodingName, bool withBase64Encode, String* result); 92 static bool sharedBufferContent(PassRefPtr<SharedBuffer>, const String& text EncodingName, bool withBase64Encode, String* result);
93 93
94 static PassRefPtr<SharedBuffer> resourceData(LocalFrame*, const KURL&, Strin g* textEncodingName); 94 static PassRefPtr<SharedBuffer> resourceData(LocalFrame*, const KURL&, Strin g* textEncodingName);
95 static Resource* cachedResource(LocalFrame*, const KURL&); 95 static Resource* cachedResource(LocalFrame*, const KURL&);
96 static TypeBuilder::Page::ResourceType::Enum resourceTypeJson(ResourceType); 96 static TypeBuilder::Page::ResourceType::Enum resourceTypeJson(ResourceType);
97 static ResourceType cachedResourceType(const Resource&); 97 static ResourceType cachedResourceType(const Resource&);
98 static TypeBuilder::Page::ResourceType::Enum cachedResourceTypeJson(const Re source&); 98 static TypeBuilder::Page::ResourceType::Enum cachedResourceTypeJson(const Re source&);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 void didCommitLoad(LocalFrame*, DocumentLoader*); 136 void didCommitLoad(LocalFrame*, DocumentLoader*);
137 void frameAttachedToParent(LocalFrame*); 137 void frameAttachedToParent(LocalFrame*);
138 void frameDetachedFromParent(LocalFrame*); 138 void frameDetachedFromParent(LocalFrame*);
139 void loaderDetachedFromFrame(DocumentLoader*); 139 void loaderDetachedFromFrame(DocumentLoader*);
140 void frameStartedLoading(LocalFrame*); 140 void frameStartedLoading(LocalFrame*);
141 void frameStoppedLoading(LocalFrame*); 141 void frameStoppedLoading(LocalFrame*);
142 void frameScheduledNavigation(LocalFrame*, double delay); 142 void frameScheduledNavigation(LocalFrame*, double delay);
143 void frameClearedScheduledNavigation(LocalFrame*); 143 void frameClearedScheduledNavigation(LocalFrame*);
144 void willRunJavaScriptDialog(const String& message); 144 void willRunJavaScriptDialog(const String& message);
145 void didRunJavaScriptDialog(); 145 void didRunJavaScriptDialog();
146 bool applyViewportStyleOverride(StyleResolver*);
147 void applyEmulatedMedia(String*); 146 void applyEmulatedMedia(String*);
148 void didPaint(LayoutObject*, const GraphicsLayer*, GraphicsContext*, const L ayoutRect&); 147 void didPaint(LayoutObject*, const GraphicsLayer*, GraphicsContext*, const L ayoutRect&);
149 void didLayout(); 148 void didLayout();
150 void didScroll(); 149 void didScroll();
151 void didResizeMainFrame(); 150 void didResizeMainFrame();
152 void didRecalculateStyle(int); 151 void didRecalculateStyle(int);
153 void scriptsEnabled(bool isEnabled); 152 void scriptsEnabled(bool isEnabled);
154 153
155 // Inspector Controller API 154 // Inspector Controller API
156 void setFrontend(InspectorFrontend*) override; 155 void setFrontend(InspectorFrontend*) override;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 bool m_ignoreScriptsEnabledNotification; 212 bool m_ignoreScriptsEnabledNotification;
214 bool m_deviceMetricsOverridden; 213 bool m_deviceMetricsOverridden;
215 bool m_emulateMobileEnabled; 214 bool m_emulateMobileEnabled;
216 215
217 bool m_touchEmulationEnabled; 216 bool m_touchEmulationEnabled;
218 bool m_originalTouchEnabled; 217 bool m_originalTouchEnabled;
219 bool m_originalDeviceSupportsMouse; 218 bool m_originalDeviceSupportsMouse;
220 bool m_originalDeviceSupportsTouch; 219 bool m_originalDeviceSupportsTouch;
221 int m_originalMaxTouchPoints; 220 int m_originalMaxTouchPoints;
222 221
222 double m_embedderFontScaleFactor;
223
223 bool m_embedderTextAutosizingEnabled; 224 bool m_embedderTextAutosizingEnabled;
224 double m_embedderFontScaleFactor;
225 bool m_embedderPreferCompositingToLCDTextEnabled; 225 bool m_embedderPreferCompositingToLCDTextEnabled;
226 bool m_reloading; 226 bool m_reloading;
227 bool m_embedderUseMobileViewport;
227 228
228 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten tLoader; 229 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten tLoader;
229 }; 230 };
230 231
231 232
232 } // namespace blink 233 } // namespace blink
233 234
234 235
235 #endif // !defined(InspectorPagerAgent_h) 236 #endif // !defined(InspectorPagerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698