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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 IntRect layoutAndCalculateWidgetRect(int targetControlHeight, const IntPoint
& popupInitialCoordinate); | 131 IntRect layoutAndCalculateWidgetRect(int targetControlHeight, const IntPoint
& popupInitialCoordinate); |
132 | 132 |
133 // Returns the ChromeClient of the page this popup is associated with. | 133 // Returns the ChromeClient of the page this popup is associated with. |
134 ChromeClientChromium* chromeClientChromium(); | 134 ChromeClientChromium* chromeClientChromium(); |
135 | 135 |
136 RefPtr<PopupListBox> m_listBox; | 136 RefPtr<PopupListBox> m_listBox; |
137 RefPtr<FrameView> m_frameView; | 137 RefPtr<FrameView> m_frameView; |
138 | 138 |
139 PopupContainerSettings m_settings; | 139 PopupContainerSettings m_settings; |
140 PopupType m_popupType; | 140 PopupType m_popupType; |
| 141 |
| 142 // This contains the "ideal" dimensions and position for the popup |
| 143 // (PopupContainer's frameRect() location should always be (0, 0), since |
| 144 // it is rendered inside (and relative to) a WebWidget, which should get |
| 145 // the actual popup position through chromeClientChromium()). |
141 IntRect m_originalFrameRect; | 146 IntRect m_originalFrameRect; |
| 147 |
142 // Whether the popup is currently open. | 148 // Whether the popup is currently open. |
143 bool m_popupOpen; | 149 bool m_popupOpen; |
144 }; | 150 }; |
145 | 151 |
146 } // namespace WebCore | 152 } // namespace WebCore |
147 | 153 |
148 #endif | 154 #endif |
OLD | NEW |