| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 385 |
| 386 // Sets the location of the drop, repainting as necessary. | 386 // Sets the location of the drop, repainting as necessary. |
| 387 void SetDropIndex(int tab_data_index, bool drop_before); | 387 void SetDropIndex(int tab_data_index, bool drop_before); |
| 388 | 388 |
| 389 // Returns the drop effect for dropping a URL on the tab strip. This does | 389 // Returns the drop effect for dropping a URL on the tab strip. This does |
| 390 // not query the data in anyway, it only looks at the source operations. | 390 // not query the data in anyway, it only looks at the source operations. |
| 391 int GetDropEffect(const views::DropTargetEvent& event); | 391 int GetDropEffect(const views::DropTargetEvent& event); |
| 392 | 392 |
| 393 // Returns the image to use for indicating a drop on a tab. If is_down is | 393 // Returns the image to use for indicating a drop on a tab. If is_down is |
| 394 // true, this returns an arrow pointing down. | 394 // true, this returns an arrow pointing down. |
| 395 static SkBitmap* GetDropArrowImage(bool is_down); | 395 static gfx::ImageSkia* GetDropArrowImage(bool is_down); |
| 396 | 396 |
| 397 // -- Animations ------------------------------------------------------------ | 397 // -- Animations ------------------------------------------------------------ |
| 398 | 398 |
| 399 // Returns true if Tabs in this TabStrip are currently changing size or | 399 // Returns true if Tabs in this TabStrip are currently changing size or |
| 400 // position. | 400 // position. |
| 401 bool IsAnimating() const; | 401 bool IsAnimating() const; |
| 402 | 402 |
| 403 // Invoked prior to starting a new animation. | 403 // Invoked prior to starting a new animation. |
| 404 void PrepareForAnimation(); | 404 void PrepareForAnimation(); |
| 405 | 405 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 // Size we last layed out at. | 497 // Size we last layed out at. |
| 498 gfx::Size last_layout_size_; | 498 gfx::Size last_layout_size_; |
| 499 | 499 |
| 500 // Only used while in touch mode. | 500 // Only used while in touch mode. |
| 501 scoped_ptr<TouchTabStripLayout> touch_layout_; | 501 scoped_ptr<TouchTabStripLayout> touch_layout_; |
| 502 | 502 |
| 503 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 503 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
| 504 }; | 504 }; |
| 505 | 505 |
| 506 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 506 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
| OLD | NEW |