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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.h

Issue 1637943003: Remove HostDesktopType from BrowserList::GetInstance() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screen-wrapper-land
Patch Set: mac2 Created 4 years, 11 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
OLDNEW
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
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 _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698