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

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: 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
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 class InspectorCSSAgent; 50 class InspectorCSSAgent;
51 class InspectorDebuggerAgent; 51 class InspectorDebuggerAgent;
52 class InspectorOverlay; 52 class InspectorOverlay;
53 class InspectorResourceContentLoader; 53 class InspectorResourceContentLoader;
54 class KURL; 54 class KURL;
55 class LayoutRect; 55 class LayoutRect;
56 class LocalFrame; 56 class LocalFrame;
57 class Page; 57 class Page;
58 class LayoutObject; 58 class LayoutObject;
59 class SharedBuffer; 59 class SharedBuffer;
60 class StyleResolver;
61 class TextResourceDecoder; 60 class TextResourceDecoder;
62 61
63 typedef String ErrorString; 62 typedef String ErrorString;
64 63
65 class InspectorPageAgent final : public InspectorBaseAgent<InspectorPageAgent>, public InspectorBackendDispatcher::PageCommandHandler { 64 class InspectorPageAgent final : public InspectorBaseAgent<InspectorPageAgent>, public InspectorBackendDispatcher::PageCommandHandler {
66 WTF_MAKE_NONCOPYABLE(InspectorPageAgent); 65 WTF_MAKE_NONCOPYABLE(InspectorPageAgent);
67 public: 66 public:
68 class Client { 67 class Client {
69 public: 68 public:
70 virtual ~Client() { } 69 virtual ~Client() { }
(...skipping 27 matching lines...) Expand all
98 }; 97 };
99 98
100 static PassOwnPtrWillBeRawPtr<InspectorPageAgent> create(Page*, InjectedScri ptManager*, Client*, InspectorOverlay*); 99 static PassOwnPtrWillBeRawPtr<InspectorPageAgent> create(Page*, InjectedScri ptManager*, Client*, InspectorOverlay*);
101 void setDeferredAgents(InspectorDebuggerAgent*, InspectorCSSAgent*); 100 void setDeferredAgents(InspectorDebuggerAgent*, InspectorCSSAgent*);
102 101
103 // Settings overrides. 102 // Settings overrides.
104 void setTextAutosizingEnabled(bool); 103 void setTextAutosizingEnabled(bool);
105 void setDeviceScaleAdjustment(float); 104 void setDeviceScaleAdjustment(float);
106 void setPreferCompositingToLCDTextEnabled(bool); 105 void setPreferCompositingToLCDTextEnabled(bool);
107 void setScriptEnabled(bool); 106 void setScriptEnabled(bool);
107 void setUseMobileViewportStyle(bool);
108 108
109 static Vector<Document*> importsForFrame(LocalFrame*); 109 static Vector<Document*> importsForFrame(LocalFrame*);
110 static bool cachedResourceContent(Resource*, String* result, bool* base64Enc oded); 110 static bool cachedResourceContent(Resource*, String* result, bool* base64Enc oded);
111 static bool sharedBufferContent(PassRefPtr<SharedBuffer>, const String& text EncodingName, bool withBase64Encode, String* result); 111 static bool sharedBufferContent(PassRefPtr<SharedBuffer>, const String& text EncodingName, bool withBase64Encode, String* result);
112 112
113 static PassRefPtr<SharedBuffer> resourceData(LocalFrame*, const KURL&, Strin g* textEncodingName); 113 static PassRefPtr<SharedBuffer> resourceData(LocalFrame*, const KURL&, Strin g* textEncodingName);
114 static Resource* cachedResource(LocalFrame*, const KURL&); 114 static Resource* cachedResource(LocalFrame*, const KURL&);
115 static TypeBuilder::Page::ResourceType::Enum resourceTypeJson(ResourceType); 115 static TypeBuilder::Page::ResourceType::Enum resourceTypeJson(ResourceType);
116 static ResourceType cachedResourceType(const Resource&); 116 static ResourceType cachedResourceType(const Resource&);
117 static TypeBuilder::Page::ResourceType::Enum cachedResourceTypeJson(const Re source&); 117 static TypeBuilder::Page::ResourceType::Enum cachedResourceTypeJson(const Re source&);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void didCommitLoad(LocalFrame*, DocumentLoader*); 154 void didCommitLoad(LocalFrame*, DocumentLoader*);
155 void frameAttachedToParent(LocalFrame*); 155 void frameAttachedToParent(LocalFrame*);
156 void frameDetachedFromParent(LocalFrame*); 156 void frameDetachedFromParent(LocalFrame*);
157 void loaderDetachedFromFrame(DocumentLoader*); 157 void loaderDetachedFromFrame(DocumentLoader*);
158 void frameStartedLoading(LocalFrame*); 158 void frameStartedLoading(LocalFrame*);
159 void frameStoppedLoading(LocalFrame*); 159 void frameStoppedLoading(LocalFrame*);
160 void frameScheduledNavigation(LocalFrame*, double delay); 160 void frameScheduledNavigation(LocalFrame*, double delay);
161 void frameClearedScheduledNavigation(LocalFrame*); 161 void frameClearedScheduledNavigation(LocalFrame*);
162 void willRunJavaScriptDialog(const String& message); 162 void willRunJavaScriptDialog(const String& message);
163 void didRunJavaScriptDialog(); 163 void didRunJavaScriptDialog();
164 bool applyViewportStyleOverride(StyleResolver*);
165 void applyEmulatedMedia(String*); 164 void applyEmulatedMedia(String*);
166 void didPaint(LayoutObject*, const GraphicsLayer*, GraphicsContext*, const L ayoutRect&); 165 void didPaint(LayoutObject*, const GraphicsLayer*, GraphicsContext*, const L ayoutRect&);
167 void didLayout(); 166 void didLayout();
168 void didScroll(); 167 void didScroll();
169 void didResizeMainFrame(); 168 void didResizeMainFrame();
170 void didRecalculateStyle(int); 169 void didRecalculateStyle(int);
171 170
172 // Inspector Controller API 171 // Inspector Controller API
173 void setFrontend(InspectorFrontend*) override; 172 void setFrontend(InspectorFrontend*) override;
174 void clearFrontend() override; 173 void clearFrontend() override;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 bool m_enabled; 227 bool m_enabled;
229 bool m_deviceMetricsOverridden; 228 bool m_deviceMetricsOverridden;
230 bool m_emulateMobileEnabled; 229 bool m_emulateMobileEnabled;
231 230
232 bool m_touchEmulationEnabled; 231 bool m_touchEmulationEnabled;
233 bool m_originalTouchEnabled; 232 bool m_originalTouchEnabled;
234 bool m_originalDeviceSupportsMouse; 233 bool m_originalDeviceSupportsMouse;
235 bool m_originalDeviceSupportsTouch; 234 bool m_originalDeviceSupportsTouch;
236 int m_originalMaxTouchPoints; 235 int m_originalMaxTouchPoints;
237 236
237 double m_embedderFontScaleFactor;
238
238 bool m_embedderTextAutosizingEnabled; 239 bool m_embedderTextAutosizingEnabled;
239 double m_embedderFontScaleFactor;
240 bool m_embedderPreferCompositingToLCDTextEnabled; 240 bool m_embedderPreferCompositingToLCDTextEnabled;
241 bool m_embedderScriptEnabled; 241 bool m_embedderScriptEnabled;
242 bool m_reloading; 242 bool m_reloading;
243 bool m_embedderUseMobileViewport;
243 244
244 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten tLoader; 245 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten tLoader;
245 }; 246 };
246 247
247 248
248 } // namespace blink 249 } // namespace blink
249 250
250 251
251 #endif // !defined(InspectorPagerAgent_h) 252 #endif // !defined(InspectorPagerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorInstrumentation.idl ('k') | Source/core/inspector/InspectorPageAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698