Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / ash / system / tray / system_tray_delegate.cc
blob8f44a7b56d2753ccfd9cd5cb3ee00773b44371e7
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
3 // found in the LICENSE file.
5 #include "ash/system/tray/system_tray_delegate.h"
7 #include "ash/system/tray/test_system_tray_delegate.h"
9 namespace ash {
11 NetworkIconInfo::NetworkIconInfo()
12 : connecting(false),
13 connected(false),
14 tray_icon_visible(true),
15 is_cellular(false) {
18 NetworkIconInfo::~NetworkIconInfo() {
21 BluetoothDeviceInfo::BluetoothDeviceInfo()
22 : connected(false) {
25 BluetoothDeviceInfo::~BluetoothDeviceInfo() {
28 DriveOperationStatus::DriveOperationStatus()
29 : progress(0.0), type(OPERATION_OTHER), state(OPERATION_NOT_STARTED) {
32 DriveOperationStatus::~DriveOperationStatus() {
35 IMEInfo::IMEInfo()
36 : selected(false),
37 third_party(false) {
40 IMEInfo::~IMEInfo() {
43 IMEPropertyInfo::IMEPropertyInfo()
44 : selected(false) {
47 IMEPropertyInfo::~IMEPropertyInfo() {
50 // TODO(stevenjb/oshima): Remove this once Shell::delegate_ is guaranteed
51 // to not be NULL and move TestSystemTrayDelegate -> ash/test. crbug.com/159693
52 // static
53 SystemTrayDelegate* SystemTrayDelegate::CreateDummyDelegate() {
54 return new test::TestSystemTrayDelegate;
57 } // namespace ash