Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: third_party/WebKit/Source/platform/PopupMenu.h

Issue 1972243003: Merge "ExternalPopupMenu should recreate its popup only if a SELECT subtree is updated" to M51 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/EmptyClients.cpp ('k') | third_party/WebKit/Source/web/ExternalPopupMenu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698