Index: chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc |
=================================================================== |
--- chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc (revision 92539) |
+++ chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc (working copy) |
@@ -6,12 +6,14 @@ |
#include "base/auto_reset.h" |
#include "base/command_line.h" |
+#include "chrome/browser/defaults.h" |
#include "chrome/browser/extensions/extension_tab_helper.h" |
#include "chrome/browser/favicon/favicon_tab_helper.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/tabs/tab_strip_model.h" |
#include "chrome/browser/tabs/tab_strip_selection_model.h" |
#include "chrome/browser/ui/browser.h" |
+#include "chrome/browser/ui/browser_window.h" |
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
#include "chrome/browser/ui/tabs/tab_menu_model.h" |
#include "chrome/browser/ui/views/tabs/base_tab_strip.h" |
@@ -317,6 +319,16 @@ |
model_->ActiveTabClicked(index); |
} |
+bool BrowserTabStripController::SizeTabButtonToTopOfTabStrip() { |
+ if (browser_defaults::kSizeTabButtonToTopOfTabStrip) |
+ return true; |
+ |
+ if (browser_ && browser_->window()) |
+ return browser_->window()->IsMaximized(); |
+ |
+ return false; |
+} |
+ |
//////////////////////////////////////////////////////////////////////////////// |
// BrowserTabStripController, TabStripModelObserver implementation: |