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/platform/text/
LocaleMac.h 36 #include "wtf/RetainPtr.h"
73 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();
LocaleMac.mm 39 #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, NSDateFormatterStyle dateStyle, NSDateFormatterStyle timeStyle)
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/
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];
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 299 RetainPtr<ScrollbarPainter> _scrollbarPainter;
388 RetainPtr<WebScrollbarPartAnimation> _knobAlphaAnimation;
389 RetainPtr<WebScrollbarPartAnimation> _trackAlphaAnimation;
390 RetainPtr<WebScrollbarPartAnimation> _uiStateTransitionAnimation;
391 RetainPtr<WebScrollbarPartAnimation> _expansionTransitionAnimation;
444 - (void)setUpAlphaAnimation:(RetainPtr<WebScrollbarPartAnimation>&)scrollbarPartAnimation scrollerPainter:(ScrollbarPainter)scrollerPainter part:(WebCore::ScrollbarPart)part animateAlphaTo:(CGFloat)newAlpha duration:(NSTimeInterval)duration
    [all...]
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
MemoryActivatedFont.h 35 #import <wtf/RetainPtr.h>
88 WTF::RetainPtr<CGFontRef> m_cgFont;
FontCustomPlatformDataMac.cpp 60 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()));
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>
85 RetainPtr<CFArrayRef> tableTags(AdoptCF, CTFontCopyAvailableTables(ctFont, kCTFontTableOptionNoOptions));
105 DEFINE_STATIC_LOCAL(RetainPtr<NSString>, webFallbackFontFamily, ([[NSFont systemFontOfSize:16.0f] familyName]));
111 if (key && !CFEqual(RetainPtr<CFStringRef>(AdoptCF, CTFontCopyPostScriptName(CTFontRef(key))).get(), CFSTR("LastResort"))) {
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));
433 RetainPtr<CTLineRef> line(AdoptCF, CTLineCreateWithUniCharProvider(&provideStringAndAttributes, 0, &info));
443 RetainPtr<CGFontRef> runCGFont(AdoptCF, CTFontCopyGraphicsFont(runFont, 0))
    [all...]
MemoryActivatedFont.mm 126 RetainPtr<CGFontRef> cgFont(tmpCGFont);
ComplexTextController.h 32 #include "wtf/RetainPtr.h"
151 Vector<RetainPtr<CTLineRef> > m_coreTextLines;
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/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));
255 RetainPtr<CFStringRef> postScriptName(AdoptCF, CTFontCopyPostScriptName(m_CTFont.get()));
268 RetainPtr<CTFontDescriptorRef> sourceDescriptor(AdoptCF, CTFontCopyFontDescriptor(m_CTFont.get()));
269 RetainPtr<CFNumberRef> featureType(AdoptCF, CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &featureTy (…)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/wtf/text/
StringCF.cpp 27 #include "wtf/RetainPtr.h"
55 RetainPtr<CFStringRef> String::createCFString() const
StringImplCF.cpp 28 #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"
205 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/
FontCustomPlatformData.h 47 #include "wtf/RetainPtr.h"
79 RetainPtr<CGFontRef> m_cgFont;
FontPlatformData.h 54 #include "wtf/RetainPtr.h"
196 RetainPtr<CGFontRef> m_cgFont;
197 mutable RetainPtr<CTFontRef> m_CTFont;
SimpleFontData.h 44 #include "wtf/RetainPtr.h"
232 mutable RetainPtr<CFMutableDictionaryRef> compositeFontReferences;
249 mutable HashMap<unsigned, RetainPtr<CFDictionaryRef> > m_CFStringAttributes;
  /external/chromium_org/third_party/WebKit/Source/wtf/unicode/icu/
CollatorICU.cpp 41 #include "wtf/RetainPtr.h"
65 RetainPtr<CFLocaleRef> currentLocale(AdoptCF, CFLocaleCopyCurrent());
  /external/chromium_org/third_party/WebKit/Source/platform/image-decoders/
ImageDecoder.h 47 #include "wtf/RetainPtr.h"
182 RetainPtr<CGColorSpaceRef> monitorColorSpace(AdoptCF, CGDisplayCopyColorSpace(CGMainDisplayID()));
  /external/chromium_org/third_party/WebKit/Source/platform/scroll/
ScrollbarThemeMacOverlayAPI.mm 42 typedef HashMap<ScrollbarThemeClient*, RetainPtr<ScrollbarPainter> > ScrollbarPainterMap;

Completed in 561 milliseconds

1 2