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

Issue 10861042: Add Android's context menu handler used on the NTP. (Closed)

Created:
8 years, 4 months ago by Ted C
Modified:
8 years, 4 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add Android's context menu handler used on the NTP. BUG=137011 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153151

Patch Set 1 #

Total comments: 8

Patch Set 2 : Switch to using a weakptr instead of callback obj. #

Total comments: 2

Patch Set 3 : Switch to using Callback instead of WeakPtr directly. #

Total comments: 4

Patch Set 4 : Resolve Evan's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -2 lines) Patch
M chrome/browser/android/tab_android.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/browser/ui/webui/ntp/android/context_menu_handler.h View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/ntp/android/context_menu_handler.cc View 1 2 3 1 chunk +111 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Ted C
8 years, 4 months ago (2012-08-21 21:48:57 UTC) #1
Evan Stade
https://chromiumcodereview.appspot.com/10861042/diff/1/chrome/browser/ui/webui/ntp/android/context_menu_handler.h File chrome/browser/ui/webui/ntp/android/context_menu_handler.h (right): https://chromiumcodereview.appspot.com/10861042/diff/1/chrome/browser/ui/webui/ntp/android/context_menu_handler.h#newcode17 chrome/browser/ui/webui/ntp/android/context_menu_handler.h:17: // The handler for Javascript messages related to the ...
8 years, 4 months ago (2012-08-22 00:24:51 UTC) #2
Ted C
https://chromiumcodereview.appspot.com/10861042/diff/1/chrome/browser/ui/webui/ntp/android/on_context_menu_item_selected_callback.h File chrome/browser/ui/webui/ntp/android/on_context_menu_item_selected_callback.h (right): https://chromiumcodereview.appspot.com/10861042/diff/1/chrome/browser/ui/webui/ntp/android/on_context_menu_item_selected_callback.h#newcode15 chrome/browser/ui/webui/ntp/android/on_context_menu_item_selected_callback.h:15: // that the ContextMenuHandler will outlive the callback). On ...
8 years, 4 months ago (2012-08-22 01:02:38 UTC) #3
Evan Stade
https://chromiumcodereview.appspot.com/10861042/diff/1/chrome/browser/ui/webui/ntp/android/on_context_menu_item_selected_callback.h File chrome/browser/ui/webui/ntp/android/on_context_menu_item_selected_callback.h (right): https://chromiumcodereview.appspot.com/10861042/diff/1/chrome/browser/ui/webui/ntp/android/on_context_menu_item_selected_callback.h#newcode15 chrome/browser/ui/webui/ntp/android/on_context_menu_item_selected_callback.h:15: // that the ContextMenuHandler will outlive the callback). On ...
8 years, 4 months ago (2012-08-22 01:12:28 UTC) #4
Ted C
Comments address, PTAL http://codereview.chromium.org/10861042/diff/1/chrome/browser/ui/webui/ntp/android/context_menu_handler.h File chrome/browser/ui/webui/ntp/android/context_menu_handler.h (right): http://codereview.chromium.org/10861042/diff/1/chrome/browser/ui/webui/ntp/android/context_menu_handler.h#newcode17 chrome/browser/ui/webui/ntp/android/context_menu_handler.h:17: // The handler for Javascript messages ...
8 years, 4 months ago (2012-08-22 20:55:50 UTC) #5
Evan Stade
http://codereview.chromium.org/10861042/diff/7001/chrome/browser/ui/webui/ntp/android/context_menu_handler.cc File chrome/browser/ui/webui/ntp/android/context_menu_handler.cc (right): http://codereview.chromium.org/10861042/diff/7001/chrome/browser/ui/webui/ntp/android/context_menu_handler.cc#newcode88 chrome/browser/ui/webui/ntp/android/context_menu_handler.cc:88: tab->ShowCustomContextMenu(menu, weak_ptr_factory_.GetWeakPtr()); the second param here needs to be ...
8 years, 4 months ago (2012-08-22 23:50:04 UTC) #6
Ted C
PTAL http://codereview.chromium.org/10861042/diff/7001/chrome/browser/ui/webui/ntp/android/context_menu_handler.cc File chrome/browser/ui/webui/ntp/android/context_menu_handler.cc (right): http://codereview.chromium.org/10861042/diff/7001/chrome/browser/ui/webui/ntp/android/context_menu_handler.cc#newcode88 chrome/browser/ui/webui/ntp/android/context_menu_handler.cc:88: tab->ShowCustomContextMenu(menu, weak_ptr_factory_.GetWeakPtr()); On 2012/08/22 23:50:05, Evan Stade wrote: ...
8 years, 4 months ago (2012-08-23 20:50:52 UTC) #7
Evan Stade
http://codereview.chromium.org/10861042/diff/9001/chrome/browser/android/tab_android.h File chrome/browser/android/tab_android.h (right): http://codereview.chromium.org/10861042/diff/9001/chrome/browser/android/tab_android.h#newcode15 chrome/browser/android/tab_android.h:15: class ContextMenuHandler; used? http://codereview.chromium.org/10861042/diff/9001/chrome/browser/ui/webui/ntp/android/context_menu_handler.cc File chrome/browser/ui/webui/ntp/android/context_menu_handler.cc (right): http://codereview.chromium.org/10861042/diff/9001/chrome/browser/ui/webui/ntp/android/context_menu_handler.cc#newcode109 chrome/browser/ui/webui/ntp/android/context_menu_handler.cc:109: ...
8 years, 4 months ago (2012-08-23 21:31:48 UTC) #8
Ted C
http://codereview.chromium.org/10861042/diff/9001/chrome/browser/android/tab_android.h File chrome/browser/android/tab_android.h (right): http://codereview.chromium.org/10861042/diff/9001/chrome/browser/android/tab_android.h#newcode15 chrome/browser/android/tab_android.h:15: class ContextMenuHandler; On 2012/08/23 21:31:48, Evan Stade wrote: > ...
8 years, 4 months ago (2012-08-23 21:51:58 UTC) #9
Evan Stade
lgtm
8 years, 4 months ago (2012-08-23 21:53:18 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tedchoc@chromium.org/10861042/9002
8 years, 4 months ago (2012-08-23 22:08:25 UTC) #11
commit-bot: I haz the power
Presubmit check for 10861042-9002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-23 22:08:30 UTC) #12
Ted C
+thakis for OWNERS of chrome_browser.gypi
8 years, 4 months ago (2012-08-23 23:04:56 UTC) #13
Nico
lgtm
8 years, 4 months ago (2012-08-23 23:43:10 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tedchoc@chromium.org/10861042/9002
8 years, 4 months ago (2012-08-23 23:52:57 UTC) #15
commit-bot: I haz the power
8 years, 4 months ago (2012-08-24 04:20:37 UTC) #16
Change committed as 153151

Powered by Google App Engine
This is Rietveld 408576698