|
Remove dead ContextMenu code from Blink core
Most of ContextMenuController was devoted to building up context menus
and handling actions for those menus it had built up, but in Blink/Chromium,
those menus are almost entirely dropped on the floor by the embedder.
Only those menu items tagged as "custom" are preserved. And these are added
elsewhere, by ContextMenuProvider instances; the only currently-existing
one belongs to the web inspector.
As part of this cleanup, renamed ContextMenuClient::customizeMenu() to
showContextMenu(), since it's a call to that method from the controller
which actually causes a context menu to appear. Also tightened up that
method, which has no reason to transfer ownership (or even allow mutation)
of its ContextMenu to the embedder.
R=darin
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150375
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+20 lines, -1087 lines) |
Patch |
 |
M |
Source/WebKit/chromium/src/ContextMenuClientImpl.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/WebKit/chromium/src/ContextMenuClientImpl.cpp
|
View
|
|
6 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
Source/core/core.gypi
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/EmptyClients.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/loader/EmptyClients.cpp
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/ContextMenuClient.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/page/ContextMenuController.h
|
View
|
|
2 chunks |
+0 lines, -18 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/ContextMenuController.cpp
|
View
|
|
4 chunks |
+4 lines, -741 lines |
3 comments
|
Download
|
 |
M |
Source/core/platform/ContextMenu.h
|
View
|
|
1 chunk |
+4 lines, -22 lines |
0 comments
|
Download
|
 |
M |
Source/core/platform/ContextMenu.cpp
|
View
|
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/platform/ContextMenuItem.h
|
View
|
|
2 chunks |
+1 line, -80 lines |
0 comments
|
Download
|
 |
M |
Source/core/platform/LocalizedStrings.h
|
View
|
|
1 chunk |
+0 lines, -48 lines |
0 comments
|
Download
|
 |
D |
Source/core/platform/chromium/ContextMenuChromium.cpp
|
View
|
|
1 chunk |
+0 lines, -59 lines |
0 comments
|
Download
|
 |
D |
Source/core/platform/chromium/ContextMenuItemChromium.cpp
|
View
|
|
1 chunk |
+0 lines, -46 lines |
0 comments
|
Download
|
 |
M |
Source/core/platform/chromium/LocalizedStringsChromium.cpp
|
View
|
|
1 chunk |
+0 lines, -49 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|