OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011, Google Inc. All rights reserved. | 2 * Copyright (c) 2011, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 // Computes the size of widget and children. | 139 // Computes the size of widget and children. |
140 virtual void layout() OVERRIDE; | 140 virtual void layout() OVERRIDE; |
141 | 141 |
142 // Returns whether the popup wants to process events for the passed key. | 142 // Returns whether the popup wants to process events for the passed key. |
143 bool isInterestedInEventForKey(int keyCode); | 143 bool isInterestedInEventForKey(int keyCode); |
144 | 144 |
145 // Gets the height of a row. | 145 // Gets the height of a row. |
146 int getRowHeight(int index); | 146 int getRowHeight(int index); |
147 | 147 |
| 148 int getRowBaseWidth(int index); |
| 149 |
148 virtual void setMaxHeight(int maxHeight) OVERRIDE { m_maxHeight = maxHeight;
} | 150 virtual void setMaxHeight(int maxHeight) OVERRIDE { m_maxHeight = maxHeight;
} |
149 | 151 |
150 void setMaxWidth(int maxWidth) { m_maxWindowWidth = maxWidth; } | 152 void setMaxWidth(int maxWidth) { m_maxWindowWidth = maxWidth; } |
151 | 153 |
152 virtual void setMaxWidthAndLayout(int) OVERRIDE; | 154 virtual void setMaxWidthAndLayout(int) OVERRIDE; |
153 | 155 |
154 void disconnectClient() { m_popupClient = 0; } | 156 void disconnectClient() { m_popupClient = 0; } |
155 | 157 |
156 const Vector<PopupItem*>& items() const { return m_items; } | 158 const Vector<PopupItem*>& items() const { return m_items; } |
157 | 159 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 // If width exeeds screen width, we have to clip it. | 275 // If width exeeds screen width, we have to clip it. |
274 int m_maxWindowWidth; | 276 int m_maxWindowWidth; |
275 | 277 |
276 // To forward last mouse release event. | 278 // To forward last mouse release event. |
277 RefPtrWillBePersistent<blink::Element> m_focusedElement; | 279 RefPtrWillBePersistent<blink::Element> m_focusedElement; |
278 }; | 280 }; |
279 | 281 |
280 } // namespace blink | 282 } // namespace blink |
281 | 283 |
282 #endif | 284 #endif |
OLD | NEW |