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

Side by Side Diff: Source/core/inspector/InspectorClient.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: 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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 int numArgs, const char* const* argNames, const unsigned char* argTypes, const unsigned long long* argValues, 50 int numArgs, const char* const* argNames, const unsigned char* argTypes, const unsigned long long* argValues,
51 unsigned char flags, double timestamp); 51 unsigned char flags, double timestamp);
52 virtual void setTraceEventCallback(const String& categoryFilter, TraceEventC allback) { } 52 virtual void setTraceEventCallback(const String& categoryFilter, TraceEventC allback) { }
53 virtual void resetTraceEventCallback() { } 53 virtual void resetTraceEventCallback() { }
54 54
55 virtual void startGPUEventsRecording() { } 55 virtual void startGPUEventsRecording() { }
56 virtual void stopGPUEventsRecording() { } 56 virtual void stopGPUEventsRecording() { }
57 57
58 virtual void overrideDeviceMetrics(int /*width*/, int /*height*/, float /*de viceScaleFactor*/, bool /*emulateViewport*/, bool /*fitWindow*/) { } 58 virtual void overrideDeviceMetrics(int /*width*/, int /*height*/, float /*de viceScaleFactor*/, bool /*emulateViewport*/, bool /*fitWindow*/) { }
59 virtual void setTouchEventEmulationEnabled(bool) { } 59 virtual void setTouchEventEmulationEnabled(bool) { }
60 virtual bool hasTouchInputs() { return false; }
pfeldman 2014/04/18 16:23:15 This is super strange: why would you leave core/ g
dgozman 2014/04/18 17:26:27 It may be overriden, while we need the original va
pfeldman 2014/04/18 18:56:12 It still seems like it can all be done within Insp
dgozman 2014/04/21 11:46:11 Done.
60 61
61 virtual bool overridesShowPaintRects() { return false; } 62 virtual bool overridesShowPaintRects() { return false; }
62 virtual void setShowPaintRects(bool) { } 63 virtual void setShowPaintRects(bool) { }
63 virtual void setShowDebugBorders(bool) { } 64 virtual void setShowDebugBorders(bool) { }
64 virtual void setShowFPSCounter(bool) { } 65 virtual void setShowFPSCounter(bool) { }
65 virtual void setContinuousPaintingEnabled(bool) { } 66 virtual void setContinuousPaintingEnabled(bool) { }
66 virtual void setShowScrollBottleneckRects(bool) { } 67 virtual void setShowScrollBottleneckRects(bool) { }
67 68
68 virtual void requestPageScaleFactor(float scale, const IntPoint& origin) { } 69 virtual void requestPageScaleFactor(float scale, const IntPoint& origin) { }
69 virtual void getAllocatedObjects(HashSet<const void*>&) { } 70 virtual void getAllocatedObjects(HashSet<const void*>&) { }
70 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t >&) { } 71 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t >&) { }
71 72
72 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) { } 73 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) { }
73 virtual void dispatchMouseEvent(const PlatformMouseEvent&) { } 74 virtual void dispatchMouseEvent(const PlatformMouseEvent&) { }
74 75
75 protected: 76 protected:
76 virtual ~InspectorClient() { } 77 virtual ~InspectorClient() { }
77 }; 78 };
78 79
79 } // namespace WebCore 80 } // namespace WebCore
80 81
81 #endif // !defined(InspectorClient_h) 82 #endif // !defined(InspectorClient_h)
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorPageAgent.h » ('j') | Source/devtools/front_end/OverridesSupport.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698