Home
last modified time | relevance | path

Searched refs:RetainPtr (Results 1 – 25 of 33) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/wtf/
DRetainPtr.h64 template<typename T> class RetainPtr {
69 RetainPtr() : m_ptr(0) {} in RetainPtr() function
70 RetainPtr(PtrType ptr) : m_ptr(ptr) { if (ptr) CFRetain(ptr); } in RetainPtr() function
72 RetainPtr(AdoptCFTag, PtrType ptr) : m_ptr(ptr) { } in RetainPtr() function
73 RetainPtr(AdoptNSTag, PtrType ptr) : m_ptr(ptr) { adoptNSReference(ptr); } in RetainPtr() function
75 RetainPtr(const RetainPtr& o) : m_ptr(o.m_ptr) { if (PtrType ptr = m_ptr) CFRetain(ptr); } in RetainPtr() function
78 RetainPtr(RetainPtr&& o) : m_ptr(o.leakRef()) { } in RetainPtr() function
82 RetainPtr(HashTableDeletedValueType) : m_ptr(hashTableDeletedValue()) { } in RetainPtr() function
85 ~RetainPtr() { if (PtrType ptr = m_ptr) CFRelease(ptr); } in ~RetainPtr()
87 template<typename U> RetainPtr(const RetainPtr<U>&);
[all …]
DFunctional.h346 template<typename> class RetainPtr;
348 template<typename T> struct ParamStorageTraits<RetainPtr<T> > {
349 typedef RetainPtr<T> StorageType;
351 static StorageType wrap(const RetainPtr<T>& value) { return value; }
352 static typename RetainPtr<T>::PtrType unwrap(const StorageType& value) { return value.get(); }
/external/chromium_org/third_party/WebKit/Source/platform/text/
DLocaleMac.h73 RetainPtr<NSDateFormatter> shortDateFormatter();
76 RetainPtr<NSLocale> m_locale;
77 RetainPtr<NSCalendar> m_gregorianCalendar;
80 RetainPtr<NSDateFormatter> timeFormatter();
81 RetainPtr<NSDateFormatter> shortTimeFormatter();
82 RetainPtr<NSDateFormatter> dateTimeFormatterWithSeconds();
83 RetainPtr<NSDateFormatter> dateTimeFormatterWithoutSeconds();
DLocaleMac.mm39 #include "wtf/RetainPtr.h"
56 static RetainPtr<NSLocale> determineLocale(const String& locale)
58 RetainPtr<NSLocale> currentLocale = [NSLocale currentLocale];
64 return RetainPtr<NSLocale>(AdoptNS, [[NSLocale alloc] initWithLocaleIdentifier:locale]);
72 static RetainPtr<NSDateFormatter> createDateTimeFormatter(NSLocale* locale, NSCalendar* calendar, N…
102 RetainPtr<NSLocale> locale = [[NSLocale alloc] initWithLocaleIdentifier:localeIdentifier];
111 RetainPtr<NSDateFormatter> LocaleMac::shortDateFormatter()
163 RetainPtr<NSDateFormatter> LocaleMac::timeFormatter()
168 RetainPtr<NSDateFormatter> LocaleMac::shortTimeFormatter()
173 RetainPtr<NSDateFormatter> LocaleMac::dateTimeFormatterWithSeconds()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/mac/
DScrollAnimatorMac.h73 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;
DColorMac.mm29 #import <wtf/RetainPtr.h>
75 …DEFINE_STATIC_LOCAL(RetainPtr<NSColor>, clearColor, ([NSColor colorWithDeviceRed:0 green:0 blue:0 …
79 …DEFINE_STATIC_LOCAL(RetainPtr<NSColor>, blackColor, ([NSColor colorWithDeviceRed:0 green:0 blue:0 …
83 …DEFINE_STATIC_LOCAL(RetainPtr<NSColor>, whiteColor, ([NSColor colorWithDeviceRed:1 green:1 blue:1 …
89 static RetainPtr<NSColor>* cachedColors = new RetainPtr<NSColor>[cacheSize];
/external/clang/test/CodeGenObjCXX/
Dcopy.mm31 template<typename T> struct RetainPtr {
32 RetainPtr() {}
36 RetainPtr<id<bork> > x;
37 RetainPtr<id> y;
/external/chromium_org/third_party/WebKit/Source/platform/fonts/cocoa/
DFontPlatformDataCocoa.mm191RetainPtr<CFNumberRef> featureTypeIdentifierNumber(AdoptCF, CFNumberCreate(kCFAllocatorDefault, kC…
192RetainPtr<CFNumberRef> featureSelectorIdentifierNumber(AdoptCF, CFNumberCreate(kCFAllocatorDefault…
209RetainPtr<CFDictionaryRef> attributes(AdoptCF, CFDictionaryCreate(kCFAllocatorDefault, keys, value…
222RetainPtr<CFDictionaryRef> lineInitialSwashesOffSetting(AdoptCF, createFeatureSettingDictionary(kS…
223RetainPtr<CFDictionaryRef> lineFinalSwashesOffSetting(AdoptCF, createFeatureSettingDictionary(kSma…
226RetainPtr<CFArrayRef> featureSettings(AdoptCF, CFArrayCreate(kCFAllocatorDefault, settingDictionar…
230RetainPtr<CFDictionaryRef> attributes(AdoptCF, CFDictionaryCreate(kCFAllocatorDefault, keys, value…
255 RetainPtr<CFStringRef> postScriptName(AdoptCF, CTFontCopyPostScriptName(m_CTFont.get()));
268RetainPtr<CTFontDescriptorRef> sourceDescriptor(AdoptCF, CTFontCopyFontDescriptor(m_CTFont.get()));
269RetainPtr<CFNumberRef> featureType(AdoptCF, CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, …
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
DComplexTextControllerCoreText.mm47 Vector<RetainPtr<CTFontDescriptorRef>, 16> _fontDescriptors;
88 _fontDescriptors[index] = RetainPtr<CTFontDescriptorRef>(AdoptCF, fontDescriptor);
195 RetainPtr<CFDictionaryRef> stringAttributes;
203RetainPtr<WebCascadeList> cascadeList(AdoptNS, [[WebCascadeList alloc] initWithFont:&m_font charac…
208RetainPtr<CFDictionaryRef> attributes(AdoptCF, CFDictionaryCreate(kCFAllocatorDefault, attributeKe…
209RetainPtr<CTFontDescriptorRef> fontDescriptor(AdoptCF, CTFontDescriptorCreateWithAttributes(attrib…
210RetainPtr<CTFontRef> fontWithCascadeList(AdoptCF, CTFontCreateCopyWithAttributes(fontData->platfor…
215 RetainPtr<CTLineRef> line;
228RetainPtr<CTTypesetterRef> typesetter(AdoptCF, WKCreateCTTypesetterWithUniCharProviderAndOptions(&…
230RetainPtr<CFStringRef> string(AdoptCF, CFStringCreateWithCharactersNoCopy(kCFAllocatorDefault, cp,…
[all …]
DSimpleFontDataCoreText.cpp37 …HashMap<unsigned, RetainPtr<CFDictionaryRef> >::AddResult addResult = m_CFStringAttributes.add(key… in getCFStringAttributes()
38 RetainPtr<CFDictionaryRef>& attributesDictionary = addResult.iterator->value; in getCFStringAttributes()
DGlyphPageTreeNodeMac.cpp89RetainPtr<CFStringRef> string(AdoptCF, CFStringCreateWithCharactersNoCopy(kCFAllocatorDefault, buf… in fill()
90RetainPtr<CFAttributedStringRef> attributedString(AdoptCF, CFAttributedStringCreate(kCFAllocatorDe… in fill()
91RetainPtr<CTLineRef> line(AdoptCF, CTLineCreateWithAttributedString(attributedString.get())); in fill()
106RetainPtr<CGFontRef> cgFont(AdoptCF, CTFontCopyGraphicsFont(fontData->platformData().ctFont(), 0)); in fill()
116 RetainPtr<CGFontRef> runCGFont(AdoptCF, CTFontCopyGraphicsFont(runFont, 0)); in fill()
DFontCustomPlatformDataMac.cpp60RetainPtr<CFDataRef> bufferData(AdoptCF, CFDataCreate(0, reinterpret_cast<const UInt8*>(buffer->da… in create()
61RetainPtr<CGDataProviderRef> dataProvider(AdoptCF, CGDataProviderCreateWithCFData(bufferData.get()… in create()
62 RetainPtr<CGFontRef> cgFontRef(AdoptCF, CGFontCreateWithDataProvider(dataProvider.get())); in create()
DMemoryActivatedFont.h35 #import <wtf/RetainPtr.h>
88 WTF::RetainPtr<CGFontRef> m_cgFont;
DSimpleFontDataMac.mm42 #import <wtf/RetainPtr.h>
85RetainPtr<CFArrayRef> tableTags(AdoptCF, CTFontCopyAvailableTables(ctFont, kCTFontTableOptionNoOpt…
105 …DEFINE_STATIC_LOCAL(RetainPtr<NSString>, webFallbackFontFamily, ([[NSFont systemFontOfSize:16.0f] …
111 …if (key && !CFEqual(RetainPtr<CFStringRef>(AdoptCF, CTFontCopyPostScriptName(CTFontRef(key))).get(…
162 RetainPtr<NSFont> initialFont = m_platformData.font();
268 RetainPtr<CFDataRef> os2Table(AdoptCF, copyFontTableForTag(m_platformData, 'OS/2'));
275 RetainPtr<CFDataRef> headTable(AdoptCF, copyFontTableForTag(m_platformData, 'head'));
430 RetainPtr<CGFontRef> cgFont(AdoptCF, CTFontCopyGraphicsFont(platformData().ctFont(), 0));
433RetainPtr<CTLineRef> line(AdoptCF, CTLineCreateWithUniCharProvider(&provideStringAndAttributes, 0,…
443 RetainPtr<CGFontRef> runCGFont(AdoptCF, CTFontCopyGraphicsFont(runFont, 0));
DComplexTextController.h151 Vector<RetainPtr<CTLineRef> > m_coreTextLines;
/external/clang/test/SemaObjCXX/
Ddeduction.mm15 template <typename T> struct RetainPtr {
18 RetainPtr(PtrType ptr);
22 RetainPtr<NSString*> ptr(S);
26 RetainPtr<id> ptr(S);
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderThemeChromiumMac.h205 mutable RetainPtr<NSPopUpButtonCell> m_popupButton;
206 mutable RetainPtr<NSSearchFieldCell> m_search;
207 mutable RetainPtr<NSMenu> m_searchMenuTemplate;
208 mutable RetainPtr<NSLevelIndicatorCell> m_levelIndicator;
209 mutable RetainPtr<NSTextFieldCell> m_textField;
213 RetainPtr<WebCoreRenderThemeNotificationObserver> m_notificationObserver;
/external/chromium_org/third_party/WebKit/Source/platform/fonts/
DFontPlatformData.h196 RetainPtr<CGFontRef> m_cgFont;
197 mutable RetainPtr<CTFontRef> m_CTFont;
DFontCustomPlatformData.h79 RetainPtr<CGFontRef> m_cgFont;
DSimpleFontData.h232 mutable RetainPtr<CFMutableDictionaryRef> compositeFontReferences;
249 mutable HashMap<unsigned, RetainPtr<CFDictionaryRef> > m_CFStringAttributes;
/external/chromium_org/third_party/WebKit/Source/wtf/text/
DStringCF.cpp55 RetainPtr<CFStringRef> String::createCFString() const in createCFString()
DStringImplCF.cpp127 RetainPtr<CFStringRef> StringImpl::createCFString() in createCFString()
DStringImplMac.mm26 #include "wtf/RetainPtr.h"
/external/chromium_org/third_party/WebKit/Source/wtf/unicode/icu/
DCollatorICU.cpp65 RetainPtr<CFLocaleRef> currentLocale(AdoptCF, CFLocaleCopyCurrent()); in userDefault()
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/
DImageDecoder.h182RetainPtr<CGColorSpaceRef> monitorColorSpace(AdoptCF, CGDisplayCopyColorSpace(CGMainDisplayID())); in qcmsOutputDeviceProfile()

12