OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_NATIVE_APP_WINDOW_DRAGGABLE_REGION_H_ |
| 6 #define COMPONENTS_NATIVE_APP_WINDOW_DRAGGABLE_REGION_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "components/native_app_window/native_app_window_export.h" |
| 11 #include "ui/gfx/geometry/rect.h" |
| 12 |
| 13 class SkRegion; |
| 14 |
| 15 namespace native_app_window { |
| 16 |
| 17 struct NATIVE_APP_WINDOW_EXPORT DraggableRegion { |
| 18 bool draggable; |
| 19 gfx::Rect bounds; |
| 20 |
| 21 DraggableRegion(); |
| 22 }; |
| 23 |
| 24 // Convert draggable regions in raw format to SkRegion format. Caller is |
| 25 // responsible for deleting the returned SkRegion instance. |
| 26 NATIVE_APP_WINDOW_EXPORT SkRegion* RawDraggableRegionsToSkRegion( |
| 27 const std::vector<DraggableRegion>& regions); |
| 28 |
| 29 } // namespace native_app_window |
| 30 |
| 31 #endif // COMPONENTS_NATIVE_APP_WINDOW_DRAGGABLE_REGION_H_ |
OLD | NEW |