| Index: cc/output/selection_handle.h
|
| diff --git a/cc/output/selection_handle.h b/cc/output/selection_handle.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ec936f9058efe9f70a635e43b9995b8a0e21f4c0
|
| --- /dev/null
|
| +++ b/cc/output/selection_handle.h
|
| @@ -0,0 +1,35 @@
|
| +// Copyright (c) 2012 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 CC_OUTPUT_SELECTION_HANDLE_H_
|
| +#define CC_OUTPUT_SELECTION_HANDLE_H_
|
| +
|
| +#include "cc/base/cc_export.h"
|
| +#include "ui/gfx/geometry/rect_f.h"
|
| +
|
| +namespace cc {
|
| +
|
| +struct CC_EXPORT SelectionHandle {
|
| + enum Type { LEFT, RIGHT, CENTER, NONE, IGNORED, TYPE_LAST = IGNORED };
|
| +
|
| + SelectionHandle();
|
| + ~SelectionHandle();
|
| +
|
| + Type type;
|
| + gfx::RectF bounds;
|
| + bool visible;
|
| +};
|
| +
|
| +inline bool operator==(const SelectionHandle& lhs, const SelectionHandle& rhs) {
|
| + return lhs.type == rhs.type && lhs.visible == rhs.visible &&
|
| + lhs.bounds == rhs.bounds;
|
| +}
|
| +
|
| +inline bool operator!=(const SelectionHandle& lhs, const SelectionHandle& rhs) {
|
| + return !(lhs == rhs);
|
| +}
|
| +
|
| +} // namespace cc
|
| +
|
| +#endif // CC_OUTPUT_SELECTION_HANDLE_H_
|
|
|