| 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_DRAG_CONTROLLER_INTERACTIVE_UITEST_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_INTERACTIVE_UITEST_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_INTERACTIVE_UITEST_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_INTERACTIVE_UITEST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 DISALLOW_COPY_AND_ASSIGN(TabDragControllerTest); | 51 DISALLOW_COPY_AND_ASSIGN(TabDragControllerTest); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 namespace test { | 54 namespace test { |
| 55 | 55 |
| 56 // Returns the TabStrip for |browser|. | 56 // Returns the TabStrip for |browser|. |
| 57 TabStrip* GetTabStripForBrowser(Browser* browser); | 57 TabStrip* GetTabStripForBrowser(Browser* browser); |
| 58 | 58 |
| 59 // Returns the center of |view| in screen coordinates. | |
| 60 gfx::Point GetCenterInScreenCoordinates(const views::View* view); | |
| 61 | |
| 62 // Sets the id of |web_contents| to |id|. | 59 // Sets the id of |web_contents| to |id|. |
| 63 void SetID(content::WebContents* web_contents, int id); | 60 void SetID(content::WebContents* web_contents, int id); |
| 64 | 61 |
| 65 // Resets the ids of all the tabs in |model| starting at |start|. That is, the | 62 // Resets the ids of all the tabs in |model| starting at |start|. That is, the |
| 66 // id of the first tab is set to |start|, the second tab |start + 1| ... | 63 // id of the first tab is set to |start|, the second tab |start + 1| ... |
| 67 void ResetIDs(TabStripModel* model, int start); | 64 void ResetIDs(TabStripModel* model, int start); |
| 68 | 65 |
| 69 // Returns a string representation of the ids of the tabs in |model|. Each id | 66 // Returns a string representation of the ids of the tabs in |model|. Each id |
| 70 // is separated by a space. | 67 // is separated by a space. |
| 71 std::string IDString(TabStripModel* model); | 68 std::string IDString(TabStripModel* model); |
| 72 | 69 |
| 73 } // namespace test | 70 } // namespace test |
| 74 | 71 |
| 75 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_INTERACTIVE_UITEST_H
_ | 72 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_INTERACTIVE_UITEST_H
_ |
| OLD | NEW |