| 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 #include "chrome/browser/chromeos/status/status_area_view.h" | 5 #include "chrome/browser/chromeos/status/status_area_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "chrome/browser/chromeos/status/clock_menu_button.h" | 9 #include "chrome/browser/chromeos/status/clock_menu_button.h" |
| 10 #include "chrome/browser/chromeos/status/input_method_menu_button.h" | 10 #include "chrome/browser/chromeos/status/input_method_menu_button.h" |
| 11 #include "chrome/browser/chromeos/status/network_menu_button.h" | 11 #include "chrome/browser/chromeos/status/network_menu_button.h" |
| 12 #include "chrome/browser/chromeos/status/power_menu_button.h" | 12 #include "chrome/browser/chromeos/status/power_menu_button.h" |
| 13 #include "chrome/browser/chromeos/status/status_area_host.h" | 13 #include "chrome/browser/chromeos/status/status_area_host.h" |
| 14 #include "chrome/browser/chromeos/status/window_switcher_button.h" | 14 #include "chrome/browser/chromeos/status/window_switcher_button.h" |
| 15 #include "gfx/canvas.h" | 15 #include "ui/gfx/canvas.h" |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace chromeos { |
| 18 | 18 |
| 19 // Number of pixels to separate each icon. | 19 // Number of pixels to separate each icon. |
| 20 const int kSeparation = 1; | 20 const int kSeparation = 1; |
| 21 | 21 |
| 22 StatusAreaView::StatusAreaView(StatusAreaHost* host) | 22 StatusAreaView::StatusAreaView(StatusAreaHost* host) |
| 23 : host_(host), | 23 : host_(host), |
| 24 clock_view_(NULL), | 24 clock_view_(NULL), |
| 25 input_method_view_(NULL), | 25 input_method_view_(NULL), |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 95 } |
| 96 | 96 |
| 97 void StatusAreaView::MakeButtonsActive(bool active) { | 97 void StatusAreaView::MakeButtonsActive(bool active) { |
| 98 clock_view()->set_active(active); | 98 clock_view()->set_active(active); |
| 99 input_method_view()->set_active(active); | 99 input_method_view()->set_active(active); |
| 100 network_view()->set_active(active); | 100 network_view()->set_active(active); |
| 101 power_view()->set_active(active); | 101 power_view()->set_active(active); |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace chromeos | 104 } // namespace chromeos |
| OLD | NEW |