| 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 UI_GFX_GEOMETRY_INSETS_H_ | 5 #ifndef UI_GFX_GEOMETRY_INSETS_H_ |
| 6 #define UI_GFX_GEOMETRY_INSETS_H_ | 6 #define UI_GFX_GEOMETRY_INSETS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 } | 34 } |
| 35 | 35 |
| 36 operator InsetsF() const { | 36 operator InsetsF() const { |
| 37 return InsetsF(top(), left(), bottom(), right()); | 37 return InsetsF(top(), left(), bottom(), right()); |
| 38 } | 38 } |
| 39 | 39 |
| 40 // Returns a string representation of the insets. | 40 // Returns a string representation of the insets. |
| 41 std::string ToString() const; | 41 std::string ToString() const; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 #if !defined(COMPILER_MSVC) | 44 #if !defined(COMPILER_MSVC) && !defined(__native_client__) |
| 45 extern template class InsetsBase<Insets, int>; | 45 extern template class InsetsBase<Insets, int>; |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 } // namespace gfx | 48 } // namespace gfx |
| 49 | 49 |
| 50 #endif // UI_GFX_GEOMETRY_INSETS_H_ | 50 #endif // UI_GFX_GEOMETRY_INSETS_H_ |
| OLD | NEW |