| 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 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "wtf/RefCounted.h" | 26 #include "wtf/RefCounted.h" |
| 27 | 27 |
| 28 namespace blink { | 28 namespace blink { |
| 29 | 29 |
| 30 class PopupMenu : public GarbageCollectedFinalized<PopupMenu> { | 30 class PopupMenu : public GarbageCollectedFinalized<PopupMenu> { |
| 31 public: | 31 public: |
| 32 virtual ~PopupMenu() { } | 32 virtual ~PopupMenu() { } |
| 33 DEFINE_INLINE_VIRTUAL_TRACE() { } | 33 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 34 virtual void show() = 0; | 34 virtual void show() = 0; |
| 35 virtual void hide() = 0; | 35 virtual void hide() = 0; |
| 36 virtual void updateFromElement() = 0; | 36 enum UpdateReason { |
| 37 BySelectionChange, |
| 38 ByStyleChange, |
| 39 ByDOMChange, |
| 40 }; |
| 41 virtual void updateFromElement(UpdateReason) = 0; |
| 37 virtual void disconnectClient() = 0; | 42 virtual void disconnectClient() = 0; |
| 38 }; | 43 }; |
| 39 | 44 |
| 40 } // namespace blink | 45 } // namespace blink |
| 41 | 46 |
| 42 #endif // PopupMenu_h | 47 #endif // PopupMenu_h |
| OLD | NEW |