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

Side by Side Diff: sky/engine/core/rendering/RenderObject.h

Issue 924273002: Remove HitTestFilter. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase Created 5 years, 10 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 | « sky/engine/core/rendering/RenderLayer.cpp ('k') | sky/engine/core/rendering/RenderObject.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 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 class TransformState; 61 class TransformState;
62 62
63 struct PaintInfo; 63 struct PaintInfo;
64 64
65 enum CursorDirective { 65 enum CursorDirective {
66 SetCursorBasedOnStyle, 66 SetCursorBasedOnStyle,
67 SetCursor, 67 SetCursor,
68 DoNotSetCursor 68 DoNotSetCursor
69 }; 69 };
70 70
71 enum HitTestFilter {
72 HitTestAll,
73 HitTestSelf,
74 HitTestDescendants
75 };
76
77 enum HitTestAction { 71 enum HitTestAction {
78 HitTestBlockBackground, 72 HitTestBlockBackground,
79 HitTestForeground 73 HitTestForeground
80 }; 74 };
81 75
82 // Sides used when drawing borders and outlines. The values should run clockwise from top. 76 // Sides used when drawing borders and outlines. The values should run clockwise from top.
83 enum BoxSide { 77 enum BoxSide {
84 BSTop, 78 BSTop,
85 BSRight, 79 BSRight,
86 BSBottom, 80 BSBottom,
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 // Subclasses must reimplement this method to compute the size and position 437 // Subclasses must reimplement this method to compute the size and position
444 // of this object and all its descendants. 438 // of this object and all its descendants.
445 virtual void layout() = 0; 439 virtual void layout() = 0;
446 440
447 /* This function performs a layout only if one is needed. */ 441 /* This function performs a layout only if one is needed. */
448 void layoutIfNeeded() { if (needsLayout()) layout(); } 442 void layoutIfNeeded() { if (needsLayout()) layout(); }
449 443
450 void forceLayout(); 444 void forceLayout();
451 void forceChildLayout(); 445 void forceChildLayout();
452 446
453 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l ocationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter = HitTes tAll); 447 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l ocationInContainer, const LayoutPoint& accumulatedOffset);
454 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); 448 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&);
455 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion); 449 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion);
456 450
457 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); 451 virtual PositionWithAffinity positionForPoint(const LayoutPoint&);
458 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity); 452 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity);
459 PositionWithAffinity createPositionWithAffinity(const Position&); 453 PositionWithAffinity createPositionWithAffinity(const Position&);
460 454
461 virtual void dirtyLinesFromChangedChild(RenderObject*); 455 virtual void dirtyLinesFromChangedChild(RenderObject*);
462 456
463 // Set the style of the object and update the state of the object accordingl y. 457 // Set the style of the object and update the state of the object accordingl y.
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 void showTree(const blink::RenderObject*); 908 void showTree(const blink::RenderObject*);
915 void showLineTree(const blink::RenderObject*); 909 void showLineTree(const blink::RenderObject*);
916 void showRenderTree(const blink::RenderObject* object1); 910 void showRenderTree(const blink::RenderObject* object1);
917 // We don't make object2 an optional parameter so that showRenderTree 911 // We don't make object2 an optional parameter so that showRenderTree
918 // can be called from gdb easily. 912 // can be called from gdb easily.
919 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 913 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
920 914
921 #endif 915 #endif
922 916
923 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ 917 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.cpp ('k') | sky/engine/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698