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

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

Issue 9390038: Move automation/ui_controls to ui/ui_controls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win_aura fix, sync Created 8 years, 9 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
Index: chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc
diff --git a/chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc b/chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc
index 9824131841c6ffef011299e2219ee501a67ba8eb..289179f81110ac7b609ec405d542ae2e1e5a3c51 100644
--- a/chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc
+++ b/chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc
@@ -21,6 +21,7 @@
#include "content/public/browser/notification_source.h"
#include "content/public/browser/notification_types.h"
#include "content/public/browser/web_contents.h"
+#include "ui/base/gtk/gtk_screen_util.h"
#include "ui/gfx/screen.h"
using content::OpenURLParams;
@@ -376,7 +377,7 @@ TabStripGtk* DraggedTabControllerGtk::GetTabStripIfItContains(
// Make sure the specified screen point is actually within the bounds of the
// specified tabstrip...
gfx::Rect tabstrip_bounds =
- gtk_util::GetWidgetScreenBounds(tabstrip->tabstrip_.get());
+ ui::GetWidgetScreenBounds(tabstrip->tabstrip_.get());
if (screen_point.x() < tabstrip_bounds.right() &&
screen_point.x() >= tabstrip_bounds.x()) {
// TODO(beng): make this be relative to the start position of the mouse for
@@ -421,7 +422,7 @@ void DraggedTabControllerGtk::Attach(TabStripGtk* attached_tabstrip,
GtkWidget* parent_window = gtk_widget_get_parent(
gtk_widget_get_parent(attached_tabstrip_->tabstrip_.get()));
- gfx::Rect window_bounds = gtk_util::GetWidgetScreenBounds(parent_window);
+ gfx::Rect window_bounds = ui::GetWidgetScreenBounds(parent_window);
dragged_view_->Attach(static_cast<int>(floor(selected_width + 0.5)),
TabGtk::GetMiniWidth(), window_bounds.width());
@@ -504,7 +505,7 @@ void DraggedTabControllerGtk::Detach() {
gfx::Point DraggedTabControllerGtk::ConvertScreenPointToTabStripPoint(
TabStripGtk* tabstrip, const gfx::Point& screen_point) {
gfx::Point tabstrip_screen_point =
- gtk_util::GetWidgetScreenPosition(tabstrip->tabstrip_.get());
+ ui::GetWidgetScreenPosition(tabstrip->tabstrip_.get());
return screen_point.Subtract(tabstrip_screen_point);
}
@@ -576,7 +577,7 @@ gfx::Point DraggedTabControllerGtk::GetDraggedViewPoint(
// If we're not attached, we just use x and y from above.
if (attached_tabstrip_) {
gfx::Rect tabstrip_bounds =
- gtk_util::GetWidgetScreenBounds(attached_tabstrip_->tabstrip_.get());
+ ui::GetWidgetScreenBounds(attached_tabstrip_->tabstrip_.get());
// Snap the dragged tab to the tabstrip if we are attached, detaching
// only when the mouse position (screen_point) exceeds the screen bounds
// of the tabstrip.
@@ -820,7 +821,7 @@ gfx::Rect DraggedTabControllerGtk::GetAnimateBounds() {
gfx::Rect bounds = tab->GetRequisition();
GtkWidget* widget = tab->widget();
GtkWidget* parent = gtk_widget_get_parent(widget);
- gfx::Point point = gtk_util::GetWidgetScreenPosition(parent);
+ gfx::Point point = ui::GetWidgetScreenPosition(parent);
bounds.Offset(point);
return gfx::Rect(bounds.x(), bounds.y(),
« no previous file with comments | « chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc ('k') | chrome/browser/ui/gtk/tabs/dragged_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698