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

Side by Side Diff: third_party/WebKit/Source/platform/Widget.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2008 Collabora Ltd. All rights reserved. 3 * Copyright (C) 2008 Collabora Ltd. All rights reserved.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 30 matching lines...) Expand all
41 class CullRect; 41 class CullRect;
42 class Event; 42 class Event;
43 class GraphicsContext; 43 class GraphicsContext;
44 class HostWindow; 44 class HostWindow;
45 45
46 // The Widget class serves as a base class for FrameView, Scrollbar, and PluginV iew. 46 // The Widget class serves as a base class for FrameView, Scrollbar, and PluginV iew.
47 // 47 //
48 // Widgets are connected in a hierarchy, with the restriction that plugins and 48 // Widgets are connected in a hierarchy, with the restriction that plugins and
49 // scrollbars are always leaves of the tree. Only FrameView can have children 49 // scrollbars are always leaves of the tree. Only FrameView can have children
50 // (and therefore the Widget class has no concept of children). 50 // (and therefore the Widget class has no concept of children).
51 class PLATFORM_EXPORT Widget : public RefCountedWillBeGarbageCollectedFinalized< Widget> { 51 class PLATFORM_EXPORT Widget : public GarbageCollectedFinalized<Widget> {
52 public: 52 public:
53 Widget(); 53 Widget();
54 virtual ~Widget(); 54 virtual ~Widget();
55 55
56 int x() const { return frameRect().x(); } 56 int x() const { return frameRect().x(); }
57 int y() const { return frameRect().y(); } 57 int y() const { return frameRect().y(); }
58 int width() const { return frameRect().width(); } 58 int width() const { return frameRect().width(); }
59 int height() const { return frameRect().height(); } 59 int height() const { return frameRect().height(); }
60 IntSize size() const { return frameRect().size(); } 60 IntSize size() const { return frameRect().size(); }
61 IntPoint location() const { return frameRect().location(); } 61 IntPoint location() const { return frameRect().location(); }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual IntPoint convertChildToSelf(const Widget*, const IntPoint&) const; 117 virtual IntPoint convertChildToSelf(const Widget*, const IntPoint&) const;
118 virtual IntPoint convertSelfToChild(const Widget*, const IntPoint&) const; 118 virtual IntPoint convertSelfToChild(const Widget*, const IntPoint&) const;
119 119
120 // Notifies this widget that it will no longer be receiving events. 120 // Notifies this widget that it will no longer be receiving events.
121 virtual void eventListenersRemoved() { } 121 virtual void eventListenersRemoved() { }
122 122
123 DECLARE_VIRTUAL_TRACE(); 123 DECLARE_VIRTUAL_TRACE();
124 virtual void dispose() { } 124 virtual void dispose() { }
125 125
126 private: 126 private:
127 RawPtrWillBeMember<Widget> m_parent; 127 Member<Widget> m_parent;
128 IntRect m_frame; 128 IntRect m_frame;
129 bool m_selfVisible; 129 bool m_selfVisible;
130 bool m_parentVisible; 130 bool m_parentVisible;
131 }; 131 };
132 132
133 } // namespace blink 133 } // namespace blink
134 134
135 #endif // Widget_h 135 #endif // Widget_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/Supplementable.h ('k') | third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698