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/platform/scroll/Scrollbar.h

Issue 685593005: Remove concept of child Widgets. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/platform/Widget.h ('k') | sky/engine/platform/scroll/Scrollbar.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) 2004, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2006 Apple Computer, 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 int x() const { return Widget::x(); } 51 int x() const { return Widget::x(); }
52 int y() const { return Widget::y(); } 52 int y() const { return Widget::y(); }
53 int width() const { return Widget::width(); } 53 int width() const { return Widget::width(); }
54 int height() const { return Widget::height(); } 54 int height() const { return Widget::height(); }
55 IntSize size() const { return Widget::size(); } 55 IntSize size() const { return Widget::size(); }
56 IntPoint location() const { return Widget::location(); } 56 IntPoint location() const { return Widget::location(); }
57 57
58 Widget* parent() const { return Widget::parent(); } 58 Widget* parent() const { return Widget::parent(); }
59 Widget* root() const { return Widget::root(); } 59 Widget* root() const { return Widget::root(); }
60 60
61 void removeFromParent();
62
63 void setFrameRect(const IntRect& r) { Widget::setFrameRect(r); } 61 void setFrameRect(const IntRect& r) { Widget::setFrameRect(r); }
64 IntRect frameRect() const { return Widget::frameRect(); } 62 IntRect frameRect() const { return Widget::frameRect(); }
65 63
66 void invalidate() { Widget::invalidate(); } 64 void invalidate() { Widget::invalidate(); }
67 void invalidateRect(const IntRect&); 65 void invalidateRect(const IntRect&);
68 66
69 ScrollbarOverlayStyle scrollbarOverlayStyle() const; 67 ScrollbarOverlayStyle scrollbarOverlayStyle() const;
70 void getTickmarks(Vector<IntRect>&) const; 68 void getTickmarks(Vector<IntRect>&) const;
71 bool isScrollableAreaActive() const; 69 bool isScrollableAreaActive() const;
72 bool isScrollViewScrollbar() const; 70 bool isScrollViewScrollbar() const;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 virtual bool isScrollbar() const override { return true; } 221 virtual bool isScrollbar() const override { return true; }
224 222
225 float scrollableAreaCurrentPos() const; 223 float scrollableAreaCurrentPos() const;
226 }; 224 };
227 225
228 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar()); 226 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar());
229 227
230 } // namespace blink 228 } // namespace blink
231 229
232 #endif // Scrollbar_h 230 #endif // Scrollbar_h
OLDNEW
« no previous file with comments | « sky/engine/platform/Widget.h ('k') | sky/engine/platform/scroll/Scrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698