diff options
Diffstat (limited to 'chrome/browser/dock_info.cc')
-rw-r--r-- | chrome/browser/dock_info.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/dock_info.cc b/chrome/browser/dock_info.cc index 92ee871..a9c2561 100644 --- a/chrome/browser/dock_info.cc +++ b/chrome/browser/dock_info.cc @@ -331,8 +331,14 @@ class DockToWindowFinder : public BaseWindowFinder { // DockInfo ------------------------------------------------------------------- // static +DockInfo::Factory* DockInfo::factory_ = NULL; + +// static DockInfo DockInfo::GetDockInfoAtPoint(const gfx::Point& screen_point, const std::set<HWND>& ignore) { + if (factory_) + return factory_->GetDockInfoAtPoint(screen_point, ignore); + // Try docking to a window first. DockInfo info = DockToWindowFinder::GetDockInfoAtPoint(screen_point, ignore); if (info.type() != DockInfo::NONE) @@ -368,6 +374,8 @@ int DockInfo::popup_height() { HWND DockInfo::GetLocalProcessWindowAtPoint(const gfx::Point& screen_point, const std::set<HWND>& ignore) { + if (factory_) + return factory_->GetLocalProcessWindowAtPoint(screen_point, ignore); return LocalProcessWindowFinder::GetProcessWindowAtPoint(screen_point, ignore); } |