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

Side by Side Diff: include/views/SkView.h

Issue 544233002: "NULL !=" = NULL (Closed) Base URL: https://skia.googlesource.com/skia.git@are
Patch Set: rebase Created 6 years, 3 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
« no previous file with comments | « include/utils/win/SkTScopedComPtr.h ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkView_DEFINED 10 #ifndef SkView_DEFINED
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 such that it will be drawn after all other child views. 203 such that it will be drawn after all other child views.
204 The child view parameter is returned. 204 The child view parameter is returned.
205 */ 205 */
206 /** Detach all child views from this view. */ 206 /** Detach all child views from this view. */
207 void detachAllChildren(); 207 void detachAllChildren();
208 208
209 /** Convert the specified point from global coordinates into view-local coor dinates 209 /** Convert the specified point from global coordinates into view-local coor dinates
210 * Return true on success; false on failure 210 * Return true on success; false on failure
211 */ 211 */
212 bool globalToLocal(SkPoint* pt) const { 212 bool globalToLocal(SkPoint* pt) const {
213 if (NULL != pt) { 213 if (pt) {
214 return this->globalToLocal(pt->fX, pt->fY, pt); 214 return this->globalToLocal(pt->fX, pt->fY, pt);
215 } 215 }
216 return true; // nothing to do so return true 216 return true; // nothing to do so return true
217 } 217 }
218 /** Convert the specified x,y from global coordinates into view-local coordi nates, returning 218 /** Convert the specified x,y from global coordinates into view-local coordi nates, returning
219 the answer in the local parameter. 219 the answer in the local parameter.
220 */ 220 */
221 bool globalToLocal(SkScalar globalX, SkScalar globalY, SkPoint* local ) const; 221 bool globalToLocal(SkScalar globalX, SkScalar globalY, SkPoint* local ) const;
222 222
223 /** \class F2BIter 223 /** \class F2BIter
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 friend class SkLayerView; 396 friend class SkLayerView;
397 397
398 bool setFocusView(SkView* fvOrNull); 398 bool setFocusView(SkView* fvOrNull);
399 SkView* acceptFocus(FocusDirection); 399 SkView* acceptFocus(FocusDirection);
400 void detachFromParent_NoLayout(); 400 void detachFromParent_NoLayout();
401 /** Compute the matrix to transform view-local coordinates into global ones */ 401 /** Compute the matrix to transform view-local coordinates into global ones */
402 void localToGlobal(SkMatrix* matrix) const; 402 void localToGlobal(SkMatrix* matrix) const;
403 }; 403 };
404 404
405 #endif 405 #endif
OLDNEW
« no previous file with comments | « include/utils/win/SkTScopedComPtr.h ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698