| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 bool isSelfVisible() const { return m_selfVisible; } // Whether or not we ha
ve been explicitly marked as visible or not. | 79 bool isSelfVisible() const { return m_selfVisible; } // Whether or not we ha
ve been explicitly marked as visible or not. |
| 80 bool isParentVisible() const { return m_parentVisible; } // Whether or not o
ur parent is visible. | 80 bool isParentVisible() const { return m_parentVisible; } // Whether or not o
ur parent is visible. |
| 81 bool isVisible() const { return m_selfVisible && m_parentVisible; } // Wheth
er or not we are actually visible. | 81 bool isVisible() const { return m_selfVisible && m_parentVisible; } // Wheth
er or not we are actually visible. |
| 82 virtual void setParentVisible(bool visible) { m_parentVisible = visible; } | 82 virtual void setParentVisible(bool visible) { m_parentVisible = visible; } |
| 83 void setSelfVisible(bool v) { m_selfVisible = v; } | 83 void setSelfVisible(bool v) { m_selfVisible = v; } |
| 84 | 84 |
| 85 virtual bool isFrameView() const { return false; } | 85 virtual bool isFrameView() const { return false; } |
| 86 virtual bool isRemoteFrameView() const { return false; } | 86 virtual bool isRemoteFrameView() const { return false; } |
| 87 virtual bool isPluginView() const { return false; } | 87 virtual bool isPluginView() const { return false; } |
| 88 virtual bool isPluginContainer() const { return false; } | 88 virtual bool isPluginContainer() const { return false; } |
| 89 virtual bool pluginShouldPersist() const { return false; } |
| 89 virtual bool isScrollbar() const { return false; } | 90 virtual bool isScrollbar() const { return false; } |
| 90 virtual bool isScrollView() const { return false; } | 91 virtual bool isScrollView() const { return false; } |
| 91 | 92 |
| 92 virtual HostWindow* hostWindow() const { ASSERT_NOT_REACHED(); return 0; } | 93 virtual HostWindow* hostWindow() const { ASSERT_NOT_REACHED(); return 0; } |
| 93 virtual void setParent(Widget*); | 94 virtual void setParent(Widget*); |
| 94 Widget* parent() const { return m_parent; } | 95 Widget* parent() const { return m_parent; } |
| 95 Widget* root() const; | 96 Widget* root() const; |
| 96 | 97 |
| 97 virtual void handleEvent(Event*) { } | 98 virtual void handleEvent(Event*) { } |
| 98 | 99 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 private: | 134 private: |
| 134 Widget* m_parent; | 135 Widget* m_parent; |
| 135 IntRect m_frame; | 136 IntRect m_frame; |
| 136 bool m_selfVisible; | 137 bool m_selfVisible; |
| 137 bool m_parentVisible; | 138 bool m_parentVisible; |
| 138 }; | 139 }; |
| 139 | 140 |
| 140 } // namespace WebCore | 141 } // namespace WebCore |
| 141 | 142 |
| 142 #endif // Widget_h | 143 #endif // Widget_h |
| OLD | NEW |