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_INTSIZE_H_ |
| 6 #define CC_STUBS_INTSIZE_H_ |
| 7 |
| 8 #if INSIDE_WEBKIT_BUILD |
| 9 #include "Source/WebCore/platform/graphics/IntSize.h" |
| 10 #else |
| 11 #include "third_party/WebKit/Source/WebCore/platform/graphics/IntSize.h" |
| 12 #endif |
| 13 |
| 14 namespace cc { |
| 15 |
| 16 class IntSize : public WebCore::IntSize { |
| 17 public: |
| 18 IntSize() { } |
| 19 |
| 20 IntSize(int width, int height) |
| 21 : WebCore::IntSize(width, height) |
| 22 { |
| 23 } |
| 24 |
| 25 IntSize(WebCore::IntSize size) |
| 26 : WebCore::IntSize(size.width(), size.height()) |
| 27 { |
| 28 |
| 29 } |
| 30 }; |
| 31 |
| 32 } |
| 33 |
| 34 #endif |
OLD | NEW |