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

Side by Side Diff: Source/core/inspector/InspectorFrontendHost.cpp

Issue 104523002: [DevTools] Add power profiler and power overview in timeline panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
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 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 message->setArray("params", params); 215 message->setArray("params", params);
216 params->pushString(domFileSystem->rootURL().string()); 216 params->pushString(domFileSystem->rootURL().string());
217 sendMessageToEmbedder(message->toJSONString()); 217 sendMessageToEmbedder(message->toJSONString());
218 } 218 }
219 219
220 bool InspectorFrontendHost::isUnderTest() 220 bool InspectorFrontendHost::isUnderTest()
221 { 221 {
222 return m_client && m_client->isUnderTest(); 222 return m_client && m_client->isUnderTest();
223 } 223 }
224 224
225 void InspectorFrontendHost::checkPowerProfileSupportedStatus()
226 {
227 if (m_client)
228 m_client->checkPowerProfileSupportedStatus();
229 }
230
231 void InspectorFrontendHost::startPowerProfile()
232 {
233 if (m_client)
234 m_client->startPowerProfile();
235 }
236
237 void InspectorFrontendHost::stopPowerProfile()
238 {
239 if (m_client)
240 m_client->stopPowerProfile();
241 }
242
243 void InspectorFrontendHost::setPowerProfileResolution(unsigned resolution)
244 {
245 if (m_client)
246 m_client->setPowerProfileResolution(resolution);
247 }
248
225 } // namespace WebCore 249 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698