Adam Barth 4cab94e949 Invert the relationship between lib/ui and sky/engine (#2920)
Now lib/ui depends on sky/engine rather than the reverse.
2016-08-12 16:12:07 -07:00

27 lines
693 B
C++

// Copyright 2016 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 SKY_ENGINE_PLATFORM_TEXT_TEXTBOX_H_
#define SKY_ENGINE_PLATFORM_TEXT_TEXTBOX_H_
#include "flutter/sky/engine/platform/text/TextDirection.h"
#include "third_party/skia/include/core/SkRect.h"
namespace blink {
class TextBox {
public:
TextBox() : is_null(true) {}
TextBox(SkRect r, TextDirection direction)
: sk_rect(std::move(r)), direction(direction), is_null(false) {}
SkRect sk_rect;
TextDirection direction;
bool is_null;
};
} // namespace blink
#endif // SKY_ENGINE_PLATFORM_TEXT_TEXTBOX_H_