From 5665769ecaa9305433d8582aa26fb44f0ab0146f Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Sat, 6 Jun 2009 00:21:36 +0000 Subject: Add dock_info.cc to the linux build. BUG=none TEST=none Review URL: http://codereview.chromium.org/118344 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17804 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/dock_info.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'chrome/browser/dock_info.cc') diff --git a/chrome/browser/dock_info.cc b/chrome/browser/dock_info.cc index 8c4428d..d52ddc9 100644 --- a/chrome/browser/dock_info.cc +++ b/chrome/browser/dock_info.cc @@ -4,7 +4,11 @@ #include "chrome/browser/dock_info.h" +#if defined(TOOLKIT_VIEWS) #include "chrome/browser/views/tabs/tab.h" +#else +#include "chrome/browser/gtk/tabs/tab_gtk.h" +#endif namespace { @@ -60,7 +64,11 @@ bool DockInfo::IsCloseToMonitorPoint(const gfx::Point& screen_loc, case DockInfo::MAXIMIZE: { // Make the maximize height smaller than the tab height to avoid showing // the dock indicator when close to maximized browser. +#if defined(TOOLKIT_VIEWS) hot_spot_delta_y = Tab::GetMinimumUnselectedSize().height() - 1; +#else + hot_spot_delta_y = TabGtk::GetMinimumUnselectedSize().height() - 1; +#endif enable_delta_y = hot_spot_delta_y / 2; break; } -- cgit v1.1