Home | History | Annotate | Download | only in dom
      1 // Copyright 2014 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef DOMPointReadOnly_h
      6 #define DOMPointReadOnly_h
      7 
      8 #include "bindings/core/v8/ScriptWrappable.h"
      9 #include "platform/heap/Handle.h"
     10 
     11 namespace blink {
     12 
     13 class DOMPointReadOnly : public GarbageCollected<DOMPointReadOnly>, public ScriptWrappableBase {
     14 public:
     15     static DOMPointReadOnly* create(double x, double y, double z, double w);
     16 
     17     double x() const { return m_x; }
     18     double y() const { return m_y; }
     19     double z() const { return m_z; }
     20     double w() const { return m_w; }
     21 
     22     void trace(Visitor*) { }
     23 
     24 protected:
     25     DOMPointReadOnly(double x, double y, double z, double w);
     26 
     27     double m_x;
     28     double m_y;
     29     double m_z;
     30     double m_w;
     31 };
     32 
     33 } // namespace blink
     34 
     35 #endif
     36