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

Issue 6913026: Compact Navigation prototype (Closed)

Created:
9 years, 7 months ago by SteveT
Modified:
9 years, 7 months ago
Reviewers:
Peter Kasting, sky
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr., oshima
Visibility:
Public.

Description

The initial prototype code for the compact navigation (cnav) prototype, currently only active in windows. This is well hidden behind a flag and a context menu option. Loosely based off oshima's original prototype patch: http://codereview.chromium.org/165272 BUG=None TEST=Activate the cnav prototype in about:flags. Right click a tab and select "Hide Toolbar" to go into cnav mode. Ensure that the compact location bar provides the same basic functionality as the toolbar (except browser actions). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84971

Patch Set 1 #

Total comments: 218

Patch Set 2 : Addressed initial review comments. Merged with tip of tree. Fixed lint issues and mac/linux tests. #

Patch Set 3 : Fixed last few issues from sky@. #

Patch Set 4 : Added missing DropdownBarHostDelegate header file. #

Total comments: 23

Patch Set 5 : Fixed additional nits. Fixed cnav/options bar layout and comment. Merged with ToT. #

Patch Set 6 : Fixed a few lint issues. Fixed a linux compiler error due to missing timer header. #

Patch Set 7 : Clang build fix. After commit/revert. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2455 lines, -197 lines) Patch
M chrome/app/chrome_command_ids.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/tabs/default_tab_handler.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/tabs/default_tab_handler.cc View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/tabs/tab_strip_model.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/tabs/tab_strip_model.cc View 1 2 3 4 5 6 5 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/tabs/tab_strip_model_delegate.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/tabs/tab_strip_model_observer.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/tabs/tab_strip_model_observer.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/tabs/tab_strip_model_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 5 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 10 chunks +36 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller_unittest.mm View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/view_id_util_browsertest.mm View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/view_id_util_browsertest.cc View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_cocoa.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_cocoa.mm View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/tabs/tab_menu_model.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/tabs/tab_menu_model.cc View 1 2 3 4 5 6 3 chunks +28 lines, -6 lines 0 comments Download
M chrome/browser/ui/view_ids.h View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/compact_nav/compact_location_bar_view.h View 1 2 3 4 1 chunk +104 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc View 1 2 3 4 1 chunk +332 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.h View 1 2 3 4 5 1 chunk +138 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc View 1 2 3 4 5 6 1 chunk +518 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/compact_nav/compact_navigation_bar.h View 1 2 3 4 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/compact_nav/compact_navigation_bar.cc View 1 2 3 4 5 1 chunk +186 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/compact_nav/compact_options_bar.h View 1 1 chunk +81 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/compact_nav/compact_options_bar.cc View 1 1 chunk +151 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/dropdown_bar_host.h View 1 2 3 4 5 6 4 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/dropdown_bar_host.cc View 1 2 3 4 5 6 5 chunks +25 lines, -8 lines 0 comments Download
A chrome/browser/ui/views/dropdown_bar_host_delegate.h View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/dropdown_bar_view.h View 1 2 3 4 5 6 5 chunks +33 lines, -13 lines 0 comments Download
A chrome/browser/ui/views/dropdown_bar_view.cc View 1 1 chunk +107 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/find_bar_host.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/find_bar_view.cc View 1 2 3 4 5 6 5 chunks +4 lines, -43 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 10 chunks +42 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 20 chunks +120 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.h View 1 2 3 4 5 6 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.cc View 1 2 3 4 5 6 11 chunks +122 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 5 6 4 chunks +34 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 3 4 5 6 4 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/base_tab.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/base_tab_strip.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/base_tab_strip.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_controller.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip_controller.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.h View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.cc View 1 2 3 4 5 6 2 chunks +55 lines, -55 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 4 chunks +19 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/test_browser_window.h View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
M views/events/event.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M views/events/event_win.cc View 1 2 3 4 5 6 2 chunks +14 lines, -14 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
SteveT
Over to you, Scott. Finally! - We had a ton of issues wrangling with presubmit, ...
9 years, 7 months ago (2011-05-03 15:20:50 UTC) #1
Peter Kasting
A few drive-by nits http://codereview.chromium.org/6913026/diff/1/chrome/browser/autocomplete/autocomplete_edit_view.h File chrome/browser/autocomplete/autocomplete_edit_view.h (right): http://codereview.chromium.org/6913026/diff/1/chrome/browser/autocomplete/autocomplete_edit_view.h#newcode36 chrome/browser/autocomplete/autocomplete_edit_view.h:36: Nit: Don't add this. This ...
9 years, 7 months ago (2011-05-03 18:04:24 UTC) #2
sky
Mostly just style nits. -Scott http://codereview.chromium.org/6913026/diff/1/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): http://codereview.chromium.org/6913026/diff/1/chrome/browser/about_flags.cc#newcode251 chrome/browser/about_flags.cc:251: kOsWin, // TODO(stevet): Add ...
9 years, 7 months ago (2011-05-03 18:38:32 UTC) #3
SteveT
Hi Peter/Scott, Thanks for looking over this long CL, guys. I've addressed all your issues, ...
9 years, 7 months ago (2011-05-06 18:48:43 UTC) #4
sky
http://codereview.chromium.org/6913026/diff/1/chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc File chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc (right): http://codereview.chromium.org/6913026/diff/1/chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc#newcode55 chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc:55: const SkBitmap* kDialogLeft = NULL; On 2011/05/06 18:48:43, SteveT ...
9 years, 7 months ago (2011-05-06 19:56:06 UTC) #5
SteveT
Everything addressed. Back to you for another look. Thanks! Steve http://codereview.chromium.org/6913026/diff/1/chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc File chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc (right): http://codereview.chromium.org/6913026/diff/1/chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc#newcode55 ...
9 years, 7 months ago (2011-05-06 22:13:40 UTC) #6
sky
http://codereview.chromium.org/6913026/diff/19030/chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc File chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc (right): http://codereview.chromium.org/6913026/diff/19030/chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc#newcode83 chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc:83: if (!AccessiblePaneView::SetPaneFocus(view_storage_id, initial_focus)) spacing is off http://codereview.chromium.org/6913026/diff/19030/chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc#newcode91 chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc:91: ui::AccessibleViewState* ...
9 years, 7 months ago (2011-05-09 14:27:21 UTC) #7
SteveT
Back to you. Thanks. http://codereview.chromium.org/6913026/diff/19030/chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc File chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc (right): http://codereview.chromium.org/6913026/diff/19030/chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc#newcode83 chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc:83: if (!AccessiblePaneView::SetPaneFocus(view_storage_id, initial_focus)) On 2011/05/09 ...
9 years, 7 months ago (2011-05-09 19:40:04 UTC) #8
sky
9 years, 7 months ago (2011-05-09 21:15:03 UTC) #9
LGTM

http://codereview.chromium.org/6913026/diff/19030/chrome/browser/ui/views/dro...
File chrome/browser/ui/views/dropdown_bar_host_delegate.h (right):

http://codereview.chromium.org/6913026/diff/19030/chrome/browser/ui/views/dro...
chrome/browser/ui/views/dropdown_bar_host_delegate.h:10: virtual
~DropdownBarHostDelegate() {}
On 2011/05/09 19:40:04, SteveT wrote:
> On 2011/05/09 14:27:22, sky wrote:
> > Move this to the protected section.
> 
> Done. For my understanding: My guess as to why you want this is to prevent the
> delegate owners from destroying the delegate. Is that accurate? Should I add a
> comment to that effect or do you consider that well understood? I don't see it
> being done in some similar cases.

It makes it clear that DropdownBarHost doesn't own the delegate. Well, I suppose
it could be away of a friend, but we typically don't do that.

Powered by Google App Engine
This is Rietveld 408576698