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

Side by Side Diff: chrome/browser/ui/browser_finder.h

Issue 10836218: Remove BrowserList::GetLastActive calls from window_sizer.cc et al. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/browser_finder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/browser_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698