| 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 27 matching lines...) Expand all Loading... |
| 38 void StopAnimating(TabStrip* tab_strip); | 38 void StopAnimating(TabStrip* tab_strip); |
| 39 | 39 |
| 40 // Adds a new blank tab to |browser|, stops animations and resets the ids of | 40 // Adds a new blank tab to |browser|, stops animations and resets the ids of |
| 41 // the tabs in |browser|. | 41 // the tabs in |browser|. |
| 42 void AddTabAndResetBrowser(Browser* browser); | 42 void AddTabAndResetBrowser(Browser* browser); |
| 43 | 43 |
| 44 // Creates a new Browser and resizes |browser()| and the new browser to be | 44 // Creates a new Browser and resizes |browser()| and the new browser to be |
| 45 // side by side. | 45 // side by side. |
| 46 Browser* CreateAnotherWindowBrowserAndRelayout(); | 46 Browser* CreateAnotherWindowBrowserAndRelayout(); |
| 47 | 47 |
| 48 // The tab drag controller interactive ui tests only use the native desktop | 48 const BrowserList* browser_list; |
| 49 // for now. | |
| 50 const BrowserList* native_browser_list; | |
| 51 | 49 |
| 52 private: | 50 private: |
| 53 DISALLOW_COPY_AND_ASSIGN(TabDragControllerTest); | 51 DISALLOW_COPY_AND_ASSIGN(TabDragControllerTest); |
| 54 }; | 52 }; |
| 55 | 53 |
| 56 namespace test { | 54 namespace test { |
| 57 | 55 |
| 58 // Returns the TabStrip for |browser|. | 56 // Returns the TabStrip for |browser|. |
| 59 TabStrip* GetTabStripForBrowser(Browser* browser); | 57 TabStrip* GetTabStripForBrowser(Browser* browser); |
| 60 | 58 |
| 61 // Returns the center of |view| in screen coordinates. | 59 // Returns the center of |view| in screen coordinates. |
| 62 gfx::Point GetCenterInScreenCoordinates(const views::View* view); | 60 gfx::Point GetCenterInScreenCoordinates(const views::View* view); |
| 63 | 61 |
| 64 // Sets the id of |web_contents| to |id|. | 62 // Sets the id of |web_contents| to |id|. |
| 65 void SetID(content::WebContents* web_contents, int id); | 63 void SetID(content::WebContents* web_contents, int id); |
| 66 | 64 |
| 67 // Resets the ids of all the tabs in |model| starting at |start|. That is, the | 65 // Resets the ids of all the tabs in |model| starting at |start|. That is, the |
| 68 // id of the first tab is set to |start|, the second tab |start + 1| ... | 66 // id of the first tab is set to |start|, the second tab |start + 1| ... |
| 69 void ResetIDs(TabStripModel* model, int start); | 67 void ResetIDs(TabStripModel* model, int start); |
| 70 | 68 |
| 71 // Returns a string representation of the ids of the tabs in |model|. Each id | 69 // Returns a string representation of the ids of the tabs in |model|. Each id |
| 72 // is separated by a space. | 70 // is separated by a space. |
| 73 std::string IDString(TabStripModel* model); | 71 std::string IDString(TabStripModel* model); |
| 74 | 72 |
| 75 } // namespace test | 73 } // namespace test |
| 76 | 74 |
| 77 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_INTERACTIVE_UITEST_H
_ | 75 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_INTERACTIVE_UITEST_H
_ |
| OLD | NEW |