Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: chrome/browser/ui/gtk/tabs/window_finder.cc

Issue 165463003: Copies DockInfoGtk into WindowFinder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/gtk/tabs/window_finder.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
-}
« no previous file with comments | « chrome/browser/ui/gtk/tabs/window_finder.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698