Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 74 | 74 |
| 75 BLINK_EXPORT static WebRange fromDocumentRange(WebLocalFrame*, int start, in t length); | 75 BLINK_EXPORT static WebRange fromDocumentRange(WebLocalFrame*, int start, in t length); |
| 76 | 76 |
| 77 BLINK_EXPORT WebVector<WebFloatQuad> textQuads() const; | 77 BLINK_EXPORT WebVector<WebFloatQuad> textQuads() const; |
| 78 | 78 |
| 79 #if BLINK_IMPLEMENTATION | 79 #if BLINK_IMPLEMENTATION |
| 80 WebRange(const PassRefPtrWillBeRawPtr<WebCore::Range>&); | 80 WebRange(const PassRefPtrWillBeRawPtr<WebCore::Range>&); |
| 81 operator PassRefPtrWillBeRawPtr<WebCore::Range>() const; | 81 operator PassRefPtrWillBeRawPtr<WebCore::Range>() const; |
| 82 #endif | 82 #endif |
| 83 | 83 |
| 84 #if BLINK_IMPLEMENTATION | |
| 85 template<typename T> T* unwrap() | |
|
tkent
2014/06/13 01:15:37
You don't need it.
We already have |operator PassR
mlamouri (slow - plz ping)
2014/06/13 10:34:03
Done.
| |
| 86 { | |
| 87 return static_cast<T*>(m_private.get()); | |
| 88 } | |
| 89 | |
| 90 template<typename T> const T* constUnwrap() const | |
| 91 { | |
| 92 return static_cast<const T*>(m_private.get()); | |
| 93 } | |
| 94 #endif | |
| 95 | |
| 84 private: | 96 private: |
| 85 WebPrivatePtr<WebCore::Range> m_private; | 97 WebPrivatePtr<WebCore::Range> m_private; |
| 86 }; | 98 }; |
| 87 | 99 |
| 88 } // namespace blink | 100 } // namespace blink |
| 89 | 101 |
| 90 #endif | 102 #endif |
| OLD | NEW |