| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 // Paint the border. | 123 // Paint the border. |
| 124 void paintBorder(GraphicsContext*, const IntRect&); | 124 void paintBorder(GraphicsContext*, const IntRect&); |
| 125 | 125 |
| 126 // Layout and calculate popup widget size and location and returns it as Int
Rect. | 126 // Layout and calculate popup widget size and location and returns it as Int
Rect. |
| 127 IntRect layoutAndCalculateWidgetRect(int targetControlHeight, const IntSize&
transformOffset, const IntPoint& popupInitialCoordinate); | 127 IntRect layoutAndCalculateWidgetRect(int targetControlHeight, const IntSize&
transformOffset, const IntPoint& popupInitialCoordinate); |
| 128 | 128 |
| 129 void fitToListBox(); | 129 void fitToListBox(); |
| 130 | 130 |
| 131 // Returns the ChromeClient of the page this popup is associated with. | 131 // Returns the ChromeClient of the page this popup is associated with. |
| 132 ChromeClient* chromeClient(); | 132 ChromeClient& chromeClient(); |
| 133 | 133 |
| 134 RefPtr<PopupListBox> m_listBox; | 134 RefPtr<PopupListBox> m_listBox; |
| 135 RefPtr<FrameView> m_frameView; | 135 RefPtr<FrameView> m_frameView; |
| 136 | 136 |
| 137 PopupContainerSettings m_settings; | 137 PopupContainerSettings m_settings; |
| 138 PopupType m_popupType; | 138 PopupType m_popupType; |
| 139 | 139 |
| 140 // m_controlPosition contains the transformed position of the | 140 // m_controlPosition contains the transformed position of the |
| 141 // <select>/<input> associated with this popup. m_controlSize is the size | 141 // <select>/<input> associated with this popup. m_controlSize is the size |
| 142 // of the <select>/<input> without transform. | 142 // of the <select>/<input> without transform. |
| 143 // The popup menu will be positioned as follows: | 143 // The popup menu will be positioned as follows: |
| 144 // LTR : If the popup is positioned down it will align with the bottom left | 144 // LTR : If the popup is positioned down it will align with the bottom left |
| 145 // of m_controlPosition (p4) | 145 // of m_controlPosition (p4) |
| 146 // If the popup is positioned up it will align with the top left of | 146 // If the popup is positioned up it will align with the top left of |
| 147 // m_controlPosition (p1) | 147 // m_controlPosition (p1) |
| 148 // RTL : If the popup is positioned down it will align with the bottom right | 148 // RTL : If the popup is positioned down it will align with the bottom right |
| 149 // of m_controlPosition (p3) | 149 // of m_controlPosition (p3) |
| 150 // If the popup is positioned up it will align with the top right of | 150 // If the popup is positioned up it will align with the top right of |
| 151 // m_controlPosition (p2) | 151 // m_controlPosition (p2) |
| 152 FloatQuad m_controlPosition; | 152 FloatQuad m_controlPosition; |
| 153 IntSize m_controlSize; | 153 IntSize m_controlSize; |
| 154 | 154 |
| 155 // Whether the popup is currently open. | 155 // Whether the popup is currently open. |
| 156 bool m_popupOpen; | 156 bool m_popupOpen; |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 } // namespace WebCore | 159 } // namespace WebCore |
| 160 | 160 |
| 161 #endif | 161 #endif |
| OLD | NEW |