HomeSort by relevance Sort by last modified time
    Searched refs:RetainPtr (Results 1 - 25 of 28) sorted by null

1 2

  /external/chromium_org/third_party/WebKit/Source/wtf/
RetainPtr.h 48 // 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 {
69 RetainPtr() : m_ptr(0) {}
70 RetainPtr(PtrType ptr) : m_ptr(ptr) { if (ptr) CFRetain(ptr); }
72 RetainPtr(AdoptCFTag, PtrType ptr) : m_ptr(ptr) { }
73 RetainPtr(AdoptNSTag, PtrType ptr) : m_ptr(ptr) { adoptNSReference(ptr); }
75 RetainPtr(const RetainPtr& o) : m_ptr(o.m_ptr) { if (PtrType ptr = m_ptr) CFRetain(ptr);
    [all...]
Functional.h 346 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/core/platform/text/mac/
LocaleMac.h 36 #include "wtf/RetainPtr.h"
75 RetainPtr<NSDateFormatter> shortDateFormatter();
78 RetainPtr<NSLocale> m_locale;
79 RetainPtr<NSCalendar> m_gregorianCalendar;
84 RetainPtr<NSDateFormatter> timeFormatter();
85 RetainPtr<NSDateFormatter> shortTimeFormatter();
86 RetainPtr<NSDateFormatter> dateTimeFormatterWithSeconds();
87 RetainPtr<NSDateFormatter> dateTimeFormatterWithoutSeconds();
LocaleMac.mm 40 #include "wtf/RetainPtr.h"
57 static RetainPtr<NSLocale> determineLocale(const String& locale)
59 RetainPtr<NSLocale> currentLocale = [NSLocale currentLocale];
65 return RetainPtr<NSLocale>(AdoptNS, [[NSLocale alloc] initWithLocaleIdentifier:locale]);
73 static RetainPtr<NSDateFormatter> createDateTimeFormatter(NSLocale* locale, NSCalendar* calendar, NSDateFormatterStyle dateStyle, NSDateFormatterStyle timeStyle)
103 RetainPtr<NSLocale> locale = [[NSLocale alloc] initWithLocaleIdentifier:localeIdentifier];
112 RetainPtr<NSDateFormatter> LocaleMac::shortDateFormatter()
166 RetainPtr<NSDateFormatter> LocaleMac::timeFormatter()
171 RetainPtr<NSDateFormatter> LocaleMac::shortTimeFormatter()
176 RetainPtr<NSDateFormatter> LocaleMac::dateTimeFormatterWithSeconds(
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/platform/graphics/mac/
ColorMac.mm 29 #import <wtf/RetainPtr.h>
75 DEFINE_STATIC_LOCAL(RetainPtr<NSColor>, clearColor, ([NSColor colorWithDeviceRed:0 green:0 blue:0 alpha:0]));
79 DEFINE_STATIC_LOCAL(RetainPtr<NSColor>, blackColor, ([NSColor colorWithDeviceRed:0 green:0 blue:0 alpha:1]));
83 DEFINE_STATIC_LOCAL(RetainPtr<NSColor>, whiteColor, ([NSColor colorWithDeviceRed:1 green:1 blue:1 alpha:1]));
89 static RetainPtr<NSColor>* cachedColors = new RetainPtr<NSColor>[cacheSize];
FontCustomPlatformDataMac.cpp 61 RetainPtr<CFDataRef> bufferData(AdoptCF, CFDataCreate(0, reinterpret_cast<const UInt8*>(buffer->data()), buffer->size()));
62 RetainPtr<CGDataProviderRef> dataProvider(AdoptCF, CGDataProviderCreateWithCFData(bufferData.get()));
63 RetainPtr<CGFontRef> cgFontRef(AdoptCF, CGFontCreateWithDataProvider(dataProvider.get()));
SimpleFontDataCoreText.cpp 37 HashMap<unsigned, RetainPtr<CFDictionaryRef> >::AddResult addResult = m_CFStringAttributes.add(key, RetainPtr<CFDictionaryRef>());
38 RetainPtr<CFDictionaryRef>& attributesDictionary = addResult.iterator->value;
GlyphPageTreeNodeMac.cpp 89 RetainPtr<CFStringRef> string(AdoptCF, CFStringCreateWithCharactersNoCopy(kCFAllocatorDefault, buffer, bufferLength, kCFAllocatorNull));
90 RetainPtr<CFAttributedStringRef> attributedString(AdoptCF, CFAttributedStringCreate(kCFAllocatorDefault, string.get(), fontData->getCFStringAttributes(0, fontData->hasVerticalGlyphs() ? Vertical : Horizontal)));
91 RetainPtr<CTLineRef> line(AdoptCF, CTLineCreateWithAttributedString(attributedString.get()));
106 RetainPtr<CGFontRef> cgFont(AdoptCF, CTFontCopyGraphicsFont(fontData->platformData().ctFont(), 0));
116 RetainPtr<CGFontRef> runCGFont(AdoptCF, CTFontCopyGraphicsFont(runFont, 0));
ComplexTextControllerCoreText.mm 47 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.pixelSize(), 0, fontDescriptor.get()));
215 RetainPtr<CTLineRef> line;
228 RetainPtr<CTTypesetterRef> typesetter(AdoptCF, WKCreateCTTypesetterWithUniCharProviderAndOptions(&provideStringAndAttributes, 0, &info, m_run.ltr() ? ltrTypesetterOptions : rtlTypesetterOptions));
230 RetainPtr<CFStringRef> string(AdoptCF, CFStringCreateWithCharactersNoCopy(kCFAllocatorDefault, cp, length, k (…)
    [all...]
SimpleFontDataMac.mm 42 #import <wtf/RetainPtr.h>
86 RetainPtr<CFArrayRef> tableTags(AdoptCF, CTFontCopyAvailableTables(ctFont, kCTFontTableOptionNoOptions));
106 DEFINE_STATIC_LOCAL(RetainPtr<NSString>, webFallbackFontFamily, ([[NSFont systemFontOfSize:16.0f] familyName]));
112 if (key && !CFEqual(RetainPtr<CFStringRef>(AdoptCF, CTFontCopyPostScriptName(CTFontRef(key))).get(), CFSTR("LastResort"))) {
163 RetainPtr<NSFont> initialFont = m_platformData.font();
269 RetainPtr<CFDataRef> os2Table(AdoptCF, copyFontTableForTag(m_platformData, 'OS/2'));
276 RetainPtr<CFDataRef> headTable(AdoptCF, copyFontTableForTag(m_platformData, 'head'));
431 RetainPtr<CGFontRef> cgFont(AdoptCF, CTFontCopyGraphicsFont(platformData().ctFont(), 0));
434 RetainPtr<CTLineRef> line(AdoptCF, CTLineCreateWithUniCharProvider(&provideStringAndAttributes, 0, &info));
444 RetainPtr<CGFontRef> runCGFont(AdoptCF, CTFontCopyGraphicsFont(runFont, 0))
    [all...]
ComplexTextController.h 32 #include "wtf/RetainPtr.h"
151 Vector<RetainPtr<CTLineRef> > m_coreTextLines;
  /external/chromium_org/third_party/WebKit/Source/core/platform/graphics/chromium/
CrossProcessFontLoading.h 35 #import <wtf/RetainPtr.h>
88 WTF::RetainPtr<CGFontRef> m_cgFont;
CrossProcessFontLoading.mm 126 RetainPtr<CGFontRef> cgFont(tmpCGFont);
  /external/chromium_org/third_party/WebKit/Source/core/platform/mac/
ScrollAnimatorMac.h 35 #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;
ScrollAnimatorMac.mm 307 RetainPtr<ScrollbarPainter> _scrollbarPainter;
396 RetainPtr<WebScrollbarPartAnimation> _knobAlphaAnimation;
397 RetainPtr<WebScrollbarPartAnimation> _trackAlphaAnimation;
398 RetainPtr<WebScrollbarPartAnimation> _uiStateTransitionAnimation;
399 RetainPtr<WebScrollbarPartAnimation> _expansionTransitionAnimation;
452 - (void)setUpAlphaAnimation:(RetainPtr<WebScrollbarPartAnimation>&)scrollbarPartAnimation scrollerPainter:(ScrollbarPainter)scrollerPainter part:(WebCore::ScrollbarPart)part animateAlphaTo:(CGFloat)newAlpha duration:(NSTimeInterval)duration
    [all...]
ScrollbarThemeMacOverlayAPI.mm 42 typedef HashMap<ScrollbarThemeClient*, RetainPtr<ScrollbarPainter> > ScrollbarPainterMap;
  /external/chromium_org/third_party/WebKit/Source/core/platform/graphics/cocoa/
FontPlatformDataCocoa.mm 191 RetainPtr<CFNumberRef> featureTypeIdentifierNumber(AdoptCF, CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &featureTypeIdentifier));
192 RetainPtr<CFNumberRef> featureSelectorIdentifierNumber(AdoptCF, CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &featureSelectorIdentifier));
209 RetainPtr<CFDictionaryRef> attributes(AdoptCF, CFDictionaryCreate(kCFAllocatorDefault, keys, values, WTF_ARRAY_LENGTH(keys), &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks));
222 RetainPtr<CFDictionaryRef> lineInitialSwashesOffSetting(AdoptCF, createFeatureSettingDictionary(kSmartSwashType, kLineInitialSwashesOffSelector));
223 RetainPtr<CFDictionaryRef> lineFinalSwashesOffSetting(AdoptCF, createFeatureSettingDictionary(kSmartSwashType, kLineFinalSwashesOffSelector));
226 RetainPtr<CFArrayRef> featureSettings(AdoptCF, CFArrayCreate(kCFAllocatorDefault, settingDictionaries, WTF_ARRAY_LENGTH(settingDictionaries), &kCFTypeArrayCallBacks));
230 RetainPtr<CFDictionaryRef> attributes(AdoptCF, CFDictionaryCreate(kCFAllocatorDefault, keys, values, WTF_ARRAY_LENGTH(keys), &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks));
250 RetainPtr<CFStringRef> postScriptName(AdoptCF, CTFontCopyPostScriptName(m_CTFont.get()));
263 RetainPtr<CTFontDescriptorRef> sourceDescriptor(AdoptCF, CTFontCopyFontDescriptor(m_CTFont.get()));
264 RetainPtr<CFNumberRef> featureType(AdoptCF, CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &featureTy (…)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/platform/graphics/
FontCustomPlatformData.h 46 #include "wtf/RetainPtr.h"
78 RetainPtr<CGFontRef> m_cgFont;
FontPlatformData.h 53 #include "wtf/RetainPtr.h"
194 RetainPtr<CGFontRef> m_cgFont;
195 mutable RetainPtr<CTFontRef> m_CTFont;
SimpleFontData.h 45 #include "wtf/RetainPtr.h"
249 mutable RetainPtr<CFMutableDictionaryRef> compositeFontReferences;
264 mutable HashMap<unsigned, RetainPtr<CFDictionaryRef> > m_CFStringAttributes;
  /external/chromium_org/third_party/WebKit/Source/core/platform/text/cf/
StringCF.cpp 27 #include "wtf/RetainPtr.h"
54 RetainPtr<CFStringRef> String::createCFString() const
StringImplCF.cpp 29 #include "wtf/RetainPtr.h"
127 RetainPtr<CFStringRef> StringImpl::createCFString()
  /external/chromium_org/third_party/WebKit/Source/core/rendering/
RenderThemeChromiumMac.h 29 #import "wtf/RetainPtr.h"
209 mutable RetainPtr<NSPopUpButtonCell> m_popupButton;
210 mutable RetainPtr<NSSearchFieldCell> m_search;
211 mutable RetainPtr<NSMenu> m_searchMenuTemplate;
212 mutable RetainPtr<NSLevelIndicatorCell> m_levelIndicator;
213 mutable RetainPtr<NSTextFieldCell> m_textField;
217 RetainPtr<WebCoreRenderThemeNotificationObserver> m_notificationObserver;
  /external/chromium_org/third_party/WebKit/Source/wtf/unicode/icu/
CollatorICU.cpp 40 #include "wtf/RetainPtr.h"
64 RetainPtr<CFLocaleRef> currentLocale(AdoptCF, CFLocaleCopyCurrent());
  /external/chromium_org/third_party/WebKit/Source/core/platform/image-decoders/
ImageDecoder.h 46 #include "wtf/RetainPtr.h"
331 RetainPtr<CGColorSpaceRef> monitorColorSpace(AdoptCF, CGDisplayCopyColorSpace(CGMainDisplayID()));

Completed in 241 milliseconds

1 2