Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Side by Side Diff: chrome/browser/extensions/api/autotest_private/autotest_private_api.cc

Issue 1979583003: Support notifications with custom content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@messageview-close-button
Patch Set: fix mac build, attempt 2 Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_conversion_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_conversion_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698