| 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 CC_STUBS_INTRECT_H_ | 5 #ifndef CC_STUBS_INTRECT_H_ |
| 6 #define CC_STUBS_INTRECT_H_ | 6 #define CC_STUBS_INTRECT_H_ |
| 7 | 7 |
| 8 #include "IntPoint.h" | 8 #include "IntPoint.h" |
| 9 #include "IntSize.h" | 9 #include "IntSize.h" |
| 10 #if INSIDE_WEBKIT_BUILD | 10 #if INSIDE_WEBKIT_BUILD |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 } | 41 } |
| 42 | 42 |
| 43 explicit IntRect(gfx::Rect rect) | 43 explicit IntRect(gfx::Rect rect) |
| 44 : WebCore::IntRect(rect.x(), rect.y(), rect.width(), rect.height()) | 44 : WebCore::IntRect(rect.x(), rect.y(), rect.width(), rect.height()) |
| 45 { | 45 { |
| 46 } | 46 } |
| 47 | 47 |
| 48 operator gfx::Rect() const { return gfx::Rect(x(), y(), width(), height());
} | 48 operator gfx::Rect() const { return gfx::Rect(x(), y(), width(), height());
} |
| 49 | 49 |
| 50 IntPoint location() const { return WebCore::IntRect::location(); } |
| 51 IntSize size() const { return WebCore::IntRect::size(); } |
| 52 |
| 50 private: | 53 private: |
| 51 #if defined(OS_MACOSX) | 54 #if defined(OS_MACOSX) |
| 52 operator CGRect() const; | 55 operator CGRect() const; |
| 53 #endif | 56 #endif |
| 54 }; | 57 }; |
| 55 | 58 |
| 56 } | 59 } |
| 57 | 60 |
| 58 #endif | 61 #endif |
| OLD | NEW |