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

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

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
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 30 matching lines...) Expand all
41 #include "Node.h" 41 #include "Node.h"
42 #include "Page.h" 42 #include "Page.h"
43 #include "RenderBoxModelObject.h" 43 #include "RenderBoxModelObject.h"
44 #include "RenderInline.h" 44 #include "RenderInline.h"
45 #include "RenderObject.h" 45 #include "RenderObject.h"
46 #include "ScriptController.h" 46 #include "ScriptController.h"
47 #include "ScriptSourceCode.h" 47 #include "ScriptSourceCode.h"
48 #include "ScriptValue.h" 48 #include "ScriptValue.h"
49 #include "Settings.h" 49 #include "Settings.h"
50 #include "StyledElement.h" 50 #include "StyledElement.h"
51 #include "WebCoreMemoryInstrumentation.h"
52 #include <wtf/text/StringBuilder.h> 51 #include <wtf/text/StringBuilder.h>
53 52
54 namespace WebCore { 53 namespace WebCore {
55 54
56 namespace { 55 namespace {
57 56
58 Path quadToPath(const FloatQuad& quad) 57 Path quadToPath(const FloatQuad& quad)
59 { 58 {
60 Path quadPath; 59 Path quadPath;
61 quadPath.moveTo(quad.p1()); 60 quadPath.moveTo(quad.p1());
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 } 481 }
483 482
484 void InspectorOverlay::evaluateInOverlay(const String& method, PassRefPtr<Inspec torValue> argument) 483 void InspectorOverlay::evaluateInOverlay(const String& method, PassRefPtr<Inspec torValue> argument)
485 { 484 {
486 RefPtr<InspectorArray> command = InspectorArray::create(); 485 RefPtr<InspectorArray> command = InspectorArray::create();
487 command->pushString(method); 486 command->pushString(method);
488 command->pushValue(argument); 487 command->pushValue(argument);
489 overlayPage()->mainFrame()->script()->evaluate(ScriptSourceCode(makeString(" dispatch(", command->toJSONString(), ")"))); 488 overlayPage()->mainFrame()->script()->evaluate(ScriptSourceCode(makeString(" dispatch(", command->toJSONString(), ")")));
490 } 489 }
491 490
492 void InspectorOverlay::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) con st
493 {
494 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::InspectorOv erlay);
495 info.addMember(m_page, "page");
496 info.addWeakPointer(m_client);
497 info.addMember(m_pausedInDebuggerMessage, "pausedInDebuggerMessage");
498 info.addMember(m_highlightNode, "highlightNode");
499 info.addMember(m_nodeHighlightConfig, "nodeHighlightConfig");
500 info.addMember(m_highlightQuad, "highlightQuad");
501 info.addMember(m_overlayPage, "overlayPage");
502 info.addMember(m_quadHighlightConfig, "quadHighlightConfig");
503 info.addMember(m_size, "size");
504 }
505
506 void InspectorOverlay::freePage() 491 void InspectorOverlay::freePage()
507 { 492 {
508 m_overlayPage.clear(); 493 m_overlayPage.clear();
509 } 494 }
510 495
511 } // namespace WebCore 496 } // namespace WebCore
512 497
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorOverlay.h ('k') | Source/core/inspector/InspectorProfilerAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698