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

Issue 10885024: Integrate Chrome To Mobile with Action Box UI. (Closed)

Created:
8 years, 3 months ago by msw
Modified:
8 years, 3 months ago
Reviewers:
sail, Elliot Glaysher, sky
CC:
chromium-reviews, yefimt, beaudoin, Cait (Slow)
Visibility:
Public.

Description

Integrate Chrome To Mobile with Action Box UI. Gate IsChromeToMobileEnabled on Action Box flag. Nix commandline flags, and about:flags entry. Nix IDS_FLAGS_[EN|DIS]ABLE_CHROME_TO_MOBILE_[NAME|DESCRIPTION]. Remove page action icons, anchor to action box button: Nix chrome_to_mobile_decoration.[h|mm] and use. Nix chrome_to_mobile_view.[h|cc] and use. Nix LocationBarViewGtk::CreateChromeToMobileButton, etc. Nix Command observation from LocationBarView[Mac|Gtk|<win>]. Nix chromeToMobileBubblePoint, GetChromeToMobileBubblePoint, etc. Nix SetChromeToMobileDecorationLit, VIEW_ID_CHROME_TO_MOBILE_BUTTON, etc. Add SetActionBoxIcon, call from bubble show/close. Revise SetTextButtonIconToId for TextButton anchor view. Disable ShowChromeToMobileBubble on GTK :( TODO(followup): Refine updating/observation of IDC_CHROME_TO_MOBILE_PAGE. TODO(followup): TBD GTK Action Box, fallback UI, or more cleanup. BUG=102709, 120905, 125307 TEST=Chrome To Mobile is enabled iff Action Box is enabled; disabled on GTK. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154120

Patch Set 1 #

Patch Set 2 : Begin removing old Chrome To Mobile UI code. #

Patch Set 3 : More cleanup; Views is working. #

Patch Set 4 : Remove ViewID renmants; Mac is working; etc. #

Patch Set 5 : Disable ShowChromeToMobileBubble on GTK. #

Total comments: 6

Patch Set 6 : Address cocoa comments. #

Total comments: 2

Patch Set 7 : Address comment. #

Patch Set 8 : Fix nil/NULL checks in ChromeToMobileBubbleController. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -519 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 5 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/chrome_to_mobile_service.h View 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chrome_to_mobile_service.cc View 1 2 3 2 chunks +3 lines, -12 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 5 2 chunks +1 line, -21 lines 0 comments Download
M chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller.mm View 1 2 3 4 5 6 7 3 chunks +27 lines, -22 lines 0 comments Download
D chrome/browser/ui/cocoa/location_bar/chrome_to_mobile_decoration.h View 1 1 chunk +0 lines, -44 lines 0 comments Download
D chrome/browser/ui/cocoa/location_bar/chrome_to_mobile_decoration.mm View 1 1 chunk +0 lines, -56 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h View 1 2 3 8 chunks +4 lines, -17 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 1 2 3 8 chunks +4 lines, -38 lines 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_controller.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/view_id_util_browsertest.mm View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.h View 1 8 chunks +2 lines, -17 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.cc View 1 2 3 4 11 chunks +6 lines, -57 lines 0 comments Download
M chrome/browser/ui/gtk/view_id_util.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/view_ids.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/chrome_to_mobile_bubble_view.cc View 1 2 4 chunks +7 lines, -8 lines 0 comments Download
D chrome/browser/ui/views/location_bar/chrome_to_mobile_view.h View 1 1 chunk +0 lines, -52 lines 0 comments Download
D chrome/browser/ui/views/location_bar/chrome_to_mobile_view.cc View 1 1 chunk +0 lines, -83 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 9 chunks +9 lines, -36 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 5 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 5 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 5 2 chunks +0 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
msw
Please take a look, thanks! Sail: chrome/browser/ui/cocoa/* Erg: chrome/browser/ui/gtk/* Sky: chrome/browser/ui/views/* and remainder :)
8 years, 3 months ago (2012-08-29 22:01:54 UTC) #1
Elliot Glaysher
gtk rip out lgtm
8 years, 3 months ago (2012-08-29 22:10:09 UTC) #2
sail
cocoa/* LGTM! https://chromiumcodereview.appspot.com/10885024/diff/43/chrome/browser/ui/cocoa/browser_window_controller.mm File chrome/browser/ui/cocoa/browser_window_controller.mm (left): https://chromiumcodereview.appspot.com/10885024/diff/43/chrome/browser/ui/cocoa/browser_window_controller.mm#oldcode1671 chrome/browser/ui/cocoa/browser_window_controller.mm:1671: object:[chromeToMobileBubbleController_ window]]; can you add a DCHECK() ...
8 years, 3 months ago (2012-08-29 22:29:51 UTC) #3
msw
Done. Scott, please take a look, thanks! https://chromiumcodereview.appspot.com/10885024/diff/43/chrome/browser/ui/cocoa/browser_window_controller.mm File chrome/browser/ui/cocoa/browser_window_controller.mm (left): https://chromiumcodereview.appspot.com/10885024/diff/43/chrome/browser/ui/cocoa/browser_window_controller.mm#oldcode1671 chrome/browser/ui/cocoa/browser_window_controller.mm:1671: object:[chromeToMobileBubbleController_ window]]; ...
8 years, 3 months ago (2012-08-29 23:11:57 UTC) #4
sail
lgtm https://chromiumcodereview.appspot.com/10885024/diff/15001/chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller.mm File chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller.mm (right): https://chromiumcodereview.appspot.com/10885024/diff/15001/chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller.mm#newcode94 chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller.mm:94: if (controller != nil) { you don't need ...
8 years, 3 months ago (2012-08-29 23:15:03 UTC) #5
msw
Done. Scott, please take a look; thanks! https://chromiumcodereview.appspot.com/10885024/diff/15001/chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller.mm File chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller.mm (right): https://chromiumcodereview.appspot.com/10885024/diff/15001/chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller.mm#newcode94 chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller.mm:94: if (controller ...
8 years, 3 months ago (2012-08-29 23:26:19 UTC) #6
sky
LGTM
8 years, 3 months ago (2012-08-30 00:33:15 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10885024/46
8 years, 3 months ago (2012-08-30 00:42:39 UTC) #8
commit-bot: I haz the power
Try job failure for 10885024-46 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 3 months ago (2012-08-30 02:41:19 UTC) #9
msw
The failures differ between runs (flakes?), trying again.
8 years, 3 months ago (2012-08-30 02:46:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10885024/46
8 years, 3 months ago (2012-08-30 02:46:29 UTC) #11
commit-bot: I haz the power
Try job failure for 10885024-46 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-08-30 04:14:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10885024/46
8 years, 3 months ago (2012-08-30 05:10:42 UTC) #13
commit-bot: I haz the power
Try job failure for 10885024-46 (retry) (retry) on mac_rel for step "sync_integration_tests". It's a second ...
8 years, 3 months ago (2012-08-30 07:15:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10885024/46
8 years, 3 months ago (2012-08-30 07:56:30 UTC) #15
commit-bot: I haz the power
8 years, 3 months ago (2012-08-30 13:03:23 UTC) #16
Change committed as 154120

Powered by Google App Engine
This is Rietveld 408576698