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

Unified Diff: chrome/browser/views/tabs/tab_strip.cc

Issue 341008: CompactLocationBar (Closed)
Patch Set: comment updated Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/tabs/tab_strip.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/tabs/tab_strip.cc
diff --git a/chrome/browser/views/tabs/tab_strip.cc b/chrome/browser/views/tabs/tab_strip.cc
index dfdb2bed25015ed6aafa95b0b1d8731c1db5834c..e70c88c3243fc342d6e8542a97a8cc30b8f5704a 100644
--- a/chrome/browser/views/tabs/tab_strip.cc
+++ b/chrome/browser/views/tabs/tab_strip.cc
@@ -772,6 +772,10 @@ gfx::Rect TabStrip::GetIdealBounds(int index) {
return tab_data_.at(index).ideal_bounds;
}
+Tab* TabStrip::GetSelectedTab() const {
+ return GetTabAtAdjustForAnimation(model()->selected_index());
+}
+
void TabStrip::InitTabStripButtons() {
newtab_button_ = new NewTabButton(this);
LoadNewTabButtonImage();
@@ -1320,7 +1324,6 @@ void TabStrip::DidProcessEvent(GdkEvent* event) {
////////////////////////////////////////////////////////////////////////////////
// TabStrip, TabStripWrapper implementation:
-
int TabStrip::GetPreferredHeight() {
return GetPreferredSize().height();
}
« no previous file with comments | « chrome/browser/views/tabs/tab_strip.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698