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

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

Issue 8196001: content: Split web_drag_dest_gtk.cc into chrome/ and content/ parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix viewgtk compile Created 9 years, 2 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/tab_contents_drag_source.cc ('k') | chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/tabs/dragged_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/tabs/dragged_view_gtk.cc b/chrome/browser/ui/gtk/tabs/dragged_view_gtk.cc
index b10a2eabcf5fdafd271f0690739832aef5020e90..682704e9493868670d81b33803e7d96f0f0caf57 100644
--- a/chrome/browser/ui/gtk/tabs/dragged_view_gtk.cc
+++ b/chrome/browser/ui/gtk/tabs/dragged_view_gtk.cc
@@ -23,6 +23,7 @@
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "third_party/skia/include/core/SkShader.h"
+#include "ui/base/gtk/gtk_screen_utils.h"
#include "ui/base/x/x11_util.h"
#include "ui/gfx/gtk_util.h"
@@ -138,7 +139,7 @@ void DraggedViewGtk::Attach(
Resize(dragged_tab_width);
- if (gtk_util::IsScreenComposited())
+ if (ui::IsScreenComposited())
gdk_window_set_opacity(container_->window, kOpaqueAlpha);
}
@@ -151,7 +152,7 @@ void DraggedViewGtk::Detach() {
attached_ = false;
ResizeContainer();
- if (gtk_util::IsScreenComposited())
+ if (ui::IsScreenComposited())
gdk_window_set_opacity(container_->window, kTransparentAlpha);
}
@@ -369,7 +370,7 @@ void DraggedViewGtk::SetContainerShapeMask() {
}
gboolean DraggedViewGtk::OnExpose(GtkWidget* widget, GdkEventExpose* event) {
- if (gtk_util::IsScreenComposited())
+ if (ui::IsScreenComposited())
SetContainerTransparency();
else
SetContainerShapeMask();
« no previous file with comments | « chrome/browser/ui/gtk/tab_contents_drag_source.cc ('k') | chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698