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

Issue 9148032: [Web Intents] Refactor picker to use WebIntentPickerModel. (Closed)

Created:
8 years, 11 months ago by binji
Modified:
8 years, 10 months ago
CC:
chromium-reviews, Avi (use Gerrit), ajwong+watch_chromium.org, creis+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

[Web Intents] Refactor picker to use WebIntentPickerModel. Change the Web Intent picker to be vertical instead of horizontal, and add titles. Also removed WebIntentPickerControllerTest. Using WebIntentPickerModelTest instead. BUG=90458, 110417 TEST=WebIntentPickerModelTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=120149

Patch Set 1 #

Patch Set 2 : cocoa fixes #

Patch Set 3 : documentation, etc. #

Patch Set 4 : fix copyright year #

Patch Set 5 : remove unused file #

Patch Set 6 : Additional cocoa fixes #

Patch Set 7 : move WebIntentPickerModelObserver to its own file. cocoa unittest fix #

Patch Set 8 : vertical layout for views #

Total comments: 31

Patch Set 9 : review comments #

Patch Set 10 : picker shown comment #

Patch Set 11 : fix copyright year in w_i_b_c_unittest.mm #

Total comments: 10

Patch Set 12 : . #

Total comments: 4

Patch Set 13 : dewonkify gtk dialog #

Patch Set 14 : fix unittest and browsertest #

Patch Set 15 : . #

Patch Set 16 : . #

