| 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/launcher/launcher_types.h" | 5 #include "ash/launcher/launcher_types.h" |
| 6 | 6 |
| 7 namespace ash { | 7 namespace ash { |
| 8 | 8 |
| 9 const int kLauncherPreferredSize = 48; | 9 const int kLauncherPreferredSize = 48; |
| 10 const int kLauncherBackgroundAlpha = 204; | 10 const int kLauncherBackgroundAlpha = 204; |
| 11 const int kInvalidImageResourceID = -1; | 11 const int kInvalidImageResourceID = -1; |
| 12 const int kInvalidLauncherID = 0; | 12 const int kInvalidLauncherID = 0; |
| 13 const int kTimeToSwitchBackgroundMs = 1000; |
| 13 | 14 |
| 14 LauncherItem::LauncherItem() | 15 LauncherItem::LauncherItem() |
| 15 : type(TYPE_UNDEFINED), | 16 : type(TYPE_UNDEFINED), |
| 16 id(kInvalidLauncherID), | 17 id(kInvalidLauncherID), |
| 17 status(STATUS_CLOSED) { | 18 status(STATUS_CLOSED) { |
| 18 } | 19 } |
| 19 | 20 |
| 20 LauncherItem::~LauncherItem() { | 21 LauncherItem::~LauncherItem() { |
| 21 } | 22 } |
| 22 | 23 |
| 23 LauncherItemDetails::LauncherItemDetails() | 24 LauncherItemDetails::LauncherItemDetails() |
| 24 : type(TYPE_UNDEFINED), | 25 : type(TYPE_UNDEFINED), |
| 25 image_resource_id(kInvalidImageResourceID) { | 26 image_resource_id(kInvalidImageResourceID) { |
| 26 } | 27 } |
| 27 | 28 |
| 28 LauncherItemDetails::~LauncherItemDetails() { | 29 LauncherItemDetails::~LauncherItemDetails() { |
| 29 } | 30 } |
| 30 | 31 |
| 31 } // namespace ash | 32 } // namespace ash |
| OLD | NEW |