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

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

Issue 243233002: [DevTools] Disable touch emulation on devices with touch input. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Staying inside core Created 6 years, 8 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual void enable(ErrorString*) OVERRIDE; 95 virtual void enable(ErrorString*) OVERRIDE;
96 virtual void disable(ErrorString*) OVERRIDE; 96 virtual void disable(ErrorString*) OVERRIDE;
97 virtual void addScriptToEvaluateOnLoad(ErrorString*, const String& source, S tring* result) OVERRIDE; 97 virtual void addScriptToEvaluateOnLoad(ErrorString*, const String& source, S tring* result) OVERRIDE;
98 virtual void removeScriptToEvaluateOnLoad(ErrorString*, const String& identi fier) OVERRIDE; 98 virtual void removeScriptToEvaluateOnLoad(ErrorString*, const String& identi fier) OVERRIDE;
99 virtual void reload(ErrorString*, const bool* optionalIgnoreCache, const Str ing* optionalScriptToEvaluateOnLoad, const String* optionalScriptPreprocessor) O VERRIDE; 99 virtual void reload(ErrorString*, const bool* optionalIgnoreCache, const Str ing* optionalScriptToEvaluateOnLoad, const String* optionalScriptPreprocessor) O VERRIDE;
100 virtual void navigate(ErrorString*, const String& url) OVERRIDE; 100 virtual void navigate(ErrorString*, const String& url) OVERRIDE;
101 virtual void getCookies(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder: :Page::Cookie> >& cookies) OVERRIDE; 101 virtual void getCookies(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder: :Page::Cookie> >& cookies) OVERRIDE;
102 virtual void deleteCookie(ErrorString*, const String& cookieName, const Stri ng& url) OVERRIDE; 102 virtual void deleteCookie(ErrorString*, const String& cookieName, const Stri ng& url) OVERRIDE;
103 virtual void getResourceTree(ErrorString*, RefPtr<TypeBuilder::Page::FrameRe sourceTree>&) OVERRIDE; 103 virtual void getResourceTree(ErrorString*, RefPtr<TypeBuilder::Page::FrameRe sourceTree>&) OVERRIDE;
104 virtual void getResourceContent(ErrorString*, const String& frameId, const S tring& url, String* content, bool* base64Encoded) OVERRIDE; 104 virtual void getResourceContent(ErrorString*, const String& frameId, const S tring& url, String* content, bool* base64Encoded) OVERRIDE;
105 virtual void hasTouchInputs(ErrorString*, bool* result) OVERRIDE;
105 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; 106 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;
106 virtual void setDocumentContent(ErrorString*, const String& frameId, const S tring& html) OVERRIDE; 107 virtual void setDocumentContent(ErrorString*, const String& frameId, const S tring& html) OVERRIDE;
107 virtual void setDeviceMetricsOverride(ErrorString*, int width, int height, d ouble deviceScaleFactor, bool emulateViewport, bool fitWindow, const bool* optio nalTextAutosizing, const double* optionalFontScaleFactor) OVERRIDE; 108 virtual void setDeviceMetricsOverride(ErrorString*, int width, int height, d ouble deviceScaleFactor, bool emulateViewport, bool fitWindow, const bool* optio nalTextAutosizing, const double* optionalFontScaleFactor) OVERRIDE;
108 virtual void setShowPaintRects(ErrorString*, bool show) OVERRIDE; 109 virtual void setShowPaintRects(ErrorString*, bool show) OVERRIDE;
109 virtual void setShowDebugBorders(ErrorString*, bool show) OVERRIDE; 110 virtual void setShowDebugBorders(ErrorString*, bool show) OVERRIDE;
110 virtual void setShowFPSCounter(ErrorString*, bool show) OVERRIDE; 111 virtual void setShowFPSCounter(ErrorString*, bool show) OVERRIDE;
111 virtual void setContinuousPaintingEnabled(ErrorString*, bool enabled) OVERRI DE; 112 virtual void setContinuousPaintingEnabled(ErrorString*, bool enabled) OVERRI DE;
112 virtual void setShowScrollBottleneckRects(ErrorString*, bool show) OVERRIDE; 113 virtual void setShowScrollBottleneckRects(ErrorString*, bool show) OVERRIDE;
113 virtual void getScriptExecutionStatus(ErrorString*, PageCommandHandler::Resu lt::Enum*) OVERRIDE; 114 virtual void getScriptExecutionStatus(ErrorString*, PageCommandHandler::Resu lt::Enum*) OVERRIDE;
114 virtual void setScriptExecutionDisabled(ErrorString*, bool) OVERRIDE; 115 virtual void setScriptExecutionDisabled(ErrorString*, bool) OVERRIDE;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 String m_scriptToEvaluateOnLoadOnce; 185 String m_scriptToEvaluateOnLoadOnce;
185 String m_pendingScriptPreprocessor; 186 String m_pendingScriptPreprocessor;
186 String m_scriptPreprocessorSource; 187 String m_scriptPreprocessorSource;
187 HashMap<LocalFrame*, String> m_frameToIdentifier; 188 HashMap<LocalFrame*, String> m_frameToIdentifier;
188 HashMap<String, LocalFrame*> m_identifierToFrame; 189 HashMap<String, LocalFrame*> m_identifierToFrame;
189 HashMap<DocumentLoader*, String> m_loaderToIdentifier; 190 HashMap<DocumentLoader*, String> m_loaderToIdentifier;
190 bool m_enabled; 191 bool m_enabled;
191 bool m_ignoreScriptsEnabledNotification; 192 bool m_ignoreScriptsEnabledNotification;
192 bool m_deviceMetricsOverridden; 193 bool m_deviceMetricsOverridden;
193 bool m_emulateViewportEnabled; 194 bool m_emulateViewportEnabled;
195 bool m_embedderDeviceSupportsTouch;
194 bool m_embedderTextAutosizingEnabled; 196 bool m_embedderTextAutosizingEnabled;
195 double m_embedderFontScaleFactor; 197 double m_embedderFontScaleFactor;
196 }; 198 };
197 199
198 200
199 } // namespace WebCore 201 } // namespace WebCore
200 202
201 203
202 #endif // !defined(InspectorPagerAgent_h) 204 #endif // !defined(InspectorPagerAgent_h)
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorPageAgent.cpp » ('j') | Source/web/WebDevToolsAgentImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698