| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_ITERATOR_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_ITERATOR_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_ITERATOR_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_ITERATOR_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/browser_list.h" | 8 #include "chrome/browser/ui/browser_list.h" |
| 9 #include "chrome/browser/ui/host_desktop.h" | 9 #include "chrome/browser/ui/host_desktop.h" |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // |current_iterator_| is valid or done(). | 53 // |current_iterator_| is valid or done(). |
| 54 void NextBrowserListIfAtEnd(); | 54 void NextBrowserListIfAtEnd(); |
| 55 | 55 |
| 56 // The BrowserList currently being iterated over. Instances of this class do | 56 // The BrowserList currently being iterated over. Instances of this class do |
| 57 // not own this pointer. | 57 // not own this pointer. |
| 58 BrowserList* current_browser_list_; | 58 BrowserList* current_browser_list_; |
| 59 | 59 |
| 60 // The underlying iterator over browsers in |current_browser_list_|. | 60 // The underlying iterator over browsers in |current_browser_list_|. |
| 61 BrowserList::const_iterator current_iterator_; | 61 BrowserList::const_iterator current_iterator_; |
| 62 | 62 |
| 63 // The next HostDesktopType to iterate over when |current_iterator_| reaches | 63 // The next ui::HostDesktopType to iterate over when |current_iterator_| |
| 64 // reaches |
| 64 // |current_browser_list_->end()|. | 65 // |current_browser_list_->end()|. |
| 65 HostDesktopType next_desktop_type_; | 66 ui::HostDesktopType next_desktop_type_; |
| 66 | 67 |
| 67 DISALLOW_COPY_AND_ASSIGN(BrowserIterator); | 68 DISALLOW_COPY_AND_ASSIGN(BrowserIterator); |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 } // namespace chrome | 71 } // namespace chrome |
| 71 | 72 |
| 72 #endif // CHROME_BROWSER_UI_BROWSER_ITERATOR_H_ | 73 #endif // CHROME_BROWSER_UI_BROWSER_ITERATOR_H_ |
| OLD | NEW |