| Index: chrome/browser/ui/gtk/tabs/window_finder.cc
|
| diff --git a/chrome/browser/ui/gtk/tabs/dock_info_gtk.cc b/chrome/browser/ui/gtk/tabs/window_finder.cc
|
| similarity index 84%
|
| copy from chrome/browser/ui/gtk/tabs/dock_info_gtk.cc
|
| copy to chrome/browser/ui/gtk/tabs/window_finder.cc
|
| index da569a52a71ec7211777885a0373506d6c8097bd..e6e5afc80edc7c2419a6914ce170409d7a62e1fc 100644
|
| --- a/chrome/browser/ui/gtk/tabs/dock_info_gtk.cc
|
| +++ b/chrome/browser/ui/gtk/tabs/window_finder.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/ui/tabs/dock_info.h"
|
| +#include "chrome/browser/ui/gtk/tabs/window_finder.h"
|
|
|
| #include <gtk/gtk.h>
|
|
|
| @@ -16,6 +16,8 @@
|
| #include "ui/base/x/x11_util.h"
|
| #include "ui/gfx/native_widget_types.h"
|
|
|
| +namespace {
|
| +
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // BaseWindowFinder
|
| //
|
| @@ -171,41 +173,12 @@ class LocalProcessWindowFinder : public BaseWindowFinder {
|
| DISALLOW_COPY_AND_ASSIGN(LocalProcessWindowFinder);
|
| };
|
|
|
| -// static
|
| -DockInfo DockInfo::GetDockInfoAtPoint(chrome::HostDesktopType host_desktop_type,
|
| - const gfx::Point& screen_point,
|
| - const std::set<GtkWidget*>& ignore) {
|
| - NOTIMPLEMENTED();
|
| - return DockInfo();
|
| -}
|
| +} // namespace
|
|
|
| -// static
|
| -GtkWindow* DockInfo::GetLocalProcessWindowAtPoint(
|
| - chrome::HostDesktopType host_desktop_type,
|
| +GtkWindow* GetLocalProcessWindowAtPoint(
|
| const gfx::Point& screen_point,
|
| const std::set<GtkWidget*>& ignore) {
|
| XID xid =
|
| LocalProcessWindowFinder::GetProcessWindowAtPoint(screen_point, ignore);
|
| return BrowserWindowGtk::GetBrowserWindowForXID(xid);
|
| }
|
| -
|
| -bool DockInfo::GetWindowBounds(gfx::Rect* bounds) const {
|
| - if (!window())
|
| - return false;
|
| -
|
| - int x, y, w, h;
|
| - gtk_window_get_position(window(), &x, &y);
|
| - gtk_window_get_size(window(), &w, &h);
|
| - bounds->SetRect(x, y, w, h);
|
| - return true;
|
| -}
|
| -
|
| -void DockInfo::SizeOtherWindowTo(const gfx::Rect& bounds) const {
|
| - gtk_window_move(window(), bounds.x(), bounds.y());
|
| - gtk_window_resize(window(), bounds.width(), bounds.height());
|
| -}
|
| -
|
| -// static
|
| -int DockInfo::GetHotSpotDeltaY() {
|
| - return TabGtk::GetMinimumUnselectedSize().height() - 1;
|
| -}
|
|
|