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

Side by Side Diff: chrome/browser/ui/gtk/tabs/dragged_view_gtk.h

Issue 8392011: GTK: Step 1 of tab strip refresh. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to ToT again. Created 9 years, 1 month 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
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 #ifndef CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 #include <vector> 10 #include <vector>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Sets full transparency for the container window. This is used if 122 // Sets full transparency for the container window. This is used if
123 // compositing is available for the screen. 123 // compositing is available for the screen.
124 void SetContainerTransparency(); 124 void SetContainerTransparency();
125 125
126 // Sets the shape mask for the container window to emulate a transparent 126 // Sets the shape mask for the container window to emulate a transparent
127 // container window. This is used if compositing is not available for the 127 // container window. This is used if compositing is not available for the
128 // screen. 128 // screen.
129 // |surface| represents the tab only (not the render view). 129 // |surface| represents the tab only (not the render view).
130 void SetContainerShapeMask(); 130 void SetContainerShapeMask();
131 131
132 void PaintTab(int index, cairo_t* cr, int widget_width); 132 void PaintTab(int index, GtkWidget* widget, cairo_t* cr, int widget_width);
133 133
134 // expose-event handler that notifies when the tab needs to be redrawn. 134 // expose-event handler that notifies when the tab needs to be redrawn.
135 CHROMEGTK_CALLBACK_1(DraggedViewGtk, gboolean, OnExpose, GdkEventExpose*); 135 CHROMEGTK_CALLBACK_1(DraggedViewGtk, gboolean, OnExpose, GdkEventExpose*);
136 136
137 // The window that contains the dragged tab or tab contents. 137 // The window that contains the dragged tab or tab contents.
138 GtkWidget* container_; 138 GtkWidget* container_;
139 139
140 // The fixed widget that we use to contain the tab renderer so that the 140 // The fixed widget that we use to contain the tab renderer so that the
141 // tab widget won't be resized. 141 // tab widget won't be resized.
142 GtkWidget* fixed_; 142 GtkWidget* fixed_;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 base::Closure animation_callback_; 183 base::Closure animation_callback_;
184 184
185 // The start and end bounds of the animation sequence. 185 // The start and end bounds of the animation sequence.
186 gfx::Rect animation_start_bounds_; 186 gfx::Rect animation_start_bounds_;
187 gfx::Rect animation_end_bounds_; 187 gfx::Rect animation_end_bounds_;
188 188
189 DISALLOW_COPY_AND_ASSIGN(DraggedViewGtk); 189 DISALLOW_COPY_AND_ASSIGN(DraggedViewGtk);
190 }; 190 };
191 191
192 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_ 192 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698