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

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

Issue 23187005: [DevTools] Use device metrics emulation implemented in content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Another rebase Created 7 years, 2 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 virtual void clearBrowserCache() { } 46 virtual void clearBrowserCache() { }
47 virtual void clearBrowserCookies() { } 47 virtual void clearBrowserCookies() { }
48 48
49 typedef void (*TraceEventCallback)(char phase, const unsigned char*, const c har* name, unsigned long long id, 49 typedef void (*TraceEventCallback)(char phase, const unsigned char*, const c har* name, unsigned long long id,
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); 51 unsigned char flags);
52 virtual void setTraceEventCallback(TraceEventCallback) { } 52 virtual void setTraceEventCallback(TraceEventCallback) { }
53 53
54 virtual void overrideDeviceMetrics(int /*width*/, int /*height*/, float /*fo ntScaleFactor*/, bool /*fitWindow*/) { } 54 virtual void overrideDeviceMetrics(int /*width*/, int /*height*/, float /*fo ntScaleFactor*/, bool /*fitWindow*/) { }
55 virtual void autoZoomPageToFitWidth() { }
56 55
57 virtual bool overridesShowPaintRects() { return false; } 56 virtual bool overridesShowPaintRects() { return false; }
58 virtual void setShowPaintRects(bool) { } 57 virtual void setShowPaintRects(bool) { }
59 virtual void setShowDebugBorders(bool) { } 58 virtual void setShowDebugBorders(bool) { }
60 virtual void setShowFPSCounter(bool) { } 59 virtual void setShowFPSCounter(bool) { }
61 virtual void setContinuousPaintingEnabled(bool) { } 60 virtual void setContinuousPaintingEnabled(bool) { }
62 virtual void setShowScrollBottleneckRects(bool) { } 61 virtual void setShowScrollBottleneckRects(bool) { }
63 62
64 virtual void getAllocatedObjects(HashSet<const void*>&) { } 63 virtual void getAllocatedObjects(HashSet<const void*>&) { }
65 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t >&) { } 64 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t >&) { }
66 65
67 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) { } 66 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) { }
68 virtual void dispatchMouseEvent(const PlatformMouseEvent&) { } 67 virtual void dispatchMouseEvent(const PlatformMouseEvent&) { }
69 68
70 static bool doDispatchMessageOnFrontendPage(Page* frontendPage, const String & message); 69 static bool doDispatchMessageOnFrontendPage(Page* frontendPage, const String & message);
71 70
72 protected: 71 protected:
73 virtual ~InspectorClient() { } 72 virtual ~InspectorClient() { }
74 }; 73 };
75 74
76 } // namespace WebCore 75 } // namespace WebCore
77 76
78 #endif // !defined(InspectorClient_h) 77 #endif // !defined(InspectorClient_h)
OLDNEW
« no previous file with comments | « Source/core/css/MediaQueryEvaluator.cpp ('k') | Source/core/inspector/InspectorInstrumentation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698