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

Side by Side Diff: third_party/WebKit/Source/platform/DragImage.h

Issue 1425593007: Separate display item clients for negative and normal/positive z-order children (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Struct DisplayItemClient Created 5 years, 1 month 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
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 float resolutionScale() const { return m_resolutionScale; } 58 float resolutionScale() const { return m_resolutionScale; }
59 IntSize size() const { return IntSize(m_bitmap.width(), m_bitmap.height()); } 59 IntSize size() const { return IntSize(m_bitmap.width(), m_bitmap.height()); }
60 60
61 void scale(float scaleX, float scaleY); 61 void scale(float scaleX, float scaleY);
62 62
63 static PassRefPtr<SkImage> resizeAndOrientImage(PassRefPtr<SkImage>, ImageOr ientation, FloatSize imageScale = FloatSize(1, 1), float opacity = 1.0, Interpol ationQuality = InterpolationNone); 63 static PassRefPtr<SkImage> resizeAndOrientImage(PassRefPtr<SkImage>, ImageOr ientation, FloatSize imageScale = FloatSize(1, 1), float opacity = 1.0, Interpol ationQuality = InterpolationNone);
64 64
65 private: 65 private:
66 DragImage(const SkBitmap&, float resolutionScale, InterpolationQuality); 66 DragImage(const SkBitmap&, float resolutionScale, InterpolationQuality);
67 67
68 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi s); } 68 DisplayItemClient displayItemClient() const { return DisplayItemClient(this) ; }
69 69
70 SkBitmap m_bitmap; 70 SkBitmap m_bitmap;
71 float m_resolutionScale; 71 float m_resolutionScale;
72 InterpolationQuality m_interpolationQuality; 72 InterpolationQuality m_interpolationQuality;
73 }; 73 };
74 74
75 } 75 }
76 76
77 #endif // DragImage_h 77 #endif // DragImage_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698