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

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

Issue 50043007: DevTools: check for canForceCompositingMode before trying to emulate device metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed comments Created 7 years, 1 month 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
« 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 virtual void setContinuousPaintingEnabled(ErrorString*, bool enabled); 107 virtual void setContinuousPaintingEnabled(ErrorString*, bool enabled);
108 virtual void setShowScrollBottleneckRects(ErrorString*, bool show); 108 virtual void setShowScrollBottleneckRects(ErrorString*, bool show);
109 virtual void getScriptExecutionStatus(ErrorString*, PageCommandHandler::Resu lt::Enum*); 109 virtual void getScriptExecutionStatus(ErrorString*, PageCommandHandler::Resu lt::Enum*);
110 virtual void setScriptExecutionDisabled(ErrorString*, bool); 110 virtual void setScriptExecutionDisabled(ErrorString*, bool);
111 virtual void setGeolocationOverride(ErrorString*, const double*, const doubl e*, const double*); 111 virtual void setGeolocationOverride(ErrorString*, const double*, const doubl e*, const double*);
112 virtual void clearGeolocationOverride(ErrorString*); 112 virtual void clearGeolocationOverride(ErrorString*);
113 virtual void setDeviceOrientationOverride(ErrorString*, double, double, doub le); 113 virtual void setDeviceOrientationOverride(ErrorString*, double, double, doub le);
114 virtual void clearDeviceOrientationOverride(ErrorString*); 114 virtual void clearDeviceOrientationOverride(ErrorString*);
115 virtual void setTouchEmulationEnabled(ErrorString*, bool); 115 virtual void setTouchEmulationEnabled(ErrorString*, bool);
116 virtual void setEmulatedMedia(ErrorString*, const String&); 116 virtual void setEmulatedMedia(ErrorString*, const String&);
117 virtual void canForceCompositingMode(ErrorString*, bool* result);
117 virtual void setForceCompositingMode(ErrorString*, bool force); 118 virtual void setForceCompositingMode(ErrorString*, bool force);
118 virtual void captureScreenshot(ErrorString*, const String* format, const int * quality, const int* maxWidth, const int* maxHeight, String* data, double* devi ceScaleFactor, double* pageScaleFactor, RefPtr<TypeBuilder::DOM::Rect>&); 119 virtual void captureScreenshot(ErrorString*, const String* format, const int * quality, const int* maxWidth, const int* maxHeight, String* data, double* devi ceScaleFactor, double* pageScaleFactor, RefPtr<TypeBuilder::DOM::Rect>&);
119 virtual void canScreencast(ErrorString*, bool*); 120 virtual void canScreencast(ErrorString*, bool*);
120 virtual void startScreencast(ErrorString*, const String* format, const int* quality, const int* maxWidth, const int* maxHeight); 121 virtual void startScreencast(ErrorString*, const String* format, const int* quality, const int* maxWidth, const int* maxHeight);
121 virtual void stopScreencast(ErrorString*); 122 virtual void stopScreencast(ErrorString*);
122 virtual void handleJavaScriptDialog(ErrorString*, bool accept, const String* promptText); 123 virtual void handleJavaScriptDialog(ErrorString*, bool accept, const String* promptText);
123 virtual void setShowViewportSizeOnResize(ErrorString*, bool show, const bool * showGrid); 124 virtual void setShowViewportSizeOnResize(ErrorString*, bool show, const bool * showGrid);
124 125
125 // Geolocation override helper. 126 // Geolocation override helper.
126 GeolocationPosition* overrideGeolocationPosition(GeolocationPosition*); 127 GeolocationPosition* overrideGeolocationPosition(GeolocationPosition*);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 RefPtr<GeolocationPosition> m_geolocationPosition; 213 RefPtr<GeolocationPosition> m_geolocationPosition;
213 RefPtr<GeolocationPosition> m_platformGeolocationPosition; 214 RefPtr<GeolocationPosition> m_platformGeolocationPosition;
214 RefPtr<DeviceOrientationData> m_deviceOrientation; 215 RefPtr<DeviceOrientationData> m_deviceOrientation;
215 }; 216 };
216 217
217 218
218 } // namespace WebCore 219 } // namespace WebCore
219 220
220 221
221 #endif // !defined(InspectorPagerAgent_h) 222 #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