Searched refs:RetainPtr (Results 1 - 25 of 26) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/wtf/
H A DRetainPtr.h48 // Unlike most most of our smart pointers, RetainPtr can take either the pointer type or the pointed-to type,
49 // so both RetainPtr<NSDictionary> and RetainPtr<CFDictionaryRef> will work.
64 template<typename T> class RetainPtr { class in namespace:WTF
69 RetainPtr() : m_ptr(0) {} function in class:WTF::RetainPtr
70 RetainPtr(PtrType ptr) : m_ptr(ptr) { if (ptr) CFRetain(ptr); } function in class:WTF::RetainPtr
72 RetainPtr(AdoptCFTag, PtrType ptr) : m_ptr(ptr) { } function in class:WTF::RetainPtr
73 RetainPtr(AdoptNSTag, PtrType ptr) : m_ptr(ptr) { adoptNSReference(ptr); } function in class:WTF::RetainPtr
75 RetainPtr(const RetainPtr function in class:WTF::RetainPtr
78 RetainPtr(RetainPtr&& o) : m_ptr(o.leakRef()) { } function in class:WTF::RetainPtr
82 RetainPtr(HashTableDeletedValueType) : m_ptr(hashTableDeletedValue()) { } function in class:WTF::RetainPtr
129 template<typename T> template<typename U> inline RetainPtr<T>::RetainPtr(const RetainPtr<U>& o) function in class:WTF::RetainPtr
[all...]
H A DFunctional.h365 template<typename> class RetainPtr;
367 template<typename T> struct ParamStorageTraits<RetainPtr<T> > {
368 typedef RetainPtr<T> StorageType;
370 static StorageType wrap(const RetainPtr<T>& value) { return value; }
371 static typename RetainPtr<T>::PtrType unwrap(const StorageType& value) { return value.get(); }
/external/chromium_org/third_party/WebKit/Source/platform/mac/
H A DColorMac.mm29 #import <wtf/RetainPtr.h>
42 DEFINE_STATIC_LOCAL(RetainPtr<NSColor>, clearColor, ([NSColor colorWithDeviceRed:0 green:0 blue:0 alpha:0]));
46 DEFINE_STATIC_LOCAL(RetainPtr<NSColor>, blackColor, ([NSColor colorWithDeviceRed:0 green:0 blue:0 alpha:1]));
50 DEFINE_STATIC_LOCAL(RetainPtr<NSColor>, whiteColor, ([NSColor colorWithDeviceRed:1 green:1 blue:1 alpha:1]));
56 static RetainPtr<NSColor>* cachedColors = new RetainPtr<NSColor>[cacheSize];
H A DScrollAnimatorMac.h35 #include "wtf/RetainPtr.h"
73 RetainPtr<id> m_scrollAnimationHelper;
74 RetainPtr<WebScrollAnimationHelperDelegate> m_scrollAnimationHelperDelegate;
76 RetainPtr<ScrollbarPainterController> m_scrollbarPainterController;
77 RetainPtr<WebScrollbarPainterControllerDelegate> m_scrollbarPainterControllerDelegate;
78 RetainPtr<WebScrollbarPainterDelegate> m_horizontalScrollbarPainterDelegate;
79 RetainPtr<WebScrollbarPainterDelegate> m_verticalScrollbarPainterDelegate;
H A DScrollAnimatorMac.mm366 RetainPtr<ScrollbarPainter> _scrollbarPainter;
461 RetainPtr<WebScrollbarPartAnimation> _knobAlphaAnimation;
462 RetainPtr<WebScrollbarPartAnimation> _trackAlphaAnimation;
463 RetainPtr<WebScrollbarPartAnimation> _uiStateTransitionAnimation;
464 RetainPtr<WebScrollbarPartAnimation> _expansionTransitionAnimation;
517 - (void)setUpAlphaAnimation:(RetainPtr<WebScrollbarPartAnimation>&)scrollbarPartAnimation scrollerPainter:(ScrollbarPainter)scrollerPainter part:(blink::ScrollbarPart)part animateAlphaTo:(CGFloat)newAlpha duration:(NSTimeInterval)duration
/external/chromium_org/third_party/WebKit/Source/platform/text/
H A DLocaleMac.h36 #include "wtf/RetainPtr.h"
71 RetainPtr<NSDateFormatter> shortDateFormatter();
74 RetainPtr<NSLocale> m_locale;
75 RetainPtr<NSCalendar> m_gregorianCalendar;
78 RetainPtr<NSDateFormatter> timeFormatter();
79 RetainPtr<NSDateFormatter> shortTimeFormatter();
80 RetainPtr<NSDateFormatter> dateTimeFormatterWithSeconds();
81 RetainPtr<NSDateFormatter> dateTimeFormatterWithoutSeconds();
H A DLocaleMac.mm39 #include "wtf/RetainPtr.h"
54 static RetainPtr<NSLocale> determineLocale(const String& locale)
56 RetainPtr<NSLocale> currentLocale = [NSLocale currentLocale];
62 return RetainPtr<NSLocale>(AdoptNS, [[NSLocale alloc] initWithLocaleIdentifier:locale]);
70 static RetainPtr<NSDateFormatter> createDateTimeFormatter(NSLocale* locale, NSCalendar* calendar, NSDateFormatterStyle dateStyle, NSDateFormatterStyle timeStyle)
100 RetainPtr<NSLocale> locale = [[NSLocale alloc] initWithLocaleIdentifier:localeIdentifier];
109 RetainPtr<NSDateFormatter> LocaleMac::shortDateFormatter()
161 RetainPtr<NSDateFormatter> LocaleMac::timeFormatter()
166 RetainPtr<NSDateFormatter> LocaleMac::shortTimeFormatter()
171 RetainPtr<NSDateFormatte
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
H A DMemoryActivatedFont.h35 #import <wtf/RetainPtr.h>
88 WTF::RetainPtr<CGFontRef> m_cgFont;
H A DFontCustomPlatformDataMac.cpp60 RetainPtr<CFDataRef> bufferData(AdoptCF, CFDataCreate(0, reinterpret_cast<const UInt8*>(buffer->data()), buffer->size()));
61 RetainPtr<CGDataProviderRef> dataProvider(AdoptCF, CGDataProviderCreateWithCFData(bufferData.get()));
62 RetainPtr<CGFontRef> cgFontRef(AdoptCF, CGFontCreateWithDataProvider(dataProvider.get()));
H A DSimpleFontDataCoreText.cpp46 HashMap<unsigned, RetainPtr<CFDictionaryRef> >::AddResult addResult = m_CFStringAttributes.add(key, RetainPtr<CFDictionaryRef>());
47 RetainPtr<CFDictionaryRef>& attributesDictionary = addResult.storedValue->value;
126 RetainPtr<CFStringRef> string(AdoptCF, CFStringCreateWithCharactersNoCopy(kCFAllocatorDefault, buffer, bufferLength, kCFAllocatorNull));
127 RetainPtr<CFAttributedStringRef> attributedString(AdoptCF, CFAttributedStringCreate(kCFAllocatorDefault, string.get(), getCFStringAttributes(0, hasVerticalGlyphs() ? Vertical : Horizontal)));
128 RetainPtr<CTLineRef> line(AdoptCF, CTLineCreateWithAttributedString(attributedString.get()));
139 RetainPtr<CGFontRef> cgFont(AdoptCF, CTFontCopyGraphicsFont(platformData().ctFont(), 0));
149 RetainPtr<CGFontRef> runCGFont(AdoptCF, CTFontCopyGraphicsFont(runFont, 0));
H A DComplexTextControllerCoreText.mm47 Vector<RetainPtr<CTFontDescriptorRef>, 16> _fontDescriptors;
88 _fontDescriptors[index] = RetainPtr<CTFontDescriptorRef>(AdoptCF, fontDescriptor);
195 RetainPtr<CFDictionaryRef> stringAttributes;
203 RetainPtr<WebCascadeList> cascadeList(AdoptNS, [[WebCascadeList alloc] initWithFont:&m_font character:baseCharacter]);
208 RetainPtr<CFDictionaryRef> attributes(AdoptCF, CFDictionaryCreate(kCFAllocatorDefault, attributeKeys, values, sizeof(attributeKeys) / sizeof(*attributeKeys), &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks));
209 RetainPtr<CTFontDescriptorRef> fontDescriptor(AdoptCF, CTFontDescriptorCreateWithAttributes(attributes.get()));
210 RetainPtr<CTFontRef> fontWithCascadeList(AdoptCF, CTFontCreateCopyWithAttributes(fontData->platformData().ctFont(), m_font.fontDescription().computedPixelSize(), 0, fontDescriptor.get()));
215 RetainPtr<CTLineRef> line;
228 RetainPtr<CTTypesetterRef> typesetter(AdoptCF, WKCreateCTTypesetterWithUniCharProviderAndOptions(&provideStringAndAttributes, 0, &info, m_run.ltr() ? ltrTypesetterOptions : rtlTypesetterOptions));
230 RetainPtr<CFStringRe
[all...]
H A DSimpleFontDataMac.mm44 #import <wtf/RetainPtr.h>
85 RetainPtr<CFArrayRef> tableTags(AdoptCF, CTFontCopyAvailableTables(ctFont, kCTFontTableOptionNoOptions));
105 DEFINE_STATIC_LOCAL(RetainPtr<NSString>, webFallbackFontFamily, ([[NSFont systemFontOfSize:16.0f] familyName]));
119 if (key && !CFEqual(RetainPtr<CFStringRef>(AdoptCF, CTFontCopyPostScriptName(CTFontRef(key))).get(), CFSTR("LastResort"))) {
169 RetainPtr<NSFont> initialFont = m_platformData.font();
280 RetainPtr<CFDataRef> os2Table(AdoptCF, copyFontTableForTag(m_platformData, 'OS/2'));
287 RetainPtr<CFDataRef> headTable(AdoptCF, copyFontTableForTag(m_platformData, 'head'));
432 RetainPtr<CGFontRef> cgFont(AdoptCF, CTFontCopyGraphicsFont(platformData().ctFont(), 0));
435 RetainPtr<CTLineRef> line(AdoptCF, CTLineCreateWithUniCharProvider(&provideStringAndAttributes, 0, &info));
445 RetainPtr<CGFontRe
[all...]
H A DMemoryActivatedFont.mm126 RetainPtr<CGFontRef> cgFont(tmpCGFont);
H A DComplexTextController.h31 #include "wtf/RetainPtr.h"
150 Vector<RetainPtr<CTLineRef> > m_coreTextLines;
/external/chromium_org/third_party/WebKit/Source/platform/fonts/cocoa/
H A DFontPlatformDataCocoa.mm182 RetainPtr<CFNumberRef> featureTypeIdentifierNumber(AdoptCF, CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &featureTypeIdentifier));
183 RetainPtr<CFNumberRef> featureSelectorIdentifierNumber(AdoptCF, CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &featureSelectorIdentifier));
200 RetainPtr<CFDictionaryRef> attributes(AdoptCF, CFDictionaryCreate(kCFAllocatorDefault, keys, values, WTF_ARRAY_LENGTH(keys), &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks));
213 RetainPtr<CFDictionaryRef> lineInitialSwashesOffSetting(AdoptCF, createFeatureSettingDictionary(kSmartSwashType, kLineInitialSwashesOffSelector));
214 RetainPtr<CFDictionaryRef> lineFinalSwashesOffSetting(AdoptCF, createFeatureSettingDictionary(kSmartSwashType, kLineFinalSwashesOffSelector));
217 RetainPtr<CFArrayRef> featureSettings(AdoptCF, CFArrayCreate(kCFAllocatorDefault, settingDictionaries, WTF_ARRAY_LENGTH(settingDictionaries), &kCFTypeArrayCallBacks));
221 RetainPtr<CFDictionaryRef> attributes(AdoptCF, CFDictionaryCreate(kCFAllocatorDefault, keys, values, WTF_ARRAY_LENGTH(keys), &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks));
241 RetainPtr<CFStringRef> postScriptName(AdoptCF, CTFontCopyPostScriptName(m_CTFont.get()));
254 RetainPtr<CTFontDescriptorRef> sourceDescriptor(AdoptCF, CTFontCopyFontDescriptor(m_CTFont.get()));
255 RetainPtr<CFNumberRe
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/fonts/
H A DFontCustomPlatformData.h44 #include "wtf/RetainPtr.h"
69 RetainPtr<CGFontRef> m_cgFont;
H A DFontPlatformData.h193 RetainPtr<CGFontRef> m_cgFont;
194 mutable RetainPtr<CTFontRef> m_CTFont;
H A DSimpleFontData.h43 #include "wtf/RetainPtr.h"
219 mutable RetainPtr<CFMutableDictionaryRef> compositeFontReferences;
236 mutable HashMap<unsigned, RetainPtr<CFDictionaryRef> > m_CFStringAttributes;
/external/chromium_org/third_party/WebKit/Source/wtf/text/
H A DStringCF.cpp27 #include "wtf/RetainPtr.h"
55 RetainPtr<CFStringRef> String::createCFString() const
H A DStringImplCF.cpp28 #include "wtf/RetainPtr.h"
127 RetainPtr<CFStringRef> StringImpl::createCFString()
H A DStringImpl.h53 template<typename> class RetainPtr;
417 RetainPtr<CFStringRef> createCFString();
/external/chromium_org/third_party/WebKit/Source/core/rendering/
H A DRenderThemeChromiumMac.h29 #import "wtf/RetainPtr.h"
196 mutable RetainPtr<NSPopUpButtonCell> m_popupButton;
197 mutable RetainPtr<NSSearchFieldCell> m_search;
198 mutable RetainPtr<NSMenu> m_searchMenuTemplate;
199 mutable RetainPtr<NSLevelIndicatorCell> m_levelIndicator;
200 mutable RetainPtr<NSTextFieldCell> m_textField;
204 RetainPtr<WebCoreRenderThemeNotificationObserver> m_notificationObserver;
H A DRenderThemeChromiumMac.mm62 #import <wtf/RetainPtr.h>
979 RetainPtr<NSNumber> valueObject = [NSNumber numberWithDouble:value];
/external/chromium_org/third_party/WebKit/Source/wtf/unicode/icu/
H A DCollatorICU.cpp41 #include "wtf/RetainPtr.h"
65 RetainPtr<CFLocaleRef> currentLocale(AdoptCF, CFLocaleCopyCurrent());
/external/chromium_org/third_party/WebKit/Source/platform/scroll/
H A DScrollbarThemeMacOverlayAPI.mm42 typedef HashMap<ScrollbarThemeClient*, RetainPtr<ScrollbarPainter> > ScrollbarPainterMap;

Completed in 286 milliseconds

12