| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ash/system/tray/system_tray.h" | 5 #include "ash/system/tray/system_tray.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/shell/panel_window.h" | 8 #include "ash/shell/panel_window.h" |
| 9 #include "ash/shell_window_ids.h" | 9 #include "ash/shell_window_ids.h" |
| 10 #include "ash/system/tray/tray_constants.h" | 10 #include "ash/system/tray/tray_constants.h" |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 | 369 |
| 370 } // namespace internal | 370 } // namespace internal |
| 371 | 371 |
| 372 NetworkIconInfo::NetworkIconInfo() | 372 NetworkIconInfo::NetworkIconInfo() |
| 373 : highlight(false) { | 373 : highlight(false) { |
| 374 } | 374 } |
| 375 | 375 |
| 376 NetworkIconInfo::~NetworkIconInfo() { | 376 NetworkIconInfo::~NetworkIconInfo() { |
| 377 } | 377 } |
| 378 | 378 |
| 379 BluetoothDeviceInfo::BluetoothDeviceInfo() |
| 380 : connected(false) { |
| 381 } |
| 382 |
| 383 BluetoothDeviceInfo::~BluetoothDeviceInfo() { |
| 384 } |
| 385 |
| 379 IMEInfo::IMEInfo() | 386 IMEInfo::IMEInfo() |
| 380 : selected(false) { | 387 : selected(false) { |
| 381 } | 388 } |
| 382 | 389 |
| 383 IMEInfo::~IMEInfo() { | 390 IMEInfo::~IMEInfo() { |
| 384 } | 391 } |
| 385 | 392 |
| 386 SystemTray::SystemTray() | 393 SystemTray::SystemTray() |
| 387 : items_(), | 394 : items_(), |
| 388 accessibility_observer_(NULL), | 395 accessibility_observer_(NULL), |
| 389 audio_observer_(NULL), | 396 audio_observer_(NULL), |
| 397 bluetooth_observer_(NULL), |
| 390 brightness_observer_(NULL), | 398 brightness_observer_(NULL), |
| 391 caps_lock_observer_(NULL), | 399 caps_lock_observer_(NULL), |
| 392 clock_observer_(NULL), | 400 clock_observer_(NULL), |
| 393 ime_observer_(NULL), | 401 ime_observer_(NULL), |
| 394 network_observer_(NULL), | 402 network_observer_(NULL), |
| 395 power_status_observer_(NULL), | 403 power_status_observer_(NULL), |
| 396 update_observer_(NULL), | 404 update_observer_(NULL), |
| 397 user_observer_(NULL), | 405 user_observer_(NULL), |
| 398 bubble_(NULL), | 406 bubble_(NULL), |
| 399 popup_(NULL) { | 407 popup_(NULL) { |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 SchedulePaint(); | 547 SchedulePaint(); |
| 540 } | 548 } |
| 541 | 549 |
| 542 void SystemTray::OnWidgetClosing(views::Widget* widget) { | 550 void SystemTray::OnWidgetClosing(views::Widget* widget) { |
| 543 CHECK_EQ(popup_, widget); | 551 CHECK_EQ(popup_, widget); |
| 544 popup_ = NULL; | 552 popup_ = NULL; |
| 545 bubble_ = NULL; | 553 bubble_ = NULL; |
| 546 } | 554 } |
| 547 | 555 |
| 548 } // namespace ash | 556 } // namespace ash |
| OLD | NEW |