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_BROWSER_FINDER_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_FINDER_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_FINDER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_FINDER_H_ |
7 | 7 |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // number of tabs. | 58 // number of tabs. |
59 Browser* FindBrowserForController( | 59 Browser* FindBrowserForController( |
60 const content::NavigationController* controller, | 60 const content::NavigationController* controller, |
61 int* index); | 61 int* index); |
62 | 62 |
63 // Identical in behavior to BrowserList::GetLastActive(), except that the most | 63 // Identical in behavior to BrowserList::GetLastActive(), except that the most |
64 // recently open browser owned by |profile| is returned. If none exist, returns | 64 // recently open browser owned by |profile| is returned. If none exist, returns |
65 // NULL. WARNING: see warnings in BrowserList::GetLastActive(). | 65 // NULL. WARNING: see warnings in BrowserList::GetLastActive(). |
66 Browser* FindLastActiveWithProfile(Profile* profile); | 66 Browser* FindLastActiveWithProfile(Profile* profile); |
67 | 67 |
| 68 // Identical in behavior to BrowserList::GetLastActive(), except that the most |
| 69 // recently open browser owned on the desktop described by |type| is returned. |
| 70 // If none exist, returns NULL. WARNING: see warnings in |
| 71 // BrowserList::GetLastActive(). |
| 72 Browser* FindLastActiveWithHostDesktopType(chrome::HostDesktopType type); |
| 73 |
68 // Returns the number of browsers with the Profile |profile|. | 74 // Returns the number of browsers with the Profile |profile|. |
69 size_t GetBrowserCount(Profile* profile); | 75 size_t GetBrowserCount(Profile* profile); |
70 | 76 |
71 // Returns the number of tabbed browsers with the Profile |profile|. | 77 // Returns the number of tabbed browsers with the Profile |profile|. |
72 size_t GetTabbedBrowserCount(Profile* profile); | 78 size_t GetTabbedBrowserCount(Profile* profile); |
73 | 79 |
74 } // namespace browser | 80 } // namespace browser |
75 | 81 |
76 #endif // CHROME_BROWSER_UI_BROWSER_FINDER_H_ | 82 #endif // CHROME_BROWSER_UI_BROWSER_FINDER_H_ |
OLD | NEW |