| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 PopupListBox* listBox() const { return m_listBox.get(); } | 93 PopupListBox* listBox() const { return m_listBox.get(); } |
| 94 | 94 |
| 95 bool isRTL() const; | 95 bool isRTL() const; |
| 96 | 96 |
| 97 // Gets the index of the item that the user is currently moused-over or | 97 // Gets the index of the item that the user is currently moused-over or |
| 98 // has selected with the keyboard up/down arrows. | 98 // has selected with the keyboard up/down arrows. |
| 99 int selectedIndex() const; | 99 int selectedIndex() const; |
| 100 | 100 |
| 101 // Refresh the popup values from the PopupMenuClient. | 101 // Refresh the popup values from the PopupMenuClient. |
| 102 void refresh(const IntRect& targetControlRect); | 102 IntRect refresh(const IntRect& targetControlRect); |
| 103 | 103 |
| 104 // The menu per-item data. | 104 // The menu per-item data. |
| 105 const WTF::Vector<PopupItem*>& popupData() const; | 105 const WTF::Vector<PopupItem*>& popupData() const; |
| 106 | 106 |
| 107 // The height of a row in the menu. | 107 // The height of a row in the menu. |
| 108 int menuItemHeight() const; | 108 int menuItemHeight() const; |
| 109 | 109 |
| 110 // The size of the font being used. | 110 // The size of the font being used. |
| 111 int menuItemFontSize() const; | 111 int menuItemFontSize() const; |
| 112 | 112 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // the actual popup position through chromeClientChromium()). | 145 // the actual popup position through chromeClientChromium()). |
| 146 IntRect m_originalFrameRect; | 146 IntRect m_originalFrameRect; |
| 147 | 147 |
| 148 // Whether the popup is currently open. | 148 // Whether the popup is currently open. |
| 149 bool m_popupOpen; | 149 bool m_popupOpen; |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace WebCore | 152 } // namespace WebCore |
| 153 | 153 |
| 154 #endif | 154 #endif |
| OLD | NEW |