Chromium Code Reviews| 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 21 matching lines...) Expand all Loading... | |
| 32 #include "platform/geometry/FloatPoint.h" | 32 #include "platform/geometry/FloatPoint.h" |
| 33 #include "platform/geometry/IntRect.h" | 33 #include "platform/geometry/IntRect.h" |
| 34 #include "wtf/Forward.h" | 34 #include "wtf/Forward.h" |
| 35 #include "wtf/RefCounted.h" | 35 #include "wtf/RefCounted.h" |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace WebCore { |
| 38 | 38 |
| 39 class Event; | 39 class Event; |
| 40 class GraphicsContext; | 40 class GraphicsContext; |
| 41 class HostWindow; | 41 class HostWindow; |
| 42 #if ENABLE(OILPAN) | |
|
tkent
2014/06/25 05:05:40
nit: You don't need to add |#if ENABLE(OILPAN)| to
| |
| 43 class ScriptController; | |
| 44 #endif | |
| 42 | 45 |
| 43 // The Widget class serves as a base class for three kinds of objects: | 46 // The Widget class serves as a base class for three kinds of objects: |
| 44 // (1) Scrollable areas (ScrollView) | 47 // (1) Scrollable areas (ScrollView) |
| 45 // (2) Scrollbars (Scrollbar) | 48 // (2) Scrollbars (Scrollbar) |
| 46 // (3) Plugins (PluginView) | 49 // (3) Plugins (PluginView) |
| 47 // | 50 // |
| 48 // Widgets are connected in a hierarchy, with the restriction that plugins and | 51 // Widgets are connected in a hierarchy, with the restriction that plugins and |
| 49 // scrollbars are always leaves of the tree. Only ScrollViews can have children | 52 // scrollbars are always leaves of the tree. Only ScrollViews can have children |
| 50 // (and therefore the Widget class has no concept of children). | 53 // (and therefore the Widget class has no concept of children). |
| 51 class PLATFORM_EXPORT Widget : public RefCounted<Widget> { | 54 class PLATFORM_EXPORT Widget : public RefCounted<Widget> { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 126 virtual IntPoint convertToContainingView(const IntPoint&) const; | 129 virtual IntPoint convertToContainingView(const IntPoint&) const; |
| 127 virtual IntPoint convertFromContainingView(const IntPoint&) const; | 130 virtual IntPoint convertFromContainingView(const IntPoint&) const; |
| 128 | 131 |
| 129 // Virtual methods to convert points to/from child widgets | 132 // Virtual methods to convert points to/from child widgets |
| 130 virtual IntPoint convertChildToSelf(const Widget*, const IntPoint&) const; | 133 virtual IntPoint convertChildToSelf(const Widget*, const IntPoint&) const; |
| 131 virtual IntPoint convertSelfToChild(const Widget*, const IntPoint&) const; | 134 virtual IntPoint convertSelfToChild(const Widget*, const IntPoint&) const; |
| 132 | 135 |
| 133 // Notifies this widget that it will no longer be receiving events. | 136 // Notifies this widget that it will no longer be receiving events. |
| 134 virtual void eventListenersRemoved() { } | 137 virtual void eventListenersRemoved() { } |
| 135 | 138 |
| 139 #if ENABLE(OILPAN) | |
| 140 virtual void detach() { } | |
| 141 | |
| 142 virtual void setScriptController(ScriptController*) { } | |
| 143 #endif | |
| 144 | |
| 136 private: | 145 private: |
| 137 Widget* m_parent; | 146 Widget* m_parent; |
| 138 IntRect m_frame; | 147 IntRect m_frame; |
| 139 bool m_selfVisible; | 148 bool m_selfVisible; |
| 140 bool m_parentVisible; | 149 bool m_parentVisible; |
| 141 }; | 150 }; |
| 142 | 151 |
| 143 } // namespace WebCore | 152 } // namespace WebCore |
| 144 | 153 |
| 145 #endif // Widget_h | 154 #endif // Widget_h |
| OLD | NEW |