Chromium Code Reviews| Index: Source/modules/performance/WorkerPerformance.h |
| diff --git a/Source/core/html/ime/Composition.h b/Source/modules/performance/WorkerPerformance.h |
| similarity index 76% |
| copy from Source/core/html/ime/Composition.h |
| copy to Source/modules/performance/WorkerPerformance.h |
| index 6562b5f75fd19cc8e80409327f7f8a5881bcf1df..d83ad6f1deeb0dffef01f5a12dea8488304ba672 100644 |
| --- a/Source/core/html/ime/Composition.h |
| +++ b/Source/modules/performance/WorkerPerformance.h |
| @@ -28,34 +28,33 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#ifndef Composition_h |
| -#define Composition_h |
| +#ifndef WorkerPerformance_h |
| +#define WorkerPerformance_h |
| -#include "bindings/v8/ScriptWrappable.h" |
| #include "wtf/PassRefPtr.h" |
| #include "wtf/RefCounted.h" |
| #include "wtf/RefPtr.h" |
| namespace WebCore { |
| -class Node; |
| -class Range; |
| +class WorkerContext; |
| -class Composition : public RefCounted<Composition>, public ScriptWrappable { |
| +class WorkerPerformance : public RefCounted<WorkerPerformance> { |
| public: |
| - static PassRefPtr<Composition> create(Node*, Range*); |
| - ~Composition(); |
| + static PassRefPtr<WorkerPerformance> create(WorkerContext* context) { return adoptRef(new WorkerPerformance(context)); } |
| + ~WorkerPerformance(); |
| - Node* text() const { return m_text.get(); } |
| - Range* caret() const { return m_caret.get(); } |
| + using RefCounted<WorkerPerformance>::ref; |
| + using RefCounted<WorkerPerformance>::deref; |
|
abarth-chromium
2013/06/12 23:11:41
These aren't needed.
James Simonsen
2013/06/13 00:01:36
Done. Thanks.
|
| + |
| + double now() const; |
| private: |
| - Composition(Node*, Range*); |
| + explicit WorkerPerformance(WorkerContext*); |
| - RefPtr<Node> m_text; |
| - RefPtr<Range> m_caret; |
| + WorkerContext* m_context; |
|
abarth-chromium
2013/06/12 23:11:41
Rather than holding a raw m_context pointer, this
James Simonsen
2013/06/13 00:01:36
Done.
|
| }; |
| -} // namespace WebCore |
| +} |
| -#endif // Composition_h |
| +#endif // WorkerPerformance_h |