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

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

Issue 11411250: Immersive mode reveals the tabstrip/omnibox on top of web content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comment Created 8 years, 1 month 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/ui/views/tabs/tab_strip.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
index f1145512bf8e02876aa79ba0791294208374c345..871f843f695ed2606d8be327dfbc7e171c62f0d3 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -1156,6 +1156,8 @@ bool TabStrip::ShouldPaintTab(const Tab* tab, gfx::Rect* clip) {
}
void TabStrip::SetImmersiveStyle(bool enable) {
+ if (immersive_style_ == enable)
+ return;
immersive_style_ = enable;
if (immersive_style_) {
// Dominant colors are only updated automatically when the tab strip is
@@ -1387,6 +1389,11 @@ views::View* TabStrip::GetEventHandlerForPoint(const gfx::Point& point) {
return this;
}
+// static
+int TabStrip::GetImmersiveHeight() {
+ return Tab::GetImmersiveHeight();
+}
+
int TabStrip::GetMiniTabCount() const {
int mini_count = 0;
while (mini_count < tab_count() && tab_at(mini_count)->data().mini)
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698