OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/status/window_switcher_button.h" | 5 #include "chrome/browser/chromeos/status/window_switcher_button.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/status/status_area_host.h" | 7 #include "chrome/browser/chromeos/status/status_area_host.h" |
8 #include "chrome/browser/ui/browser_window.h" | 8 #include "chrome/browser/ui/browser_window.h" |
9 #include "gfx/canvas.h" | |
10 #include "grit/generated_resources.h" | 9 #include "grit/generated_resources.h" |
11 #include "grit/theme_resources.h" | 10 #include "grit/theme_resources.h" |
12 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
| 12 #include "ui/gfx/canvas.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace chromeos { |
15 | 15 |
16 WindowSwitcherButton::WindowSwitcherButton(StatusAreaHost* host) | 16 WindowSwitcherButton::WindowSwitcherButton(StatusAreaHost* host) |
17 : StatusAreaButton(this), | 17 : StatusAreaButton(this), |
18 host_(host) { | 18 host_(host) { |
19 UpdateStatus(); | 19 UpdateStatus(); |
20 BrowserList::AddObserver(this); | 20 BrowserList::AddObserver(this); |
21 } | 21 } |
22 | 22 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void WindowSwitcherButton::OnBrowserAdded(const Browser* browser) { | 66 void WindowSwitcherButton::OnBrowserAdded(const Browser* browser) { |
67 UpdateStatus(); | 67 UpdateStatus(); |
68 } | 68 } |
69 | 69 |
70 // Called immediately after a browser is removed from the list | 70 // Called immediately after a browser is removed from the list |
71 void WindowSwitcherButton::OnBrowserRemoved(const Browser* browser) { | 71 void WindowSwitcherButton::OnBrowserRemoved(const Browser* browser) { |
72 UpdateStatus(); | 72 UpdateStatus(); |
73 } | 73 } |
74 | 74 |
75 } // namespace chromeos | 75 } // namespace chromeos |
OLD | NEW |