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

Side by Side Diff: public/web/WebDevToolsAgent.h

Issue 23187005: [DevTools] Use device metrics emulation implemented in content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Created 7 years, 3 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 virtual void inspectElementAt(const WebPoint&) = 0; 68 virtual void inspectElementAt(const WebPoint&) = 0;
69 virtual void setProcessId(long) = 0; 69 virtual void setProcessId(long) = 0;
70 virtual void setLayerTreeId(int) = 0; 70 virtual void setLayerTreeId(int) = 0;
71 71
72 virtual void didBeginFrame() = 0; 72 virtual void didBeginFrame() = 0;
73 virtual void didCancelFrame() = 0; 73 virtual void didCancelFrame() = 0;
74 virtual void willComposite() = 0; 74 virtual void willComposite() = 0;
75 virtual void didComposite() = 0; 75 virtual void didComposite() = 0;
76 76
77 virtual void setDeviceEmulationScales(bool enabled, float deviceScaleFactor, float rootLayerScale) = 0;
78
77 // Exposed for TestRunner. 79 // Exposed for TestRunner.
78 virtual void evaluateInWebInspector(long callId, const WebString& script) = 0; 80 virtual void evaluateInWebInspector(long callId, const WebString& script) = 0;
79 81
80 class MessageDescriptor { 82 class MessageDescriptor {
81 public: 83 public:
82 virtual ~MessageDescriptor() { } 84 virtual ~MessageDescriptor() { }
83 virtual WebDevToolsAgent* agent() = 0; 85 virtual WebDevToolsAgent* agent() = 0;
84 virtual WebString message() = 0; 86 virtual WebString message() = 0;
85 }; 87 };
86 // Asynchronously request debugger to pause immediately and run the command. 88 // Asynchronously request debugger to pause immediately and run the command.
87 WEBKIT_EXPORT static void interruptAndDispatch(MessageDescriptor*); 89 WEBKIT_EXPORT static void interruptAndDispatch(MessageDescriptor*);
88 WEBKIT_EXPORT static bool shouldInterruptForMessage(const WebString&); 90 WEBKIT_EXPORT static bool shouldInterruptForMessage(const WebString&);
89 WEBKIT_EXPORT static void processPendingMessages(); 91 WEBKIT_EXPORT static void processPendingMessages();
90 92
91 }; 93 };
92 94
93 } // namespace WebKit 95 } // namespace WebKit
94 96
95 #endif 97 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698