OLD | NEW |
1 // Copyright 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 |
| 5 #ifndef CC_STUBS_FLOATRECT_H_ |
| 6 #define CC_STUBS_FLOATRECT_H_ |
| 7 |
| 8 #include "FloatPoint.h" |
| 9 #include "FloatSize.h" |
| 10 #include "IntRect.h" |
| 11 #if INSIDE_WEBKIT_BUILD |
| 12 #include "Source/WebCore/platform/graphics/FloatRect.h" |
| 13 #else |
| 14 #include "third_party/WebKit/Source/WebCore/platform/graphics/FloatRect.h" |
| 15 #endif |
| 16 |
| 17 namespace cc { |
| 18 |
| 19 class FloatRect : public WebCore::FloatRect { |
| 20 public: |
| 21 FloatRect() { } |
| 22 |
| 23 FloatRect(const FloatPoint& location, const FloatSize& size) |
| 24 : WebCore::FloatRect(location, size) |
| 25 { |
| 26 } |
| 27 |
| 28 FloatRect(const IntPoint& location, const IntSize& size) |
| 29 : WebCore::FloatRect(location, size) |
| 30 { |
| 31 } |
| 32 |
| 33 FloatRect(float x, float y, float width, float height) |
| 34 : WebCore::FloatRect(x, y, width, height) |
| 35 { |
| 36 } |
| 37 |
| 38 FloatRect(const IntRect& rect) |
| 39 : WebCore::FloatRect(rect) |
| 40 { |
| 41 } |
| 42 |
| 43 FloatRect(const WebCore::IntRect& rect) |
| 44 : WebCore::FloatRect(rect) |
| 45 { |
| 46 } |
| 47 |
| 48 FloatRect(const WebCore::FloatRect& rect) |
| 49 :WebCore::FloatRect(rect) |
| 50 { |
| 51 } |
| 52 }; |
| 53 |
| 54 } |
| 55 |
| 56 #endif |
OLD | NEW |