| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 virtual void hide() { } | 78 virtual void hide() { } |
| 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 isPluginView() const { return false; } | 86 virtual bool isPluginView() const { return false; } |
| 87 virtual bool isPluginContainer() const { return false; } | 87 virtual bool isPluginContainer() const { return false; } |
| 88 virtual bool pluginShouldPersist() const { return false; } |
| 88 virtual bool isScrollbar() const { return false; } | 89 virtual bool isScrollbar() const { return false; } |
| 89 virtual bool isScrollView() const { return false; } | 90 virtual bool isScrollView() const { return false; } |
| 90 | 91 |
| 91 virtual HostWindow* hostWindow() const { ASSERT_NOT_REACHED(); return 0; } | 92 virtual HostWindow* hostWindow() const { ASSERT_NOT_REACHED(); return 0; } |
| 92 virtual void setParent(Widget*); | 93 virtual void setParent(Widget*); |
| 93 Widget* parent() const { return m_parent; } | 94 Widget* parent() const { return m_parent; } |
| 94 Widget* root() const; | 95 Widget* root() const; |
| 95 | 96 |
| 96 virtual void handleEvent(Event*) { } | 97 virtual void handleEvent(Event*) { } |
| 97 | 98 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 private: | 136 private: |
| 136 Widget* m_parent; | 137 Widget* m_parent; |
| 137 IntRect m_frame; | 138 IntRect m_frame; |
| 138 bool m_selfVisible; | 139 bool m_selfVisible; |
| 139 bool m_parentVisible; | 140 bool m_parentVisible; |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 } // namespace WebCore | 143 } // namespace WebCore |
| 143 | 144 |
| 144 #endif // Widget_h | 145 #endif // Widget_h |
| OLD | NEW |