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

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

Issue 10790019: Add gesture target fuzzing to views (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 | « no previous file | ui/views/view.cc » ('j') | ui/views/view.cc » ('J')
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 <algorithm> 8 #include <algorithm>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 // view), then reorders the immediate children of that layer to match the 1010 // view), then reorders the immediate children of that layer to match the
1011 // order of the view tree. 1011 // order of the view tree.
1012 virtual void ReorderLayers(); 1012 virtual void ReorderLayers();
1013 1013
1014 // This reorders the immediate children of |*parent_layer| to match the 1014 // This reorders the immediate children of |*parent_layer| to match the
1015 // order of the view tree. 1015 // order of the view tree.
1016 virtual void ReorderChildLayers(ui::Layer* parent_layer); 1016 virtual void ReorderChildLayers(ui::Layer* parent_layer);
1017 1017
1018 // Input --------------------------------------------------------------------- 1018 // Input ---------------------------------------------------------------------
1019 1019
1020 // Considers all descendant views for which |touchRect| covers at least
1021 // views::kFuzzingOverlapPercentage of the area of the view's bounding
1022 // rectangle. Among these candidates, |closestOverlappedRect| is set to
1023 // be the bounding rectangle that is closest to the center of |touchRect|
1024 // using a distance-to-center-line metric. |closestOverlappedRect| remains
1025 // empty if there are no such candidates.
sadrul 2012/07/16 22:16:14 I can't say I understand this comment very well ..
tdanderson 2012/07/17 19:07:07 Done.
1026 virtual void FindClosestOverlappedRect(const gfx::Rect& touchRect,
sadrul 2012/07/16 22:16:14 touch_rect etc. (chrome doesn't use camelCase). Y
tdanderson 2012/07/17 19:07:07 Done.
1027 gfx::Rect& closestOverlappedRect);
1028
1020 // Called by HitTest to see if this View has a custom hit test mask. If the 1029 // Called by HitTest to see if this View has a custom hit test mask. If the
1021 // return value is true, GetHitTestMask will be called to obtain the mask. 1030 // return value is true, GetHitTestMask will be called to obtain the mask.
1022 // Default value is false, in which case the View will hit-test against its 1031 // Default value is false, in which case the View will hit-test against its
1023 // bounds. 1032 // bounds.
1024 virtual bool HasHitTestMask() const; 1033 virtual bool HasHitTestMask() const;
1025 1034
1026 // Called by HitTest to retrieve a mask for hit-testing against. Subclasses 1035 // Called by HitTest to retrieve a mask for hit-testing against. Subclasses
1027 // override to provide custom shaped hit test regions. 1036 // override to provide custom shaped hit test regions.
1028 virtual void GetHitTestMask(gfx::Path* mask) const; 1037 virtual void GetHitTestMask(gfx::Path* mask) const;
1029 1038
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1467 base::win::ScopedComPtr<NativeViewAccessibilityWin> 1476 base::win::ScopedComPtr<NativeViewAccessibilityWin>
1468 native_view_accessibility_win_; 1477 native_view_accessibility_win_;
1469 #endif 1478 #endif
1470 1479
1471 DISALLOW_COPY_AND_ASSIGN(View); 1480 DISALLOW_COPY_AND_ASSIGN(View);
1472 }; 1481 };
1473 1482
1474 } // namespace views 1483 } // namespace views
1475 1484
1476 #endif // UI_VIEWS_VIEW_H_ 1485 #endif // UI_VIEWS_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/view.cc » ('j') | ui/views/view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698