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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.h

Issue 2845583002: Remove FrameViewBase as base class of RemoteFrameView. (Closed)
Patch Set: fix scrollbar inactive 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 virtual bool IsActive() const = 0; 173 virtual bool IsActive() const = 0;
174 virtual int ScrollSize(ScrollbarOrientation) const = 0; 174 virtual int ScrollSize(ScrollbarOrientation) const = 0;
175 void SetScrollbarNeedsPaintInvalidation(ScrollbarOrientation); 175 void SetScrollbarNeedsPaintInvalidation(ScrollbarOrientation);
176 virtual bool IsScrollCornerVisible() const = 0; 176 virtual bool IsScrollCornerVisible() const = 0;
177 virtual IntRect ScrollCornerRect() const = 0; 177 virtual IntRect ScrollCornerRect() const = 0;
178 void SetScrollCornerNeedsPaintInvalidation(); 178 void SetScrollCornerNeedsPaintInvalidation();
179 virtual void GetTickmarks(Vector<IntRect>&) const {} 179 virtual void GetTickmarks(Vector<IntRect>&) const {}
180 180
181 // Convert points and rects between the scrollbar and its containing 181 // Convert points and rects between the scrollbar and its containing
182 // FrameViewBase. The client needs to implement these in order to be aware of 182 // FrameView. The client needs to implement these in order to be aware of
183 // layout effects like CSS transforms. 183 // layout effects like CSS transforms.
184 virtual IntRect ConvertFromScrollbarToContainingFrameViewBase( 184 virtual IntRect ConvertFromScrollbarToContainingFrameView(
185 const Scrollbar& scrollbar, 185 const Scrollbar& scrollbar,
186 const IntRect& scrollbar_rect) const { 186 const IntRect& scrollbar_rect) const {
187 IntRect local_rect = scrollbar_rect; 187 IntRect local_rect = scrollbar_rect;
188 local_rect.MoveBy(scrollbar.Location()); 188 local_rect.MoveBy(scrollbar.Location());
189 return local_rect; 189 return local_rect;
190 } 190 }
191 virtual IntPoint ConvertFromContainingFrameViewBaseToScrollbar( 191 virtual IntPoint ConvertFromContainingFrameViewToScrollbar(
192 const Scrollbar& scrollbar, 192 const Scrollbar& scrollbar,
193 const IntPoint& parent_point) const { 193 const IntPoint& parent_point) const {
194 NOTREACHED(); 194 NOTREACHED();
195 return parent_point; 195 return parent_point;
196 } 196 }
197 virtual IntPoint ConvertFromScrollbarToContainingFrameViewBase( 197 virtual IntPoint ConvertFromScrollbarToContainingFrameView(
198 const Scrollbar& scrollbar, 198 const Scrollbar& scrollbar,
199 const IntPoint& scrollbar_point) const { 199 const IntPoint& scrollbar_point) const {
200 NOTREACHED(); 200 NOTREACHED();
201 return scrollbar_point; 201 return scrollbar_point;
202 } 202 }
203 virtual Scrollbar* HorizontalScrollbar() const { return nullptr; } 203 virtual Scrollbar* HorizontalScrollbar() const { return nullptr; }
204 virtual Scrollbar* VerticalScrollbar() const { return nullptr; } 204 virtual Scrollbar* VerticalScrollbar() const { return nullptr; }
205 205
206 virtual PaintLayer* Layer() const { return nullptr; } 206 virtual PaintLayer* Layer() const { return nullptr; }
207 207
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 // vertical-lr / ltr NO NO 450 // vertical-lr / ltr NO NO
451 // vertical-lr / rtl NO YES 451 // vertical-lr / rtl NO YES
452 // vertical-rl / ltr YES NO 452 // vertical-rl / ltr YES NO
453 // vertical-rl / rtl YES YES 453 // vertical-rl / rtl YES YES
454 IntPoint scroll_origin_; 454 IntPoint scroll_origin_;
455 }; 455 };
456 456
457 } // namespace blink 457 } // namespace blink
458 458
459 #endif // ScrollableArea_h 459 #endif // ScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698