| Index: ui/gfx/size_conversions.h
|
| diff --git a/ui/gfx/size_conversions.h b/ui/gfx/size_conversions.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..03197b30d561172d4439cb73b15f15ed4f0c3438
|
| --- /dev/null
|
| +++ b/ui/gfx/size_conversions.h
|
| @@ -0,0 +1,21 @@
|
| +// 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 UI_GFX_SIZE_CONVERSIONS_H_
|
| +#define UI_GFX_SIZE_CONVERSIONS_H_
|
| +
|
| +#include "ui/gfx/size.h"
|
| +#include "ui/gfx/size_f.h"
|
| +
|
| +namespace gfx {
|
| +
|
| +// Returns a Size with each component from the input SizeF floored.
|
| +UI_EXPORT Size ToFlooredSize(const SizeF& size);
|
| +
|
| +// Returns a Size with each component from the input SizeF ceiled.
|
| +UI_EXPORT Size ToCeiledSize(const SizeF& size);
|
| +
|
| +} // namespace gfx
|
| +
|
| +#endif // UI_GFX_RECT_CONVERSIONS_H_
|
|
|