Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: Source/WebCore/platform/DragImage.h

Issue 13724012: Remove Cairo support. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 26 matching lines...) Expand all
37 #elif PLATFORM(QT) 37 #elif PLATFORM(QT)
38 QT_BEGIN_NAMESPACE 38 QT_BEGIN_NAMESPACE
39 class QPixmap; 39 class QPixmap;
40 QT_END_NAMESPACE 40 QT_END_NAMESPACE
41 #elif PLATFORM(WIN) 41 #elif PLATFORM(WIN)
42 typedef struct HBITMAP__* HBITMAP; 42 typedef struct HBITMAP__* HBITMAP;
43 #elif PLATFORM(WX) 43 #elif PLATFORM(WX)
44 class wxDragImage; 44 class wxDragImage;
45 #elif PLATFORM(CHROMIUM) 45 #elif PLATFORM(CHROMIUM)
46 #include "DragImageRef.h" 46 #include "DragImageRef.h"
47 #elif PLATFORM(GTK)
48 typedef struct _cairo_surface cairo_surface_t;
49 #endif 47 #endif
50 48
51 //We need to #define YOffset as it needs to be shared with WebKit 49 //We need to #define YOffset as it needs to be shared with WebKit
52 #define DragLabelBorderYOffset 2 50 #define DragLabelBorderYOffset 2
53 51
54 namespace WebCore { 52 namespace WebCore {
55 53
56 class CachedImage; 54 class CachedImage;
57 class Frame; 55 class Frame;
58 class Image; 56 class Image;
59 class KURL; 57 class KURL;
60 class Range; 58 class Range;
61 59
62 #if PLATFORM(MAC) 60 #if PLATFORM(MAC)
63 typedef RetainPtr<NSImage> DragImageRef; 61 typedef RetainPtr<NSImage> DragImageRef;
64 #elif PLATFORM(QT) 62 #elif PLATFORM(QT)
65 typedef QPixmap* DragImageRef; 63 typedef QPixmap* DragImageRef;
66 #elif PLATFORM(WIN) 64 #elif PLATFORM(WIN)
67 typedef HBITMAP DragImageRef; 65 typedef HBITMAP DragImageRef;
68 #elif PLATFORM(WX) 66 #elif PLATFORM(WX)
69 typedef wxDragImage* DragImageRef; 67 typedef wxDragImage* DragImageRef;
70 #elif PLATFORM(GTK)
71 typedef cairo_surface_t* DragImageRef;
72 #elif PLATFORM(EFL) || PLATFORM(BLACKBERRY) 68 #elif PLATFORM(EFL) || PLATFORM(BLACKBERRY)
73 typedef void* DragImageRef; 69 typedef void* DragImageRef;
74 #endif 70 #endif
75 71
76 IntSize dragImageSize(DragImageRef); 72 IntSize dragImageSize(DragImageRef);
77 73
78 //These functions should be memory neutral, eg. if they return a newly alloc ated image, 74 //These functions should be memory neutral, eg. if they return a newly alloc ated image,
79 //they should release the input image. As a corollary these methods don't g uarantee 75 //they should release the input image. As a corollary these methods don't g uarantee
80 //the input image ref will still be valid after they have been called 76 //the input image ref will still be valid after they have been called
81 DragImageRef fitDragImageToMaxSize(DragImageRef image, const IntSize& srcSiz e, const IntSize& size); 77 DragImageRef fitDragImageToMaxSize(DragImageRef image, const IntSize& srcSiz e, const IntSize& size);
82 DragImageRef scaleDragImage(DragImageRef, FloatSize scale); 78 DragImageRef scaleDragImage(DragImageRef, FloatSize scale);
83 DragImageRef dissolveDragImageToFraction(DragImageRef image, float delta); 79 DragImageRef dissolveDragImageToFraction(DragImageRef image, float delta);
84 80
85 DragImageRef createDragImageFromImage(Image*, RespectImageOrientationEnum = DoNotRespectImageOrientation); 81 DragImageRef createDragImageFromImage(Image*, RespectImageOrientationEnum = DoNotRespectImageOrientation);
86 DragImageRef createDragImageForSelection(Frame*); 82 DragImageRef createDragImageForSelection(Frame*);
87 DragImageRef createDragImageIconForCachedImage(CachedImage*); 83 DragImageRef createDragImageIconForCachedImage(CachedImage*);
88 DragImageRef createDragImageForLink(KURL&, const String& label, Frame*); 84 DragImageRef createDragImageForLink(KURL&, const String& label, Frame*);
89 void deleteDragImage(DragImageRef); 85 void deleteDragImage(DragImageRef);
90 } 86 }
91 87
92 88
93 #endif //!DragImage_h 89 #endif //!DragImage_h
OLDNEW
« no previous file with comments | « Source/WebCore/loader/icon/IconDatabase.cpp ('k') | Source/WebCore/platform/MIMETypeRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698