| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 bool isVisible() const { | 85 bool isVisible() const { |
| 86 return m_selfVisible && m_parentVisible; | 86 return m_selfVisible && m_parentVisible; |
| 87 } // Whether or not we are actually visible. | 87 } // Whether or not we are actually visible. |
| 88 virtual void setParentVisible(bool visible) { m_parentVisible = visible; } | 88 virtual void setParentVisible(bool visible) { m_parentVisible = visible; } |
| 89 void setSelfVisible(bool v) { m_selfVisible = v; } | 89 void setSelfVisible(bool v) { m_selfVisible = v; } |
| 90 | 90 |
| 91 virtual bool isFrameView() const { return false; } | 91 virtual bool isFrameView() const { return false; } |
| 92 virtual bool isRemoteFrameView() const { return false; } | 92 virtual bool isRemoteFrameView() const { return false; } |
| 93 virtual bool isPluginView() const { return false; } | 93 virtual bool isPluginView() const { return false; } |
| 94 virtual bool isPluginContainer() const { return false; } | 94 virtual bool isPluginContainer() const { return false; } |
| 95 virtual bool isPlaceholder() { return false; } |
| 95 virtual bool isScrollbar() const { return false; } | 96 virtual bool isScrollbar() const { return false; } |
| 96 | 97 |
| 97 virtual void setParent(Widget*); | 98 virtual void setParent(Widget*); |
| 98 Widget* parent() const { return m_parent; } | 99 Widget* parent() const { return m_parent; } |
| 99 Widget* root() const; | 100 Widget* root() const; |
| 100 | 101 |
| 101 virtual void handleEvent(Event*) {} | 102 virtual void handleEvent(Event*) {} |
| 102 | 103 |
| 103 IntRect convertToRootFrame(const IntRect&) const; | 104 IntRect convertToRootFrame(const IntRect&) const; |
| 104 IntRect convertFromRootFrame(const IntRect&) const; | 105 IntRect convertFromRootFrame(const IntRect&) const; |
| (...skipping 24 matching lines...) Expand all 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 |