OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CHROMEOS_WM_OVERVIEW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_WM_OVERVIEW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_WM_OVERVIEW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_WM_OVERVIEW_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 ACTIVE_MODE, | 57 ACTIVE_MODE, |
58 | 58 |
59 // OVERVIEW_MODE is the mode where the toplevel windows are hidden | 59 // OVERVIEW_MODE is the mode where the toplevel windows are hidden |
60 // and the user interacts with the snapshots. This is when the | 60 // and the user interacts with the snapshots. This is when the |
61 // snapshot windows are shown and actively updated by this | 61 // snapshot windows are shown and actively updated by this |
62 // controller. | 62 // controller. |
63 OVERVIEW_MODE, | 63 OVERVIEW_MODE, |
64 }; | 64 }; |
65 | 65 |
66 // This class is a singleton. | 66 // This class is a singleton. |
67 static WmOverviewController* instance(); | 67 static WmOverviewController* GetInstance(); |
68 | 68 |
69 // BrowserList::Observer methods | 69 // BrowserList::Observer methods |
70 void OnBrowserAdded(const Browser* browser) {} | 70 void OnBrowserAdded(const Browser* browser) {} |
71 void OnBrowserRemoved(const Browser* browser); | 71 void OnBrowserRemoved(const Browser* browser); |
72 // End BrowserList::Observer methods | 72 // End BrowserList::Observer methods |
73 | 73 |
74 // WmMessageListener::Observer methods | 74 // WmMessageListener::Observer methods |
75 // This is called immediately after a browser is added to the list. | 75 // This is called immediately after a browser is added to the list. |
76 void ProcessWmMessage(const WmIpc::Message& message, | 76 void ProcessWmMessage(const WmIpc::Message& message, |
77 GdkWindow* window); | 77 GdkWindow* window); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // fashion. | 154 // fashion. |
155 int browser_listener_index_; // index of the last updated browser listener. | 155 int browser_listener_index_; // index of the last updated browser listener. |
156 int tab_contents_index_; // index of the last updated tab contents. | 156 int tab_contents_index_; // index of the last updated tab contents. |
157 | 157 |
158 DISALLOW_COPY_AND_ASSIGN(WmOverviewController); | 158 DISALLOW_COPY_AND_ASSIGN(WmOverviewController); |
159 }; | 159 }; |
160 | 160 |
161 } // namespace chromeos | 161 } // namespace chromeos |
162 | 162 |
163 #endif // CHROME_BROWSER_CHROMEOS_WM_OVERVIEW_CONTROLLER_H_ | 163 #endif // CHROME_BROWSER_CHROMEOS_WM_OVERVIEW_CONTROLLER_H_ |
OLD | NEW |