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