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

Unified Diff: third_party/WebKit/Source/core/page/CustomContextMenuProvider.h

Issue 2905763003: Rollback ContextMenu (Closed)
Patch Set: Rebase Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/page/CustomContextMenuProvider.h
diff --git a/third_party/WebKit/Source/core/page/CustomContextMenuProvider.h b/third_party/WebKit/Source/core/page/CustomContextMenuProvider.h
deleted file mode 100644
index 793a3fcb099f09509b04d4e23fa2cb76fad7f976..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/page/CustomContextMenuProvider.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CustomContextMenuProvider_h
-#define CustomContextMenuProvider_h
-
-#include "core/page/ContextMenuProvider.h"
-#include "platform/ContextMenuItem.h"
-#include "platform/heap/Handle.h"
-
-namespace blink {
-
-class ContextMenu;
-class HTMLElement;
-class HTMLMenuElement;
-class HTMLMenuItemElement;
-
-class CustomContextMenuProvider final : public ContextMenuProvider {
- public:
- ~CustomContextMenuProvider() override;
-
- static CustomContextMenuProvider* Create(HTMLMenuElement& menu,
- HTMLElement& subject) {
- return new CustomContextMenuProvider(menu, subject);
- }
-
- DECLARE_VIRTUAL_TRACE();
-
- private:
- CustomContextMenuProvider(HTMLMenuElement&, HTMLElement&);
-
- void PopulateContextMenu(ContextMenu*) override;
- void ContextMenuItemSelected(const ContextMenuItem*) override;
- void ContextMenuCleared() override;
- void PopulateContextMenuItems(const HTMLMenuElement&, ContextMenu&);
- void AppendSeparator(ContextMenu&);
- void AppendMenuItem(HTMLMenuItemElement*, ContextMenu&);
- HTMLElement* MenuItemAt(unsigned menu_id);
-
- Member<HTMLMenuElement> menu_;
- Member<HTMLElement> subject_element_;
- HeapVector<Member<HTMLElement>> menu_items_;
-};
-
-} // namespace blink
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698