| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef PopupMenuClient_h | 22 #ifndef PopupMenuClient_h |
| 23 #define PopupMenuClient_h | 23 #define PopupMenuClient_h |
| 24 | 24 |
| 25 #include "platform/LayoutUnit.h" | 25 #include "platform/LayoutUnit.h" |
| 26 #include "platform/PlatformExport.h" | 26 #include "platform/PlatformExport.h" |
| 27 #include "platform/PopupMenuStyle.h" | 27 #include "platform/PopupMenuStyle.h" |
| 28 #include "wtf/Forward.h" | 28 #include "wtf/Forward.h" |
| 29 | 29 |
| 30 namespace WebCore { | 30 namespace blink { |
| 31 | 31 |
| 32 class PopupMenuClient { | 32 class PopupMenuClient { |
| 33 public: | 33 public: |
| 34 virtual ~PopupMenuClient() { } | 34 virtual ~PopupMenuClient() { } |
| 35 virtual void valueChanged(unsigned listIndex, bool fireEvents = true) = 0; | 35 virtual void valueChanged(unsigned listIndex, bool fireEvents = true) = 0; |
| 36 virtual void selectionChanged(unsigned listIndex, bool fireEvents = true) =
0; | 36 virtual void selectionChanged(unsigned listIndex, bool fireEvents = true) =
0; |
| 37 virtual void selectionCleared() = 0; | 37 virtual void selectionCleared() = 0; |
| 38 | 38 |
| 39 virtual String itemText(unsigned listIndex) const = 0; | 39 virtual String itemText(unsigned listIndex) const = 0; |
| 40 virtual String itemToolTip(unsigned listIndex) const = 0; | 40 virtual String itemToolTip(unsigned listIndex) const = 0; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 56 virtual bool multiple() const | 56 virtual bool multiple() const |
| 57 { | 57 { |
| 58 ASSERT_NOT_REACHED(); | 58 ASSERT_NOT_REACHED(); |
| 59 return false; | 59 return false; |
| 60 } | 60 } |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } | 63 } |
| 64 | 64 |
| 65 #endif | 65 #endif |
| OLD | NEW |