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

Side by Side Diff: chrome/browser/ui/gtk/tabs/dragged_view_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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/gtk/tabs/dragged_view_gtk.h" 5 #include "chrome/browser/ui/gtk/tabs/dragged_view_gtk.h"
6 6
7 #include <gdk/gdk.h> 7 #include <gdk/gdk.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "base/debug/trace_event.h" 11 #include "base/debug/trace_event.h"
12 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "base/stl_util.h" 13 #include "base/stl_util.h"
14 #include "chrome/browser/extensions/extension_tab_helper.h" 14 #include "chrome/browser/extensions/extension_tab_helper.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/tabs/tab_strip_model.h" 16 #include "chrome/browser/tabs/tab_strip_model.h"
17 #include "chrome/browser/themes/theme_service.h" 17 #include "chrome/browser/themes/theme_service.h"
18 #include "chrome/browser/themes/theme_service_factory.h" 18 #include "chrome/browser/themes/theme_service_factory.h"
19 #include "chrome/browser/ui/gtk/gtk_util.h" 19 #include "chrome/browser/ui/gtk/gtk_util.h"
20 #include "chrome/browser/ui/gtk/tabs/drag_data.h" 20 #include "chrome/browser/ui/gtk/tabs/drag_data.h"
21 #include "chrome/browser/ui/gtk/tabs/tab_renderer_gtk.h" 21 #include "chrome/browser/ui/gtk/tabs/tab_renderer_gtk.h"
22 #include "chrome/browser/ui/gtk/theme_service_gtk.h" 22 #include "chrome/browser/ui/gtk/theme_service_gtk.h"
23 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 23 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
24 #include "content/public/browser/render_view_host.h" 24 #include "content/public/browser/render_view_host.h"
25 #include "content/public/browser/web_contents.h" 25 #include "content/public/browser/web_contents.h"
26 #include "third_party/skia/include/core/SkShader.h" 26 #include "third_party/skia/include/core/SkShader.h"
27 #include "ui/base/gtk/gtk_screen_utils.h" 27 #include "ui/base/gtk/gtk_screen_util.h"
28 #include "ui/base/x/x11_util.h" 28 #include "ui/base/x/x11_util.h"
29 #include "ui/gfx/gtk_util.h" 29 #include "ui/gfx/gtk_util.h"
30 30
31 using content::WebContents; 31 using content::WebContents;
32 32
33 namespace { 33 namespace {
34 34
35 // The size of the dragged window frame. 35 // The size of the dragged window frame.
36 const int kDragFrameBorderSize = 1; 36 const int kDragFrameBorderSize = 1;
37 const int kTwiceDragFrameBorderSize = 2 * kDragFrameBorderSize; 37 const int kTwiceDragFrameBorderSize = 2 * kDragFrameBorderSize;
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 if (!attached_) { 467 if (!attached_) {
468 paint_at = widget_width / kScalingFactor - 468 paint_at = widget_width / kScalingFactor -
469 GetWidthInTabStripFromTo(0, index + 1); 469 GetWidthInTabStripFromTo(0, index + 1);
470 } 470 }
471 } 471 }
472 472
473 cairo_set_source_surface(cr, surface, paint_at, 0); 473 cairo_set_source_surface(cr, surface, paint_at, 0);
474 cairo_paint(cr); 474 cairo_paint(cr);
475 cairo_surface_destroy(surface); 475 cairo_surface_destroy(surface);
476 } 476 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc ('k') | chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698