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: sky/engine/core/rendering/RenderObject.h

Issue 924273003: Remove HitTestAction. (Closed) Base URL: git@github.com:domokit/mojo.git@hittestfilter
Patch Set: 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
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 HitTestAction {
72 HitTestBlockBackground,
73 HitTestForeground
74 };
75
76 // Sides used when drawing borders and outlines. The values should run clockwise from top. 71 // Sides used when drawing borders and outlines. The values should run clockwise from top.
77 enum BoxSide { 72 enum BoxSide {
78 BSTop, 73 BSTop,
79 BSRight, 74 BSRight,
80 BSBottom, 75 BSBottom,
81 BSLeft 76 BSLeft
82 }; 77 };
83 78
84 enum MarkingBehavior { 79 enum MarkingBehavior {
85 MarkOnlyThis, 80 MarkOnlyThis,
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 void setAncestorLineBoxDirty(bool value = true) 286 void setAncestorLineBoxDirty(bool value = true)
292 { 287 {
293 m_bitfields.setAncestorLineBoxDirty(value); 288 m_bitfields.setAncestorLineBoxDirty(value);
294 if (value) 289 if (value)
295 setNeedsLayout(); 290 setNeedsLayout();
296 } 291 }
297 292
298 // SVG uses FloatPoint precise hit testing, and passes the point in parent 293 // SVG uses FloatPoint precise hit testing, and passes the point in parent
299 // coordinates instead of in paint invalidaiton container coordinates. Event ually the 294 // coordinates instead of in paint invalidaiton container coordinates. Event ually the
300 // rest of the rendering tree will move to a similar model. 295 // rest of the rendering tree will move to a similar model.
301 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F loatPoint& pointInParent, HitTestAction); 296 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F loatPoint& pointInParent);
302 297
303 bool canHaveWhitespaceChildren() const 298 bool canHaveWhitespaceChildren() const
304 { 299 {
305 return !isFlexibleBox(); 300 return !isFlexibleBox();
306 } 301 }
307 302
308 bool isAnonymous() const { return m_bitfields.isAnonymous(); } 303 bool isAnonymous() const { return m_bitfields.isAnonymous(); }
309 bool isAnonymousBlock() const 304 bool isAnonymousBlock() const
310 { 305 {
311 // This function is kept in sync with anonymous block creation condition s in 306 // This function is kept in sync with anonymous block creation condition s in
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 virtual void layout() = 0; 434 virtual void layout() = 0;
440 435
441 /* This function performs a layout only if one is needed. */ 436 /* This function performs a layout only if one is needed. */
442 void layoutIfNeeded() { if (needsLayout()) layout(); } 437 void layoutIfNeeded() { if (needsLayout()) layout(); }
443 438
444 void forceLayout(); 439 void forceLayout();
445 void forceChildLayout(); 440 void forceChildLayout();
446 441
447 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l ocationInContainer, const LayoutPoint& accumulatedOffset); 442 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l ocationInContainer, const LayoutPoint& accumulatedOffset);
448 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); 443 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&);
449 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion); 444 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset);
450 445
451 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); 446 virtual PositionWithAffinity positionForPoint(const LayoutPoint&);
452 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity); 447 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity);
453 PositionWithAffinity createPositionWithAffinity(const Position&); 448 PositionWithAffinity createPositionWithAffinity(const Position&);
454 449
455 virtual void dirtyLinesFromChangedChild(RenderObject*); 450 virtual void dirtyLinesFromChangedChild(RenderObject*);
456 451
457 // Set the style of the object and update the state of the object accordingl y. 452 // Set the style of the object and update the state of the object accordingl y.
458 void setStyle(PassRefPtr<RenderStyle>); 453 void setStyle(PassRefPtr<RenderStyle>);
459 454
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 void showTree(const blink::RenderObject*); 903 void showTree(const blink::RenderObject*);
909 void showLineTree(const blink::RenderObject*); 904 void showLineTree(const blink::RenderObject*);
910 void showRenderTree(const blink::RenderObject* object1); 905 void showRenderTree(const blink::RenderObject* object1);
911 // We don't make object2 an optional parameter so that showRenderTree 906 // We don't make object2 an optional parameter so that showRenderTree
912 // can be called from gdb easily. 907 // can be called from gdb easily.
913 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 908 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
914 909
915 #endif 910 #endif
916 911
917 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ 912 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLineBoxList.cpp ('k') | sky/engine/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698