Chromium Code Reviews| 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 14 matching lines...) Expand all Loading... | |
| 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef Widget_h | 28 #ifndef Widget_h |
| 29 #define Widget_h | 29 #define Widget_h |
| 30 | 30 |
| 31 #include "platform/PlatformExport.h" | 31 #include "platform/PlatformExport.h" |
| 32 #include "platform/geometry/FloatPoint.h" | 32 #include "platform/geometry/FloatPoint.h" |
| 33 #include "platform/geometry/IntRect.h" | 33 #include "platform/geometry/IntRect.h" |
| 34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 35 #include "platform/scroll/ScrollTypes.h" | |
| 35 #include "public/platform/WebFocusType.h" | 36 #include "public/platform/WebFocusType.h" |
| 36 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
| 37 | 38 |
| 38 namespace blink { | 39 namespace blink { |
| 39 | 40 |
| 40 class CullRect; | 41 class CullRect; |
| 41 class Event; | 42 class Event; |
| 42 class GraphicsContext; | 43 class GraphicsContext; |
| 43 | 44 |
| 44 // The Widget class serves as a base class for FrameView, Scrollbar, and | 45 // The Widget class serves as a base class for FrameView, Scrollbar, and |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 119 // Virtual methods to convert points to/from child widgets | 120 // Virtual methods to convert points to/from child widgets |
| 120 virtual IntPoint convertChildToSelf(const Widget*, const IntPoint&) const; | 121 virtual IntPoint convertChildToSelf(const Widget*, const IntPoint&) const; |
| 121 virtual IntPoint convertSelfToChild(const Widget*, const IntPoint&) const; | 122 virtual IntPoint convertSelfToChild(const Widget*, const IntPoint&) const; |
| 122 | 123 |
| 123 // Notifies this widget that it will no longer be receiving events. | 124 // Notifies this widget that it will no longer be receiving events. |
| 124 virtual void eventListenersRemoved() {} | 125 virtual void eventListenersRemoved() {} |
| 125 | 126 |
| 126 DECLARE_VIRTUAL_TRACE(); | 127 DECLARE_VIRTUAL_TRACE(); |
| 127 virtual void dispose() {} | 128 virtual void dispose() {} |
| 128 | 129 |
| 130 virtual void sendScrollbarUseUMA(ScrollbarPart, ScrollbarOrientation) {} | |
|
bokan
2017/01/17 21:24:01
Rather than going through widget, I'd add a Scroll
| |
| 131 | |
| 129 private: | 132 private: |
| 130 Member<Widget> m_parent; | 133 Member<Widget> m_parent; |
| 131 IntRect m_frameRect; | 134 IntRect m_frameRect; |
| 132 bool m_selfVisible; | 135 bool m_selfVisible; |
| 133 bool m_parentVisible; | 136 bool m_parentVisible; |
| 134 }; | 137 }; |
| 135 | 138 |
| 136 } // namespace blink | 139 } // namespace blink |
| 137 | 140 |
| 138 #endif // Widget_h | 141 #endif // Widget_h |
| OLD | NEW |