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

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

Issue 355393004: [DevTools] Rename "emulateViewport" to "mobile". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: another rebase Created 6 years, 5 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 | Annotate | Revision Log
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 virtual void enableTracing(const String& categoryFilter) { } 54 virtual void enableTracing(const String& categoryFilter) { }
55 virtual void disableTracing() { } 55 virtual void disableTracing() { }
56 56
57 virtual void startGPUEventsRecording() { } 57 virtual void startGPUEventsRecording() { }
58 virtual void stopGPUEventsRecording() { } 58 virtual void stopGPUEventsRecording() { }
59 59
60 virtual void setDeviceMetricsOverride(int /*width*/, int /*height*/, float / *deviceScaleFactor*/, bool /*emulateViewport*/, bool /*fitWindow*/, float /* sca le */, float /* offsetX */, float /* offsetY */) { } 60 virtual void setDeviceMetricsOverride(int /*width*/, int /*height*/, float / *deviceScaleFactor*/, bool /*mobile*/, bool /*fitWindow*/, float /* scale */, fl oat /* offsetX */, float /* offsetY */) { }
61 virtual void clearDeviceMetricsOverride() { } 61 virtual void clearDeviceMetricsOverride() { }
62 virtual void setTouchEventEmulationEnabled(bool) { } 62 virtual void setTouchEventEmulationEnabled(bool) { }
63 63
64 virtual bool overridesShowPaintRects() { return false; } 64 virtual bool overridesShowPaintRects() { return false; }
65 virtual void setShowPaintRects(bool) { } 65 virtual void setShowPaintRects(bool) { }
66 virtual void setShowDebugBorders(bool) { } 66 virtual void setShowDebugBorders(bool) { }
67 virtual void setShowFPSCounter(bool) { } 67 virtual void setShowFPSCounter(bool) { }
68 virtual void setContinuousPaintingEnabled(bool) { } 68 virtual void setContinuousPaintingEnabled(bool) { }
69 virtual void setShowScrollBottleneckRects(bool) { } 69 virtual void setShowScrollBottleneckRects(bool) { }
70 70
71 virtual void resetScrollAndPageScaleFactor() { } 71 virtual void resetScrollAndPageScaleFactor() { }
72 virtual void getAllocatedObjects(HashSet<const void*>&) { } 72 virtual void getAllocatedObjects(HashSet<const void*>&) { }
73 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t >&) { } 73 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t >&) { }
74 74
75 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) { } 75 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) { }
76 virtual void dispatchMouseEvent(const PlatformMouseEvent&) { } 76 virtual void dispatchMouseEvent(const PlatformMouseEvent&) { }
77 77
78 protected: 78 protected:
79 virtual ~InspectorClient() { } 79 virtual ~InspectorClient() { }
80 }; 80 };
81 81
82 } // namespace WebCore 82 } // namespace WebCore
83 83
84 #endif // !defined(InspectorClient_h) 84 #endif // !defined(InspectorClient_h)
OLDNEW
« no previous file with comments | « LayoutTests/inspector/text-autosizing-override.html ('k') | Source/core/inspector/InspectorPageAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698