|
Context menus should appear above the touch point if invoked by long press.
This CL does this for content area context menus only. I will send out another CL for same functionality on views controls.
We acheive this as follows: We remember in render_widget_host, which kind of
event is currently in process. When we get a request for showing context menu,
in render_view_host, we check if currently we are processing a gesture event,
and if so, we display the context menu appropriately.
BUG= 142015
TEST=manual
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=155306
Total comments: 4
Total comments: 6
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+129 lines, -44 lines) |
Patch |
 |
M |
chrome/browser/ui/android/tab_contents/chrome_web_contents_view_delegate_android.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/android/tab_contents/chrome_web_contents_view_delegate_android.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.h
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/tab_contents/chrome_web_contents_view_delegate_gtk.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/tab_contents/chrome_web_contents_view_delegate_gtk.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h
|
View
|
1
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/tab_contents/render_view_context_menu_views.cc
|
View
|
1
2
3
4
|
1 chunk |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_view_host_delegate.h
|
View
|
1
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_view_host_impl.cc
|
View
|
1
2
3
4
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_view_host_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_impl.h
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_impl.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/interstitial_page_impl.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/interstitial_page_impl.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_impl.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_impl.cc
|
View
|
1
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_view_android.h
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_view_android.cc
|
View
|
1
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_view_aura.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_view_aura.cc
|
View
|
1
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_view_gtk.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_view_gtk.cc
|
View
|
1
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_view_mac.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_view_mac.mm
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_view_win.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_view_win.cc
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/content_common.gypi
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/port/browser/render_view_host_delegate_view.h
|
View
|
1
|
2 chunks |
+3 lines, -1 line |
1 comment
|
Download
|
 |
M |
content/public/browser/web_contents_view_delegate.h
|
View
|
1
|
2 chunks |
+4 lines, -1 line |
1 comment
|
Download
|
 |
A |
content/public/common/context_menu_source_type.h
|
View
|
1
2
3
4
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/shell/shell_web_contents_view_delegate.h
|
View
|
1
2
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/shell/shell_web_contents_view_delegate_gtk.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/test/test_web_contents_view.h
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/test/test_web_contents_view.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_controller.cc
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_item_view.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 18 (0 generated)
|