Patch Set 17 : groby's fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+860 lines, -881 lines) Patch
M chrome/browser/ui/cocoa/web_intent_bubble_controller.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/web_intent_bubble_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/web_intent_bubble_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/web_intent_picker_cocoa.h View 1 2 3 4 5 6 2 chunks +15 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +43 lines, -29 lines 0 comments Download
M chrome/browser/ui/gtk/web_intent_picker_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +18 lines, -8 lines 0 comments Download
M chrome/browser/ui/gtk/web_intent_picker_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +120 lines, -136 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -17 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +35 lines, -21 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +109 lines, -67 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +76 lines, -87 lines 0 comments Download
D chrome/browser/ui/intents/web_intent_picker_controller_unittest.cc View 1 chunk +0 lines, -269 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_delegate.h View 1 2 3 4 5 6 7 8 2 chunks +19 lines, -6 lines 0 comments Download
D chrome/browser/ui/intents/web_intent_picker_factory.h View 1 chunk +0 lines, -28 lines 0 comments Download
D chrome/browser/ui/intents/web_intent_picker_factory_impl.h View 1 chunk +0 lines, -40 lines 0 comments Download
D chrome/browser/ui/intents/web_intent_picker_factory_impl.cc View 1 chunk +0 lines, -39 lines 0 comments Download
A chrome/browser/ui/intents/web_intent_picker_model.h View 1 2 3 4 5 6 7 8 1 chunk +104 lines, -0 lines 0 comments Download
A chrome/browser/ui/intents/web_intent_picker_model.cc View 1 2 3 4 5 6 7 8 1 chunk +91 lines, -0 lines 0 comments Download
A chrome/browser/ui/intents/web_intent_picker_model_observer.h View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/ui/intents/web_intent_picker_model_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +118 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/web_intent_picker_view.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +61 lines, -108 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
binji
8 years, 11 months ago (2012-01-17 23:36:18 UTC) #1
binji
-jhawkins: OoO +groby: refactor review
8 years, 11 months ago (2012-01-25 18:58:29 UTC) #2
groby-ooo-7-16
http://codereview.chromium.org/9148032/diff/29001/chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm File chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm (right): http://codereview.chromium.org/9148032/diff/29001/chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm#newcode117 chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm:117: if (item.favicon.get() != NULL) { Can skip the "get" ...
8 years, 11 months ago (2012-01-25 22:03:13 UTC) #3
binji
http://codereview.chromium.org/9148032/diff/29001/chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm File chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm (right): http://codereview.chromium.org/9148032/diff/29001/chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm#newcode117 chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm:117: if (item.favicon.get() != NULL) { On 2012/01/25 22:03:13, groby ...
8 years, 11 months ago (2012-01-26 00:27:41 UTC) #4
groby-ooo-7-16
lgtm
8 years, 11 months ago (2012-01-27 00:05:40 UTC) #5
binji
+erg: gtk OWNER +sail: cocoa OWNER +sky: views OWNER +joi: tab_contents OWNER
8 years, 11 months ago (2012-01-27 18:25:40 UTC) #6
Elliot Glaysher
can I see mocks or screenshots? http://codereview.chromium.org/9148032/diff/38001/chrome/browser/ui/gtk/web_intent_picker_gtk.cc File chrome/browser/ui/gtk/web_intent_picker_gtk.cc (right): http://codereview.chromium.org/9148032/diff/38001/chrome/browser/ui/gtk/web_intent_picker_gtk.cc#newcode306 chrome/browser/ui/gtk/web_intent_picker_gtk.cc:306: gtk_container_foreach(GTK_CONTAINER(container), RemoveAllHelper, NULL); ...
8 years, 11 months ago (2012-01-27 18:30:17 UTC) #7
sky
What's the lifetime of the model? http://codereview.chromium.org/9148032/diff/38001/chrome/browser/ui/views/web_intent_picker_view.cc File chrome/browser/ui/views/web_intent_picker_view.cc (right): http://codereview.chromium.org/9148032/diff/38001/chrome/browser/ui/views/web_intent_picker_view.cc#newcode166 chrome/browser/ui/views/web_intent_picker_view.cc:166: size_t index) { ...
8 years, 11 months ago (2012-01-27 18:35:34 UTC) #8
sail
cocoa/* LGTM! http://codereview.chromium.org/9148032/diff/38001/chrome/browser/ui/cocoa/web_intent_bubble_controller_unittest.mm File chrome/browser/ui/cocoa/web_intent_bubble_controller_unittest.mm (right): http://codereview.chromium.org/9148032/diff/38001/chrome/browser/ui/cocoa/web_intent_bubble_controller_unittest.mm#newcode17 chrome/browser/ui/cocoa/web_intent_bubble_controller_unittest.mm:17: virtual void OnServiceChosen(size_t index, Disposition disposition) {}; ...
8 years, 11 months ago (2012-01-27 18:43:58 UTC) #9
binji
erg: screenshots @ http://code.google.com/p/chromium/issues/detail?id=110417#c4 sky: the WebIntentPickerModel is owned by the WebIntentPickerController, which is owned ...
8 years, 11 months ago (2012-01-27 19:04:20 UTC) #10
Elliot Glaysher
http://codereview.chromium.org/9148032/diff/39025/chrome/browser/ui/gtk/web_intent_picker_gtk.cc File chrome/browser/ui/gtk/web_intent_picker_gtk.cc (right): http://codereview.chromium.org/9148032/diff/39025/chrome/browser/ui/gtk/web_intent_picker_gtk.cc#newcode62 chrome/browser/ui/gtk/web_intent_picker_gtk.cc:62: // |kServiceButtonScale|. Comment is wrong http://codereview.chromium.org/9148032/diff/39025/chrome/browser/ui/gtk/web_intent_picker_gtk.cc#newcode247 chrome/browser/ui/gtk/web_intent_picker_gtk.cc:247: contents_ = ...
8 years, 11 months ago (2012-01-27 19:19:43 UTC) #11
binji
http://codereview.chromium.org/9148032/diff/39025/chrome/browser/ui/gtk/web_intent_picker_gtk.cc File chrome/browser/ui/gtk/web_intent_picker_gtk.cc (right): http://codereview.chromium.org/9148032/diff/39025/chrome/browser/ui/gtk/web_intent_picker_gtk.cc#newcode62 chrome/browser/ui/gtk/web_intent_picker_gtk.cc:62: // |kServiceButtonScale|. On 2012/01/27 19:19:44, Elliot Glaysher wrote: > ...
8 years, 11 months ago (2012-01-27 19:39:40 UTC) #12
Elliot Glaysher
gtk lgtm
8 years, 11 months ago (2012-01-27 20:12:14 UTC) #13
sky
LGTM
8 years, 11 months ago (2012-01-27 20:18:33 UTC) #14
Jói
tab_contents LGTM Sorry for the delay, was out of town over the weekend. For something ...
8 years, 10 months ago (2012-01-30 09:31:24 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/binji@chromium.org/9148032/44001
8 years, 10 months ago (2012-01-30 19:40:07 UTC) #16
commit-bot: I haz the power
Try job failure for 9148032-44001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 10 months ago (2012-01-30 20:37:48 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/binji@chromium.org/9148032/51002
8 years, 10 months ago (2012-01-30 23:55:24 UTC) #18
commit-bot: I haz the power
Try job failure for 9148032-51002 (retry) on mac_rel for step "unit_tests". It's a second try, ...
8 years, 10 months ago (2012-01-31 01:24:41 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/binji@chromium.org/9148032/57002
8 years, 10 months ago (2012-02-02 00:19:18 UTC) #20
commit-bot: I haz the power
8 years, 10 months ago (2012-02-02 02:40:53 UTC) #21
Change committed as 120149

Powered by Google App Engine
This is Rietveld 408576698