| OLD | NEW |
| 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 24 matching lines...) Expand all Loading... |
| 35 #include "public/platform/WebFocusType.h" | 35 #include "public/platform/WebFocusType.h" |
| 36 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class CullRect; | 40 class CullRect; |
| 41 class Event; | 41 class Event; |
| 42 class GraphicsContext; | 42 class GraphicsContext; |
| 43 class HostWindow; | 43 class HostWindow; |
| 44 | 44 |
| 45 // The Widget class serves as a base class for FrameView, Scrollbar, and PluginV
iew. | 45 // The Widget class serves as a base class for FrameView, Scrollbar, and |
| 46 // PluginView. |
| 46 // | 47 // |
| 47 // 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 |
| 48 // 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 |
| 49 // (and therefore the Widget class has no concept of children). | 50 // (and therefore the Widget class has no concept of children). |
| 50 class PLATFORM_EXPORT Widget : public GarbageCollectedFinalized<Widget> { | 51 class PLATFORM_EXPORT Widget : public GarbageCollectedFinalized<Widget> { |
| 51 public: | 52 public: |
| 52 Widget(); | 53 Widget(); |
| 53 virtual ~Widget(); | 54 virtual ~Widget(); |
| 54 | 55 |
| 55 int x() const { return frameRect().x(); } | 56 int x() const { return frameRect().x(); } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 private: | 130 private: |
| 130 Member<Widget> m_parent; | 131 Member<Widget> m_parent; |
| 131 IntRect m_frameRect; | 132 IntRect m_frameRect; |
| 132 bool m_selfVisible; | 133 bool m_selfVisible; |
| 133 bool m_parentVisible; | 134 bool m_parentVisible; |
| 134 }; | 135 }; |
| 135 | 136 |
| 136 } // namespace blink | 137 } // namespace blink |
| 137 | 138 |
| 138 #endif // Widget_h | 139 #endif // Widget_h |
| OLD | NEW |