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

Issue 341008: CompactLocationBar (Closed)

Created:
11 years, 1 month ago by oshima
Modified:
9 years, 6 months ago
Reviewers:
brettw
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

CompactLocationBar 1st step: * Added OnMouseXXXTab methods to BrowserExtender to handle on tabs. * Changed tab to call above methods. * Added GetSelectedTab to TabStrip Minor changes along with the major changes above * Removed unnecessary file entries in chrome.gyp * Fixed a few method's const. * Removed unnecessary class declarations and includes. Know issue: keyboard focus is not working. In 2nd step, I'm going to eliminate popup and use whatever that FindBar is using to show compact location bar. I'll fix the issue above after this migration. (if it still persists) BUG=None Test=None

Patch Set 1 #

Patch Set 2 : remove unnecessary files from CL. #

Patch Set 3 : style fix #

Patch Set 4 : style fix #

Total comments: 6

Patch Set 5 : comment fixed #

Patch Set 6 : comment updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+493 lines, -12 lines) Patch
M chrome/browser/chromeos/chromeos_browser_extenders.cc View 8 chunks +41 lines, -1 line 0 comments Download
A chrome/browser/chromeos/compact_location_bar.h View 1 2 3 1 chunk +111 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/compact_location_bar.cc View 1 2 3 1 chunk +273 lines, -0 lines 0 comments Download
M chrome/browser/views/frame/browser_extender.h View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/views/frame/browser_extender.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/views/frame/standard_extender.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/views/tabs/tab.h View 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/views/tabs/tab.cc View 1 2 3 4 5 4 chunks +33 lines, -1 line 0 comments Download
M chrome/browser/views/tabs/tab_strip.h View 1 2 3 4 5 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/views/tabs/tab_strip.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M views/view.h View 1 chunk +1 line, -1 line 0 comments Download
M views/view.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
oshima
11 years, 1 month ago (2009-10-27 22:15:20 UTC) #1
brettw
http://codereview.chromium.org/341008/diff/1031/1038 File chrome/browser/views/tabs/tab.cc (right): http://codereview.chromium.org/341008/diff/1031/1038#newcode165 Line 165: GetBrowserExtender()->OnMouseEnteredToTab(this); Is this call necessary? I would have ...
11 years, 1 month ago (2009-10-28 16:36:57 UTC) #2
oshima
http://codereview.chromium.org/341008/diff/1031/1038 File chrome/browser/views/tabs/tab.cc (right): http://codereview.chromium.org/341008/diff/1031/1038#newcode165 Line 165: GetBrowserExtender()->OnMouseEnteredToTab(this); On 2009/10/28 16:36:57, brettw wrote: > Is ...
11 years, 1 month ago (2009-10-28 17:17:56 UTC) #3
brettw
LGTM http://codereview.chromium.org/341008/diff/1031/1038 File chrome/browser/views/tabs/tab.cc (right): http://codereview.chromium.org/341008/diff/1031/1038#newcode262 Line 262: return static_cast<BrowserView*>(tab_strip->GetParent())->browser_extender(); On 2009/10/28 17:17:56, oshima wrote: ...
11 years, 1 month ago (2009-10-28 17:33:49 UTC) #4
oshima
11 years, 1 month ago (2009-10-28 17:56:53 UTC) #5
I just uploaded patch but it's got a few changes from latest trunk when I run
"git rebase". I'll run trybots first and commit.

http://codereview.chromium.org/341008/diff/1031/1038
File chrome/browser/views/tabs/tab.cc (right):

http://codereview.chromium.org/341008/diff/1031/1038#newcode262
Line 262: return
static_cast<BrowserView*>(tab_strip->GetParent())->browser_extender();
On 2009/10/28 17:33:50, brettw wrote:
> On 2009/10/28 17:17:56, oshima wrote:
> > On 2009/10/28 16:36:57, brettw wrote:
> > > Ugh. I guess I don't have a better suggestion for this. Hopefully it won't
> > have
> > > to stay this way for long.
> > 
> > Ah, yes. I forgot to mention this. I agree that this is ugly, and I was
> > wondering if there is a better way. One alternative is to use View ID (and
> > probably cache it), or pass reference around to this. Or may be we should
add
> > method to return browser view/extender to delegate?  What do you think?
> 
> I'm OK with this for now. How about adding what you just said (options for
> alternate implementations) to the comment inside the function. Then it's more
> clear how to fix it if we decide to keep the compact location bar.

Good idea. Done.

Powered by Google App Engine
This is Rietveld 408576698