| 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 "chrome/browser/extensions/api/autotest_private/autotest_private_api.h" | 5 #include "chrome/browser/extensions/api/autotest_private/autotest_private_api.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "chrome/browser/extensions/extension_action_manager.h" | 10 #include "chrome/browser/extensions/extension_action_manager.h" |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 case message_center::NOTIFICATION_TYPE_SIMPLE: | 332 case message_center::NOTIFICATION_TYPE_SIMPLE: |
| 333 return "simple"; | 333 return "simple"; |
| 334 case message_center::NOTIFICATION_TYPE_BASE_FORMAT: | 334 case message_center::NOTIFICATION_TYPE_BASE_FORMAT: |
| 335 return "base_format"; | 335 return "base_format"; |
| 336 case message_center::NOTIFICATION_TYPE_IMAGE: | 336 case message_center::NOTIFICATION_TYPE_IMAGE: |
| 337 return "image"; | 337 return "image"; |
| 338 case message_center::NOTIFICATION_TYPE_MULTIPLE: | 338 case message_center::NOTIFICATION_TYPE_MULTIPLE: |
| 339 return "multiple"; | 339 return "multiple"; |
| 340 case message_center::NOTIFICATION_TYPE_PROGRESS: | 340 case message_center::NOTIFICATION_TYPE_PROGRESS: |
| 341 return "progress"; | 341 return "progress"; |
| 342 case message_center::NOTIFICATION_TYPE_CUSTOM: |
| 343 return "custom"; |
| 342 } | 344 } |
| 343 #endif | 345 #endif |
| 344 return "unknown"; | 346 return "unknown"; |
| 345 } | 347 } |
| 346 | 348 |
| 347 bool AutotestPrivateGetVisibleNotificationsFunction::RunSync() { | 349 bool AutotestPrivateGetVisibleNotificationsFunction::RunSync() { |
| 348 DVLOG(1) << "AutotestPrivateGetVisibleNotificationsFunction"; | 350 DVLOG(1) << "AutotestPrivateGetVisibleNotificationsFunction"; |
| 349 base::ListValue* values = new base::ListValue; | 351 base::ListValue* values = new base::ListValue; |
| 350 #if defined(OS_CHROMEOS) | 352 #if defined(OS_CHROMEOS) |
| 351 for (auto notification : | 353 for (auto notification : |
| (...skipping 29 matching lines...) Expand all Loading... |
| 381 return new AutotestPrivateAPI(); | 383 return new AutotestPrivateAPI(); |
| 382 } | 384 } |
| 383 | 385 |
| 384 AutotestPrivateAPI::AutotestPrivateAPI() : test_mode_(false) { | 386 AutotestPrivateAPI::AutotestPrivateAPI() : test_mode_(false) { |
| 385 } | 387 } |
| 386 | 388 |
| 387 AutotestPrivateAPI::~AutotestPrivateAPI() { | 389 AutotestPrivateAPI::~AutotestPrivateAPI() { |
| 388 } | 390 } |
| 389 | 391 |
| 390 } // namespace extensions | 392 } // namespace extensions |
| OLD | NEW |