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 "ui/gfx/host_desktop_type.h" |
10 | 10 |
11 class Browser; | 11 class Browser; |
12 | 12 |
13 namespace chrome { | 13 namespace chrome { |
14 | 14 |
15 // Iterates over all existing browsers (potentially across multiple desktops). | 15 // Iterates over all existing browsers (potentially across multiple desktops). |
16 // Note: to iterate only over the browsers of a specific desktop, use the | 16 // Note: to iterate only over the browsers of a specific desktop, use the |
17 // const_iterator of a given BrowserList instead. | 17 // const_iterator of a given BrowserList instead. |
18 // | 18 // |
19 // Example: | 19 // Example: |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // reaches | 64 // reaches |
65 // |current_browser_list_->end()|. | 65 // |current_browser_list_->end()|. |
66 ui::HostDesktopType next_desktop_type_; | 66 ui::HostDesktopType next_desktop_type_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(BrowserIterator); | 68 DISALLOW_COPY_AND_ASSIGN(BrowserIterator); |
69 }; | 69 }; |
70 | 70 |
71 } // namespace chrome | 71 } // namespace chrome |
72 | 72 |
73 #endif // CHROME_BROWSER_UI_BROWSER_ITERATOR_H_ | 73 #endif // CHROME_BROWSER_UI_BROWSER_ITERATOR_H_ |
OLD | NEW |