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

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed)

Created:
7 years, 6 months ago by varunjain
Modified:
7 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, asanka, chrome-apps-syd-reviews_chromium.org, sadrul, yusukes+watch_chromium.org, ben+watch_chromium.org, benjhayden+dwatch_chromium.org, tfarina, yoshiki+watch_chromium.org, penghuang+watch_chromium.org, dcheng, nona+watch_chromium.org, James Su, mohsen
Visibility:
Public.

Description

Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. This will help bring context menu positioning logic to one place and unify the positioning logic for all views. BUG=239110 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207019

Patch Set 1 #

Total comments: 4

Patch Set 2 : patch #

Patch Set 3 : patch #

Patch Set 4 : fix win build #

Total comments: 12

Patch Set 5 : patch #

Patch Set 6 : patch #

Patch Set 7 : patch #

Patch Set 8 : patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -202 lines) Patch
M ash/desktop_background/desktop_background_view.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ash/desktop_background/desktop_background_view.cc View 1 1 chunk +5 lines, -3 lines 0 comments Download
M ash/launcher/launcher.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M ash/launcher/launcher.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M ash/launcher/launcher_button.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/launcher/launcher_button.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ash/launcher/launcher_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/launcher/launcher_view.h View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M ash/launcher/launcher_view.cc View 1 2 3 4 5 chunks +15 lines, -9 lines 0 comments Download
M ash/root_window_controller.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M ash/root_window_controller.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M ash/shell.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M ash/shell.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M ash/shell/window_type_launcher.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ash/shell/window_type_launcher.cc View 1 2 chunks +7 lines, -3 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/language_switch_menu.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/action_box_context_menu.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/action_box_context_menu.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/action_box_menu.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/action_box_menu.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_dialog_views.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 3 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_context_menu.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_context_menu.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/browser_action_view.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/browser_action_view.cc View 1 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/content_setting_bubble_contents.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/download/download_item_view.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view.cc View 1 2 5 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/download/download_shelf_context_menu_view.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/download/download_shelf_context_menu_view.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_image_view.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_image_view.cc View 1 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/menu_item_view_test.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/menu_model_adapter_test.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/notifications/balloon_view_views.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/reload_button.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/reload_button.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/status_icons/status_icon_win.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tab_contents/render_view_context_menu_views.cc View 1 1 chunk +18 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc View 1 2 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_controller.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip_controller.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/task_manager_view.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/website_settings/permission_selector_view.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/wrench_menu.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/wrench_menu.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M ui/app_list/views/app_list_item_view.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/app_list/views/app_list_item_view.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M ui/app_list/views/app_list_menu_views.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ui/app_list/views/search_result_view.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/app_list/views/search_result_view.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M ui/base/ui_base_types.h View 1 2 3 4 5 6 7 2 chunks +15 lines, -0 lines 0 comments Download
A ui/base/ui_base_types.cc View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download
M ui/message_center/views/message_view.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/context_menu_controller.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M ui/views/controls/button/button_dropdown.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M ui/views/controls/button/button_dropdown.cc View 1 2 3 4 6 chunks +9 lines, -5 lines 0 comments Download
M ui/views/controls/button/custom_button.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/button/custom_button.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M ui/views/controls/combobox/native_combobox_views.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/combobox/native_combobox_views.cc View 1 2 3 4 4 chunks +5 lines, -4 lines 0 comments Download
M ui/views/controls/menu/menu_controller.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 2 3 4 5 6 6 chunks +14 lines, -5 lines 0 comments Download
M ui/views/controls/menu/menu_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/menu/menu_delegate.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/menu/menu_runner.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/menu/menu_runner.cc View 1 2 chunks +17 lines, -6 lines 0 comments Download
M ui/views/controls/native_control.cc View 1 1 chunk +6 lines, -4 lines 0 comments Download
M ui/views/controls/native_control_win.cc View 1 1 chunk +6 lines, -4 lines 0 comments Download
M ui/views/controls/scrollbar/base_scroll_bar.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/controls/scrollbar/base_scroll_bar.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M ui/views/controls/textfield/native_textfield_views.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/controls/textfield/native_textfield_views.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M ui/views/controls/textfield/native_textfield_win.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M ui/views/controls/tree/tree_view.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/tree/tree_view.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M ui/views/examples/menu_example.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/examples/tree_view_example.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/examples/tree_view_example.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M ui/views/view.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M ui/views/view.cc View 1 4 chunks +6 lines, -5 lines 0 comments Download
M ui/views/widget/root_view.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
varunjain
Hi Scott, This patch was getting out of hand so I wanted to get some ...
7 years, 6 months ago (2013-06-13 17:48:13 UTC) #1
sadrul
/cc mohsen@ since we have talked about this. https://codereview.chromium.org/16979002/diff/1/ui/base/ui_base_types.h File ui/base/ui_base_types.h (right): https://codereview.chromium.org/16979002/diff/1/ui/base/ui_base_types.h#newcode46 ui/base/ui_base_types.h:46: }; ...
7 years, 6 months ago (2013-06-13 17:53:48 UTC) #2
varunjain
https://codereview.chromium.org/16979002/diff/1/ui/base/ui_base_types.h File ui/base/ui_base_types.h (right): https://codereview.chromium.org/16979002/diff/1/ui/base/ui_base_types.h#newcode46 ui/base/ui_base_types.h:46: }; On 2013/06/13 17:53:48, sadrul wrote: > Drive by: ...
7 years, 6 months ago (2013-06-13 18:33:01 UTC) #3
varunjain
On 2013/06/13 18:33:01, varunjain wrote: > https://codereview.chromium.org/16979002/diff/1/ui/base/ui_base_types.h > File ui/base/ui_base_types.h (right): > > https://codereview.chromium.org/16979002/diff/1/ui/base/ui_base_types.h#newcode46 > ...
7 years, 6 months ago (2013-06-13 18:34:49 UTC) #4
sky
https://codereview.chromium.org/16979002/diff/1/ui/views/controls/menu/menu_runner.h File ui/views/controls/menu/menu_runner.h (right): https://codereview.chromium.org/16979002/diff/1/ui/views/controls/menu/menu_runner.h#newcode100 ui/views/controls/menu/menu_runner.h:100: RunResult RunContextMenuAt(Widget* parent, We already have RunTypes::CONTEXT_MENU, so we ...
7 years, 6 months ago (2013-06-13 19:54:53 UTC) #5
varunjain
https://codereview.chromium.org/16979002/diff/1/ui/views/controls/menu/menu_runner.h File ui/views/controls/menu/menu_runner.h (right): https://codereview.chromium.org/16979002/diff/1/ui/views/controls/menu/menu_runner.h#newcode100 ui/views/controls/menu/menu_runner.h:100: RunResult RunContextMenuAt(Widget* parent, On 2013/06/13 19:54:53, sky wrote: > ...
7 years, 6 months ago (2013-06-13 20:26:43 UTC) #6
sky
On Thu, Jun 13, 2013 at 1:26 PM, <varunjain@chromium.org> wrote: > > https://codereview.chromium.org/16979002/diff/1/ui/views/controls/menu/menu_runner.h > File ...
7 years, 6 months ago (2013-06-13 20:59:43 UTC) #7
varunjain
Hi Scott, Changed to MenuSourceType and added parameter to MenuRunner::RunMenuAt() as per our discussion. PTAL. ...
7 years, 6 months ago (2013-06-17 03:35:56 UTC) #8
sky
https://codereview.chromium.org/16979002/diff/29001/ash/launcher/launcher.cc File ash/launcher/launcher.cc (right): https://codereview.chromium.org/16979002/diff/29001/ash/launcher/launcher.cc#newcode133 ash/launcher/launcher.cc:133: void Launcher::ShowContextMenu(const gfx::Point& location) { I don't think this ...
7 years, 6 months ago (2013-06-17 16:08:19 UTC) #9
varunjain
Hi Scott, as per our conversation, I tried to remove the usage of MENU_SOURCE_NONE for ...
7 years, 6 months ago (2013-06-17 20:13:55 UTC) #10
sky
On Mon, Jun 17, 2013 at 1:13 PM, <varunjain@chromium.org> wrote: > Hi Scott, as per ...
7 years, 6 months ago (2013-06-17 20:34:13 UTC) #11
sky
LGTM
7 years, 6 months ago (2013-06-17 20:44:07 UTC) #12
varunjain
On 2013/06/17 20:34:13, sky wrote: > On Mon, Jun 17, 2013 at 1:13 PM, <mailto:varunjain@chromium.org> ...
7 years, 6 months ago (2013-06-17 20:57:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varunjain@chromium.org/16979002/69001
7 years, 6 months ago (2013-06-18 13:50:10 UTC) #14
commit-bot: I haz the power
7 years, 6 months ago (2013-06-18 16:54:32 UTC) #15
Message was sent while issue was closed.
Change committed as 207019

Powered by Google App Engine
This is Rietveld 408576698