diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-03 22:49:26 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-03 22:49:26 +0000 |
commit | cc09e6d788bcd9f2c3a2b2c32e41be62634c8673 (patch) | |
tree | a0b82e783a8ea5b29725b7a72d83455dd77ac682 /chrome/browser/dock_info_gtk.cc | |
parent | 649f3a5d65594046164d0bc44acae34e8d7a8e5b (diff) | |
download | chromium_src-cc09e6d788bcd9f2c3a2b2c32e41be62634c8673.zip chromium_src-cc09e6d788bcd9f2c3a2b2c32e41be62634c8673.tar.gz chromium_src-cc09e6d788bcd9f2c3a2b2c32e41be62634c8673.tar.bz2 |
Fix toolkit_views build.
Review URL: http://codereview.chromium.org/119119
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17556 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dock_info_gtk.cc')
-rw-r--r-- | chrome/browser/dock_info_gtk.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/dock_info_gtk.cc b/chrome/browser/dock_info_gtk.cc index aadb417..688a2af 100644 --- a/chrome/browser/dock_info_gtk.cc +++ b/chrome/browser/dock_info_gtk.cc @@ -173,7 +173,9 @@ class LocalProcessWindowFinder : public BaseWindowFinder { DISALLOW_COPY_AND_ASSIGN(LocalProcessWindowFinder); }; +#if !defined(TOOLKIT_VIEWS) DockInfo::Factory* DockInfo::factory_ = NULL; +#endif // static DockInfo DockInfo::GetDockInfoAtPoint(const gfx::Point& screen_point, @@ -192,9 +194,13 @@ GtkWindow* DockInfo::GetLocalProcessWindowAtPoint( if (factory_) return factory_->GetLocalProcessWindowAtPoint(screen_point, ignore); +#if !defined(TOOLKIT_VIEWS) XID xid = - LocalProcessWindowFinder::GetProcessWindowAtPoint(screen_point, ignore); + LocalProcessWindowFinder::GetProcessWindowAtPoint(screen_point, ignore); return BrowserWindowGtk::GetBrowserWindowForXID(xid); +#else + return NULL; +#endif } bool DockInfo::GetWindowBounds(gfx::Rect* bounds) const { |