| Index: components/native_app_window/draggable_region.h
|
| diff --git a/components/native_app_window/draggable_region.h b/components/native_app_window/draggable_region.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fe28b463e1ca6cb4c00729be0ebe2b8da82220b4
|
| --- /dev/null
|
| +++ b/components/native_app_window/draggable_region.h
|
| @@ -0,0 +1,31 @@
|
| +// 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 COMPONENTS_NATIVE_APP_WINDOW_DRAGGABLE_REGION_H_
|
| +#define COMPONENTS_NATIVE_APP_WINDOW_DRAGGABLE_REGION_H_
|
| +
|
| +#include <vector>
|
| +
|
| +#include "components/native_app_window/native_app_window_export.h"
|
| +#include "ui/gfx/geometry/rect.h"
|
| +
|
| +class SkRegion;
|
| +
|
| +namespace native_app_window {
|
| +
|
| +struct NATIVE_APP_WINDOW_EXPORT DraggableRegion {
|
| + bool draggable;
|
| + gfx::Rect bounds;
|
| +
|
| + DraggableRegion();
|
| +};
|
| +
|
| +// Convert draggable regions in raw format to SkRegion format. Caller is
|
| +// responsible for deleting the returned SkRegion instance.
|
| +NATIVE_APP_WINDOW_EXPORT SkRegion* RawDraggableRegionsToSkRegion(
|
| + const std::vector<DraggableRegion>& regions);
|
| +
|
| +} // namespace native_app_window
|
| +
|
| +#endif // COMPONENTS_NATIVE_APP_WINDOW_DRAGGABLE_REGION_H_
|
|
|