flutter_flutter/engine/core/editing/PositionWithAffinity.h
Elliott Sprehn 42d362ff6b Remove tons of OILPAN.
This removes ::trace, traceAfterDispatch and finalizeGarbageCollectedObject.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/723253004
2014-11-13 16:56:13 -08:00

31 lines
744 B
C++

// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file./*
#ifndef PositionWithAffinity_h
#define PositionWithAffinity_h
#include "core/dom/Position.h"
#include "core/editing/TextAffinity.h"
namespace blink {
class PositionWithAffinity {
DISALLOW_ALLOCATION();
public:
PositionWithAffinity(const Position&, EAffinity = DOWNSTREAM);
PositionWithAffinity();
~PositionWithAffinity();
EAffinity affinity() const { return m_affinity; }
const Position& position() const { return m_position; }
private:
Position m_position;
EAffinity m_affinity;
};
} // namespace blink
#endif // PositionWithAffinity_h