| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PopupMenuImpl_h | 5 #ifndef PopupMenuImpl_h |
| 6 #define PopupMenuImpl_h | 6 #define PopupMenuImpl_h |
| 7 | 7 |
| 8 #include "core/html/forms/PopupMenuClient.h" | 8 #include "core/html/forms/PopupMenuClient.h" |
| 9 #include "core/page/PagePopupClient.h" | 9 #include "core/page/PagePopupClient.h" |
| 10 #include "platform/PopupMenu.h" | 10 #include "platform/PopupMenu.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void setValueAndClosePopup(int, const String&) override; | 48 void setValueAndClosePopup(int, const String&) override; |
| 49 void setValue(const String&) override; | 49 void setValue(const String&) override; |
| 50 void closePopup() override; | 50 void closePopup() override; |
| 51 Element& ownerElement() override; | 51 Element& ownerElement() override; |
| 52 Locale& locale() override; | 52 Locale& locale() override; |
| 53 void didClosePopup() override; | 53 void didClosePopup() override; |
| 54 | 54 |
| 55 ChromeClientImpl* m_chromeClient; | 55 ChromeClientImpl* m_chromeClient; |
| 56 PopupMenuClient* m_client; | 56 PopupMenuClient* m_client; |
| 57 PagePopup* m_popup; | 57 PagePopup* m_popup; |
| 58 // If >= 0, this is the index we should accept when the popup closes. | |
| 59 // This is used for keyboard navigation, where we want the | |
| 60 // text to change immediately but set the value on close. | |
| 61 int m_indexToSetOnClose; | |
| 62 bool m_needsUpdate; | 58 bool m_needsUpdate; |
| 63 }; | 59 }; |
| 64 | 60 |
| 65 } | 61 } |
| 66 | 62 |
| 67 #endif // PopupMenuImpl_h | 63 #endif // PopupMenuImpl_h |
| OLD | NEW |