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

Side by Side Diff: chrome/browser/ui/gtk/tabs/dragged_tab_gtk.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/tabs/dragged_tab_gtk.h ('k') | chrome/browser/ui/gtk/tabs/tab_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_tab_gtk.h" 5 #include "chrome/browser/ui/gtk/tabs/dragged_tab_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/i18n/rtl.h" 11 #include "base/i18n/rtl.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/renderer_host/backing_store_x.h" 13 #include "chrome/browser/renderer_host/backing_store_x.h"
14 #include "chrome/browser/renderer_host/render_view_host.h" 14 #include "chrome/browser/renderer_host/render_view_host.h"
15 #include "chrome/browser/tab_contents/tab_contents.h" 15 #include "chrome/browser/tab_contents/tab_contents.h"
16 #include "chrome/browser/tabs/tab_strip_model.h" 16 #include "chrome/browser/tabs/tab_strip_model.h"
17 #include "chrome/browser/themes/browser_theme_provider.h" 17 #include "chrome/browser/themes/browser_theme_provider.h"
18 #include "chrome/browser/ui/gtk/gtk_util.h" 18 #include "chrome/browser/ui/gtk/gtk_util.h"
19 #include "chrome/browser/ui/gtk/tabs/tab_renderer_gtk.h" 19 #include "chrome/browser/ui/gtk/tabs/tab_renderer_gtk.h"
20 #include "gfx/gtk_util.h"
21 #include "third_party/skia/include/core/SkShader.h" 20 #include "third_party/skia/include/core/SkShader.h"
22 #include "ui/base/x/x11_util.h" 21 #include "ui/base/x/x11_util.h"
22 #include "ui/gfx/gtk_util.h"
23 23
24 namespace { 24 namespace {
25 25
26 // The size of the dragged window frame. 26 // The size of the dragged window frame.
27 const int kDragFrameBorderSize = 1; 27 const int kDragFrameBorderSize = 1;
28 const int kTwiceDragFrameBorderSize = 2 * kDragFrameBorderSize; 28 const int kTwiceDragFrameBorderSize = 2 * kDragFrameBorderSize;
29 29
30 // Used to scale the dragged window sizes. 30 // Used to scale the dragged window sizes.
31 const float kScalingFactor = 0.5; 31 const float kScalingFactor = 0.5;
32 32
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 cairo_set_source_surface(cr, surface, 0, 0); 330 cairo_set_source_surface(cr, surface, 0, 0);
331 cairo_paint(cr); 331 cairo_paint(cr);
332 332
333 cairo_destroy(cr); 333 cairo_destroy(cr);
334 334
335 cairo_surface_destroy(surface); 335 cairo_surface_destroy(surface);
336 336
337 // We've already drawn the tab, so don't propagate the expose-event signal. 337 // We've already drawn the tab, so don't propagate the expose-event signal.
338 return TRUE; 338 return TRUE;
339 } 339 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tabs/dragged_tab_gtk.h ('k') | chrome/browser/ui/gtk/tabs/tab_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698