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

Issue 10381105: Refactor UI "badge" (page action) logic into a BadgeController interface. (Closed)

Created:
8 years, 7 months ago by not at google - send to devlin
Modified:
8 years, 7 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, creis+watch_chromium.org, brettw-cc_chromium.org, Aaron Boodman, ajwong+watch_chromium.org, benwells, koz (OOO until 15th September)
Visibility:
Public.

Description

Refactor UI "badge" (page action) logic into a BadgeController interface, and convert the GTK code to use it (mac/views come next). This is for the currentTab permission work where the page action area will be used to display icons for extensions with scripts running on the current page ("script badges"), and will also need to have various different UIs for them (hence the "decoration" stuff). To implement this I plan on injecting a different BadgeController implementation given a command line flag for the new behaviour. BUG=127988 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137079

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : dont include badgecontroller.h #

Total comments: 15

Patch Set 4 : comments #

Total comments: 3

Patch Set 5 : comments, rebase #

Patch Set 6 : gypi #

Patch Set 7 : Add missing NULL checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -37 lines) Patch
A chrome/browser/extensions/action_box_controller.h View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/browser/extensions/page_action_controller.h View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/extensions/page_action_controller.cc View 1 2 3 4 1 chunk +76 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.cc View 1 2 3 4 5 6 6 chunks +37 lines, -34 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.h View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
not at google - send to devlin
.
8 years, 7 months ago (2012-05-11 03:55:25 UTC) #1
not at google - send to devlin
mpcomplete: extensions stuff estade: GTK stuff avi: tabcontentswrapper
8 years, 7 months ago (2012-05-11 04:06:14 UTC) #2
Avi (use Gerrit)
https://chromiumcodereview.appspot.com/10381105/diff/1009/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc File chrome/browser/ui/tab_contents/tab_contents_wrapper.cc (right): https://chromiumcodereview.appspot.com/10381105/diff/1009/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc#newcode16 chrome/browser/ui/tab_contents/tab_contents_wrapper.cc:16: #include "chrome/browser/extensions/badge_controller.h" Do you need this include? You only ...
8 years, 7 months ago (2012-05-11 04:08:56 UTC) #3
not at google - send to devlin
dont include badgecontroller.h
8 years, 7 months ago (2012-05-11 04:14:47 UTC) #4
not at google - send to devlin
Cheers. (avi: did you see my other review too? http://codereview.chromium.org/10383104/ it's the same kind of ...
8 years, 7 months ago (2012-05-11 04:15:44 UTC) #5
Avi (use Gerrit)
TCW LGTM
8 years, 7 months ago (2012-05-11 04:20:25 UTC) #6
Matt Perry
lgtm https://chromiumcodereview.appspot.com/10381105/diff/7002/chrome/browser/extensions/badge_controller.h File chrome/browser/extensions/badge_controller.h (right): https://chromiumcodereview.appspot.com/10381105/diff/7002/chrome/browser/extensions/badge_controller.h#newcode34 chrome/browser/extensions/badge_controller.h:34: enum Reaction { Just "Action" ? https://chromiumcodereview.appspot.com/10381105/diff/7002/chrome/browser/extensions/page_action_controller.cc File ...
8 years, 7 months ago (2012-05-11 21:15:12 UTC) #7
Evan Stade
http://codereview.chromium.org/10381105/diff/7002/chrome/browser/extensions/badge_controller.h File chrome/browser/extensions/badge_controller.h (right): http://codereview.chromium.org/10381105/diff/7002/chrome/browser/extensions/badge_controller.h#newcode19 chrome/browser/extensions/badge_controller.h:19: // Controller of the "badges" (aka "page actions") in ...
8 years, 7 months ago (2012-05-11 21:52:07 UTC) #8
Matt Perry
http://codereview.chromium.org/10381105/diff/7002/chrome/browser/extensions/badge_controller.h File chrome/browser/extensions/badge_controller.h (right): http://codereview.chromium.org/10381105/diff/7002/chrome/browser/extensions/badge_controller.h#newcode19 chrome/browser/extensions/badge_controller.h:19: // Controller of the "badges" (aka "page actions") in ...
8 years, 7 months ago (2012-05-11 22:01:17 UTC) #9
not at google - send to devlin
comments
8 years, 7 months ago (2012-05-14 03:58:19 UTC) #10
not at google - send to devlin
http://codereview.chromium.org/10381105/diff/7002/chrome/browser/extensions/badge_controller.h File chrome/browser/extensions/badge_controller.h (right): http://codereview.chromium.org/10381105/diff/7002/chrome/browser/extensions/badge_controller.h#newcode19 chrome/browser/extensions/badge_controller.h:19: // Controller of the "badges" (aka "page actions") in ...
8 years, 7 months ago (2012-05-14 03:59:01 UTC) #11
Matt Perry
http://codereview.chromium.org/10381105/diff/7002/chrome/browser/extensions/badge_controller.h File chrome/browser/extensions/badge_controller.h (right): http://codereview.chromium.org/10381105/diff/7002/chrome/browser/extensions/badge_controller.h#newcode19 chrome/browser/extensions/badge_controller.h:19: // Controller of the "badges" (aka "page actions") in ...
8 years, 7 months ago (2012-05-14 18:48:56 UTC) #12
Evan Stade
gtk lgtm, I'll leave others to decide the right class name. https://chromiumcodereview.appspot.com/10381105/diff/8003/chrome/browser/extensions/page_action_controller.cc File chrome/browser/extensions/page_action_controller.cc (right): ...
8 years, 7 months ago (2012-05-14 19:24:06 UTC) #13
not at google - send to devlin
http://codereview.chromium.org/10381105/diff/7002/chrome/browser/extensions/badge_controller.h File chrome/browser/extensions/badge_controller.h (right): http://codereview.chromium.org/10381105/diff/7002/chrome/browser/extensions/badge_controller.h#newcode19 chrome/browser/extensions/badge_controller.h:19: // Controller of the "badges" (aka "page actions") in ...
8 years, 7 months ago (2012-05-15 01:23:56 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/10381105/14003
8 years, 7 months ago (2012-05-15 01:30:11 UTC) #15
commit-bot: I haz the power
Try job failure for 10381105-14003 (retry) on linux_rel for step "browser_tests". It's a second try, ...
8 years, 7 months ago (2012-05-15 02:17:30 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/10381105/6004
8 years, 7 months ago (2012-05-15 03:03:43 UTC) #17
commit-bot: I haz the power
8 years, 7 months ago (2012-05-15 05:14:31 UTC) #18
Change committed as 137079

Powered by Google App Engine
This is Rietveld 408576698