| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_COMMON_EXTENSIONS_DRAGGABLE_REGION_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_DRAGGABLE_REGION_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_DRAGGABLE_REGION_H_ | 6 #define CHROME_COMMON_EXTENSIONS_DRAGGABLE_REGION_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/rect.h" | 8 #include "ui/gfx/rect.h" |
| 9 | 9 |
| 10 namespace extensions { | 10 namespace extensions { |
| 11 | 11 |
| 12 struct DraggableRegion { | 12 struct DraggableRegion { |
| 13 bool draggable; | 13 bool draggable; |
| 14 gfx::Rect bounds; | 14 gfx::Rect bounds; |
| 15 | 15 |
| 16 // TODO(jianli): to be removed after WebKit patch that changes the draggable | |
| 17 // region syntax is landed. | |
| 18 std::string label; | |
| 19 gfx::Rect clip; | |
| 20 | |
| 21 DraggableRegion(); | 16 DraggableRegion(); |
| 22 }; | 17 }; |
| 23 | 18 |
| 24 } // namespace extensions | 19 } // namespace extensions |
| 25 | 20 |
| 26 #endif // CHROME_COMMON_EXTENSIONS_DRAGGABLE_REGION_H_ | 21 #endif // CHROME_COMMON_EXTENSIONS_DRAGGABLE_REGION_H_ |
| OLD | NEW |