| 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; } | |
| 90 virtual bool isScrollbar() const { return false; } | 89 virtual bool isScrollbar() const { return false; } |
| 91 | 90 |
| 92 virtual HostWindow* hostWindow() const { ASSERT_NOT_REACHED(); return 0; } | 91 virtual HostWindow* hostWindow() const { ASSERT_NOT_REACHED(); return 0; } |
| 93 virtual void setParent(Widget*); | 92 virtual void setParent(Widget*); |
| 94 Widget* parent() const { return m_parent; } | 93 Widget* parent() const { return m_parent; } |
| 95 Widget* root() const; | 94 Widget* root() const; |
| 96 | 95 |
| 97 virtual void handleEvent(Event*) { } | 96 virtual void handleEvent(Event*) { } |
| 98 | 97 |
| 99 // It is important for cross-platform code to realize that Mac has flipped c
oordinates. Therefore any code | 98 // It is important for cross-platform code to realize that Mac has flipped c
oordinates. Therefore any code |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 private: | 130 private: |
| 132 RawPtrWillBeMember<Widget> m_parent; | 131 RawPtrWillBeMember<Widget> m_parent; |
| 133 IntRect m_frame; | 132 IntRect m_frame; |
| 134 bool m_selfVisible; | 133 bool m_selfVisible; |
| 135 bool m_parentVisible; | 134 bool m_parentVisible; |
| 136 }; | 135 }; |
| 137 | 136 |
| 138 } // namespace blink | 137 } // namespace blink |
| 139 | 138 |
| 140 #endif // Widget_h | 139 #endif // Widget_h |
| OLD | NEW |