| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 virtual void setFocus(bool, WebFocusType) { } | 74 virtual void setFocus(bool, WebFocusType) { } |
| 75 | 75 |
| 76 virtual void show() { } | 76 virtual void show() { } |
| 77 virtual void hide() { } | 77 virtual void hide() { } |
| 78 bool isSelfVisible() const { return m_selfVisible; } // Whether or not we ha
ve been explicitly marked as visible or not. | 78 bool isSelfVisible() const { return m_selfVisible; } // Whether or not we ha
ve been explicitly marked as visible or not. |
| 79 bool isParentVisible() const { return m_parentVisible; } // Whether or not o
ur parent is visible. | 79 bool isParentVisible() const { return m_parentVisible; } // Whether or not o
ur parent is visible. |
| 80 bool isVisible() const { return m_selfVisible && m_parentVisible; } // Wheth
er or not we are actually visible. | 80 bool isVisible() const { return m_selfVisible && m_parentVisible; } // Wheth
er or not we are actually visible. |
| 81 virtual void setParentVisible(bool visible) { m_parentVisible = visible; } | 81 virtual void setParentVisible(bool visible) { m_parentVisible = visible; } |
| 82 void setSelfVisible(bool v) { m_selfVisible = v; } | 82 void setSelfVisible(bool v) { m_selfVisible = v; } |
| 83 | 83 |
| 84 virtual bool isFrameletView() const { return false; } |
| 84 virtual bool isFrameView() const { return false; } | 85 virtual bool isFrameView() const { return false; } |
| 85 virtual bool isRemoteFrameView() const { return false; } | 86 virtual bool isRemoteFrameView() const { return false; } |
| 86 virtual bool isPluginView() const { return false; } | 87 virtual bool isPluginView() const { return false; } |
| 87 virtual bool isPluginContainer() const { return false; } | 88 virtual bool isPluginContainer() const { return false; } |
| 88 virtual bool isScrollbar() const { return false; } | 89 virtual bool isScrollbar() const { return false; } |
| 89 | 90 |
| 90 virtual void setParent(Widget*); | 91 virtual void setParent(Widget*); |
| 91 Widget* parent() const { return m_parent; } | 92 Widget* parent() const { return m_parent; } |
| 92 Widget* root() const; | 93 Widget* root() const; |
| 93 | 94 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 private: | 127 private: |
| 127 RawPtrWillBeMember<Widget> m_parent; | 128 RawPtrWillBeMember<Widget> m_parent; |
| 128 IntRect m_frame; | 129 IntRect m_frame; |
| 129 bool m_selfVisible; | 130 bool m_selfVisible; |
| 130 bool m_parentVisible; | 131 bool m_parentVisible; |
| 131 }; | 132 }; |
| 132 | 133 |
| 133 } // namespace blink | 134 } // namespace blink |
| 134 | 135 |
| 135 #endif // Widget_h | 136 #endif // Widget_h |
| OLD | NEW |