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

Side by Side Diff: chrome/browser/gtk/tabs/tab_strip_gtk.h

Issue 149426: Fix a few issues with the drop arrow in the Linux tab strip:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « no previous file | chrome/browser/gtk/tabs/tab_strip_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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_GTK_TABS_TAB_STRIP_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_
6 #define CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_ 6 #define CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // it. 300 // it.
301 gfx::Rect GetDropBounds(int drop_index, bool drop_before, bool* is_beneath); 301 gfx::Rect GetDropBounds(int drop_index, bool drop_before, bool* is_beneath);
302 302
303 // Updates the location of the drop based on the event. 303 // Updates the location of the drop based on the event.
304 void UpdateDropIndex(GdkDragContext* context, gint x, gint y); 304 void UpdateDropIndex(GdkDragContext* context, gint x, gint y);
305 305
306 // Sets the location of the drop, repainting as necessary. 306 // Sets the location of the drop, repainting as necessary.
307 void SetDropIndex(int index, bool drop_before); 307 void SetDropIndex(int index, bool drop_before);
308 308
309 // Determines whether the data is acceptable by the tabstrip and opens a new 309 // Determines whether the data is acceptable by the tabstrip and opens a new
310 // tab with the data as URL if it is. 310 // tab with the data as URL if it is. Returns true if the drop was
311 void CompleteDrop(guchar* data); 311 // successful.
312 bool CompleteDrop(guchar* data);
312 313
313 // Returns the image to use for indicating a drop on a tab. If is_down is 314 // Returns the image to use for indicating a drop on a tab. If is_down is
314 // true, this returns an arrow pointing down. 315 // true, this returns an arrow pointing down.
315 static GdkPixbuf* GetDropArrowImage(bool is_down); 316 static GdkPixbuf* GetDropArrowImage(bool is_down);
316 317
317 // -- Animations ------------------------------------------------------------- 318 // -- Animations -------------------------------------------------------------
318 319
319 // A generic Layout method for various classes of TabStrip animations, 320 // A generic Layout method for various classes of TabStrip animations,
320 // including Insert, Remove and Resize Layout cases. 321 // including Insert, Remove and Resize Layout cases.
321 void AnimationLayout(double unselected_width); 322 void AnimationLayout(double unselected_width);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 // ResizeLayoutTabsNow method. 401 // ResizeLayoutTabsNow method.
401 ScopedRunnableMethodFactory<TabStripGtk> resize_layout_factory_; 402 ScopedRunnableMethodFactory<TabStripGtk> resize_layout_factory_;
402 403
403 // True if the tabstrip has already been added as a MessageLoop observer. 404 // True if the tabstrip has already been added as a MessageLoop observer.
404 bool added_as_message_loop_observer_; 405 bool added_as_message_loop_observer_;
405 406
406 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); 407 DISALLOW_COPY_AND_ASSIGN(TabStripGtk);
407 }; 408 };
408 409
409 #endif // CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_ 410 #endif // CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698