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

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

Issue 638553002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed Nits Created 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 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 * 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 namespace blink { 43 namespace blink {
44 44
45 class GraphicsContextSnapshot; 45 class GraphicsContextSnapshot;
46 class InstrumentingAgents; 46 class InstrumentingAgents;
47 class Page; 47 class Page;
48 class RenderLayerCompositor; 48 class RenderLayerCompositor;
49 49
50 typedef String ErrorString; 50 typedef String ErrorString;
51 51
52 class InspectorLayerTreeAgent FINAL : public InspectorBaseAgent<InspectorLayerTr eeAgent>, public InspectorBackendDispatcher::LayerTreeCommandHandler { 52 class InspectorLayerTreeAgent final : public InspectorBaseAgent<InspectorLayerTr eeAgent>, public InspectorBackendDispatcher::LayerTreeCommandHandler {
53 public: 53 public:
54 static PassOwnPtrWillBeRawPtr<InspectorLayerTreeAgent> create(Page* page) 54 static PassOwnPtrWillBeRawPtr<InspectorLayerTreeAgent> create(Page* page)
55 { 55 {
56 return adoptPtrWillBeNoop(new InspectorLayerTreeAgent(page)); 56 return adoptPtrWillBeNoop(new InspectorLayerTreeAgent(page));
57 } 57 }
58 virtual ~InspectorLayerTreeAgent(); 58 virtual ~InspectorLayerTreeAgent();
59 virtual void trace(Visitor*) OVERRIDE; 59 virtual void trace(Visitor*) override;
60 60
61 virtual void setFrontend(InspectorFrontend*) OVERRIDE; 61 virtual void setFrontend(InspectorFrontend*) override;
62 virtual void clearFrontend() OVERRIDE; 62 virtual void clearFrontend() override;
63 virtual void restore() OVERRIDE; 63 virtual void restore() override;
64 64
65 // Called from InspectorController 65 // Called from InspectorController
66 void willAddPageOverlay(const GraphicsLayer*); 66 void willAddPageOverlay(const GraphicsLayer*);
67 void didRemovePageOverlay(const GraphicsLayer*); 67 void didRemovePageOverlay(const GraphicsLayer*);
68 68
69 // Called from InspectorInstrumentation 69 // Called from InspectorInstrumentation
70 void layerTreeDidChange(); 70 void layerTreeDidChange();
71 void didPaint(RenderObject*, const GraphicsLayer*, GraphicsContext*, const L ayoutRect&); 71 void didPaint(RenderObject*, const GraphicsLayer*, GraphicsContext*, const L ayoutRect&);
72 72
73 // Called from the front-end. 73 // Called from the front-end.
74 virtual void enable(ErrorString*) OVERRIDE; 74 virtual void enable(ErrorString*) override;
75 virtual void disable(ErrorString*) OVERRIDE; 75 virtual void disable(ErrorString*) override;
76 virtual void compositingReasons(ErrorString*, const String& layerId, RefPtr< TypeBuilder::Array<String> >&) OVERRIDE; 76 virtual void compositingReasons(ErrorString*, const String& layerId, RefPtr< TypeBuilder::Array<String> >&) override;
77 virtual void makeSnapshot(ErrorString*, const String& layerId, String* snaps hotId) OVERRIDE; 77 virtual void makeSnapshot(ErrorString*, const String& layerId, String* snaps hotId) override;
78 virtual void loadSnapshot(ErrorString*, const String& data, String* snapshot Id) OVERRIDE; 78 virtual void loadSnapshot(ErrorString*, const String& data, String* snapshot Id) override;
79 virtual void releaseSnapshot(ErrorString*, const String& snapshotId) OVERRID E; 79 virtual void releaseSnapshot(ErrorString*, const String& snapshotId) overrid e;
80 virtual void replaySnapshot(ErrorString*, const String& snapshotId, const in t* fromStep, const int* toStep, const double* scale, String* dataURL) OVERRIDE; 80 virtual void replaySnapshot(ErrorString*, const String& snapshotId, const in t* fromStep, const int* toStep, const double* scale, String* dataURL) override;
81 virtual void profileSnapshot(ErrorString*, const String& snapshotId, const i nt* minRepeatCount, const double* minDuration, RefPtr<TypeBuilder::Array<TypeBui lder::Array<double> > >&) OVERRIDE; 81 virtual void profileSnapshot(ErrorString*, const String& snapshotId, const i nt* minRepeatCount, const double* minDuration, RefPtr<TypeBuilder::Array<TypeBui lder::Array<double> > >&) override;
82 virtual void snapshotCommandLog(ErrorString*, const String& snapshotId, RefP tr<TypeBuilder::Array<JSONObject> >&) OVERRIDE; 82 virtual void snapshotCommandLog(ErrorString*, const String& snapshotId, RefP tr<TypeBuilder::Array<JSONObject> >&) override;
83 83
84 // Called by other agents. 84 // Called by other agents.
85 PassRefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> > buildLayerTre e(); 85 PassRefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> > buildLayerTre e();
86 86
87 private: 87 private:
88 static unsigned s_lastSnapshotId; 88 static unsigned s_lastSnapshotId;
89 89
90 explicit InspectorLayerTreeAgent(Page*); 90 explicit InspectorLayerTreeAgent(Page*);
91 91
92 RenderLayerCompositor* renderLayerCompositor(); 92 RenderLayerCompositor* renderLayerCompositor();
(...skipping 10 matching lines...) Expand all
103 Vector<int, 2> m_pageOverlayLayerIds; 103 Vector<int, 2> m_pageOverlayLayerIds;
104 104
105 typedef HashMap<String, RefPtr<GraphicsContextSnapshot> > SnapshotById; 105 typedef HashMap<String, RefPtr<GraphicsContextSnapshot> > SnapshotById;
106 SnapshotById m_snapshotById; 106 SnapshotById m_snapshotById;
107 }; 107 };
108 108
109 } // namespace blink 109 } // namespace blink
110 110
111 111
112 #endif // !defined(InspectorLayerTreeAgent_h) 112 #endif // !defined(InspectorLayerTreeAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorInspectorAgent.h ('k') | Source/core/inspector/InspectorMemoryAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698