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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LayoutViewItem.h

Issue 2800813006: Move layouet/LayoutView::setSelection() to editing/LayoutSelection (Closed)
Patch Set: nit Created 3 years, 8 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 LayoutViewItem_h 5 #ifndef LayoutViewItem_h
6 #define LayoutViewItem_h 6 #define LayoutViewItem_h
7 7
8 #include "core/layout/LayoutView.h" 8 #include "core/layout/LayoutView.h"
9 #include "core/layout/api/LayoutBlockItem.h" 9 #include "core/layout/api/LayoutBlockItem.h"
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 } 45 }
46 46
47 void ClearSelection() { return ToView()->ClearSelection(); } 47 void ClearSelection() { return ToView()->ClearSelection(); }
48 48
49 bool HitTest(HitTestResult& result) { return ToView()->HitTest(result); } 49 bool HitTest(HitTestResult& result) { return ToView()->HitTest(result); }
50 50
51 bool HitTestNoLifecycleUpdate(HitTestResult& result) { 51 bool HitTestNoLifecycleUpdate(HitTestResult& result) {
52 return ToView()->HitTestNoLifecycleUpdate(result); 52 return ToView()->HitTestNoLifecycleUpdate(result);
53 } 53 }
54 54
55 IntRect SelectionBounds() { return ToView()->SelectionBounds(); }
56
57 void InvalidatePaintForSelection() {
58 return ToView()->InvalidatePaintForSelection();
59 }
60
61 // bool hitTest(HitTestResult&); 55 // bool hitTest(HitTestResult&);
62 // bool hitTestNoLifecycleUpdate(HitTestResult&); 56 // bool hitTestNoLifecycleUpdate(HitTestResult&);
63 57
64 unsigned HitTestCount() const { return ToView()->HitTestCount(); } 58 unsigned HitTestCount() const { return ToView()->HitTestCount(); }
65 59
66 unsigned HitTestCacheHits() const { return ToView()->HitTestCacheHits(); } 60 unsigned HitTestCacheHits() const { return ToView()->HitTestCacheHits(); }
67 61
68 void ClearHitTestCache() { ToView()->ClearHitTestCache(); } 62 void ClearHitTestCache() { ToView()->ClearHitTestCache(); }
69 63
70 void InvalidatePaintForViewAndCompositedLayers() { 64 void InvalidatePaintForViewAndCompositedLayers() {
(...skipping 19 matching lines...) Expand all
90 const LayoutView* ToView() const { return ToLayoutView(GetLayoutObject()); } 84 const LayoutView* ToView() const { return ToLayoutView(GetLayoutObject()); }
91 }; 85 };
92 86
93 inline LayoutViewItem LayoutItem::View() const { 87 inline LayoutViewItem LayoutItem::View() const {
94 return LayoutViewItem(layout_object_->View()); 88 return LayoutViewItem(layout_object_->View());
95 } 89 }
96 90
97 } // namespace blink 91 } // namespace blink
98 92
99 #endif // LayoutViewItem_h 93 #endif // LayoutViewItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698