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

Side by Side Diff: ui/views/view.h

Issue 2849953004: SV Test
Patch Set: Created 3 years, 7 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 | « ui/gfx/canvas.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_VIEW_H_ 5 #ifndef UI_VIEWS_VIEW_H_
6 #define UI_VIEWS_VIEW_H_ 6 #define UI_VIEWS_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 void SchedulePaintOnParent(); 1297 void SchedulePaintOnParent();
1298 1298
1299 // Returns whether this view is eligible for painting, i.e. is visible and 1299 // Returns whether this view is eligible for painting, i.e. is visible and
1300 // nonempty. Note that this does not behave like IsDrawn(), since it doesn't 1300 // nonempty. Note that this does not behave like IsDrawn(), since it doesn't
1301 // check ancestors recursively; rather, it's used to prune subtrees of views 1301 // check ancestors recursively; rather, it's used to prune subtrees of views
1302 // during painting. 1302 // during painting.
1303 bool ShouldPaint() const; 1303 bool ShouldPaint() const;
1304 1304
1305 // Returns the offset that should be used when constructing the paint context 1305 // Returns the offset that should be used when constructing the paint context
1306 // for this view. 1306 // for this view.
1307 gfx::Vector2d GetPaintContextOffset() const; 1307 gfx::Vector2d GetPaintContextOffset(const gfx::Rect& pixel_bounds) const;
1308 1308
1309 // Adjusts the transform of |recorder| in advance of painting. 1309 // Adjusts the transform of |recorder| in advance of painting.
1310 void SetupTransformRecorderForPainting(ui::TransformRecorder* recorder) const; 1310 void SetupTransformRecorderForPainting(
1311 ui::TransformRecorder* recorder,
1312 gfx::Vector2d offset_from_parent) const;
1311 1313
1312 // Recursively calls the painting method |func| on all non-layered children, 1314 // Recursively calls the painting method |func| on all non-layered children,
1313 // in Z order. 1315 // in Z order.
1314 void RecursivePaintHelper(void (View::*func)(const ui::PaintContext&), 1316 void RecursivePaintHelper(void (View::*func)(const ui::PaintContext&),
1315 const ui::PaintContext& context); 1317 const ui::PaintContext& context);
1316 1318
1317 // Invokes Paint() and, if necessary, PaintDebugRects(). Should be called 1319 // Invokes Paint() and, if necessary, PaintDebugRects(). Should be called
1318 // only on the root of a widget/layer. PaintDebugRects() is invoked as a 1320 // only on the root of a widget/layer. PaintDebugRects() is invoked as a
1319 // separate pass, instead of being rolled into Paint(), so that siblings will 1321 // separate pass, instead of being rolled into Paint(), so that siblings will
1320 // not obscure debug rects. 1322 // not obscure debug rects.
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 // Observers ------------------------------------------------------------- 1695 // Observers -------------------------------------------------------------
1694 1696
1695 base::ObserverList<ViewObserver> observers_; 1697 base::ObserverList<ViewObserver> observers_;
1696 1698
1697 DISALLOW_COPY_AND_ASSIGN(View); 1699 DISALLOW_COPY_AND_ASSIGN(View);
1698 }; 1700 };
1699 1701
1700 } // namespace views 1702 } // namespace views
1701 1703
1702 #endif // UI_VIEWS_VIEW_H_ 1704 #endif // UI_VIEWS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/gfx/canvas.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698