blob: 98f19d6f0f7b557e0f1cc3a71ffc551330baf2a5 [file] [log] [blame]
// Copyright 2018 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 COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_RECTF_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_RECTF_H_
namespace autofill_assistant {
// A simple rectangle structure that uses float. Modelled on Android's RectF
// class.
struct RectF {
float left;
float top;
float right;
float bottom;
RectF();
RectF(float left, float top, float right, float bottom);
// Checks whether the rectangle is empty.
bool empty() const;
};
} // namespace autofill_assistant
#endif // COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_RECTF_H_