OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2005 Nokia. All rights reserved. | 3 * Copyright (C) 2005 Nokia. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 #ifdef __OBJC__ | 37 #ifdef __OBJC__ |
38 #import <Foundation/Foundation.h> | 38 #import <Foundation/Foundation.h> |
39 #endif | 39 #endif |
40 #endif | 40 #endif |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 class LayoutRect; | 44 class LayoutRect; |
45 class IntRect; | 45 class IntRect; |
46 class IntPoint; | |
47 | 46 |
48 class PLATFORM_EXPORT FloatRect { | 47 class PLATFORM_EXPORT FloatRect { |
49 public: | 48 public: |
50 enum ContainsMode { | 49 enum ContainsMode { |
51 InsideOrOnStroke, | 50 InsideOrOnStroke, |
52 InsideButNotOnStroke | 51 InsideButNotOnStroke |
53 }; | 52 }; |
54 | 53 |
55 FloatRect() { } | 54 FloatRect() { } |
56 FloatRect(const FloatPoint& location, const FloatSize& size) | 55 FloatRect(const FloatPoint& location, const FloatSize& size) |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 PLATFORM_EXPORT IntRect enclosedIntRect(const FloatRect&); | 231 PLATFORM_EXPORT IntRect enclosedIntRect(const FloatRect&); |
233 | 232 |
234 PLATFORM_EXPORT IntRect roundedIntRect(const FloatRect&); | 233 PLATFORM_EXPORT IntRect roundedIntRect(const FloatRect&); |
235 | 234 |
236 // Map supplied rect from srcRect to an equivalent rect in destRect. | 235 // Map supplied rect from srcRect to an equivalent rect in destRect. |
237 PLATFORM_EXPORT FloatRect mapRect(const FloatRect&, const FloatRect& srcRect, co
nst FloatRect& destRect); | 236 PLATFORM_EXPORT FloatRect mapRect(const FloatRect&, const FloatRect& srcRect, co
nst FloatRect& destRect); |
238 | 237 |
239 } | 238 } |
240 | 239 |
241 #endif | 240 #endif |
OLD | NEW |