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

Side by Side Diff: content/common/notification_type.h

Issue 6825052: Update the web store promo to be clearer and configurable at run-time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate Aaron's feedback. Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/pref_names.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CONTENT_COMMON_NOTIFICATION_TYPE_H_ 5 #ifndef CONTENT_COMMON_NOTIFICATION_TYPE_H_
6 #define CONTENT_COMMON_NOTIFICATION_TYPE_H_ 6 #define CONTENT_COMMON_NOTIFICATION_TYPE_H_
7 #pragma once 7 #pragma once
8 8
9 // This file describes various types used to describe and filter notifications 9 // This file describes various types used to describe and filter notifications
10 // that pass through the NotificationService. 10 // that pass through the NotificationService.
(...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 PRERENDER_CONTENTS_STARTED, 1315 PRERENDER_CONTENTS_STARTED,
1316 1316
1317 // Sent when a prerender::PrerenderContents object is destroyed. Source is 1317 // Sent when a prerender::PrerenderContents object is destroyed. Source is
1318 // the process/route id pair for the RenderViewHost. There are no details. 1318 // the process/route id pair for the RenderViewHost. There are no details.
1319 PRERENDER_CONTENTS_DESTROYED, 1319 PRERENDER_CONTENTS_DESTROYED,
1320 1320
1321 // Sent when a prerender::PrerenderContents is used. Source is the 1321 // Sent when a prerender::PrerenderContents is used. Source is the
1322 // process/route id pair for the RenderViewHost. There are no details. 1322 // process/route id pair for the RenderViewHost. There are no details.
1323 PRERENDER_CONTENTS_USED, 1323 PRERENDER_CONTENTS_USED,
1324 1324
1325 // Sent when a new web store promo has been loaded.
1326 WEB_STORE_PROMO_LOADED,
1327
1325 // Count (must be last) ---------------------------------------------------- 1328 // Count (must be last) ----------------------------------------------------
1326 // Used to determine the number of notification types. Not valid as 1329 // Used to determine the number of notification types. Not valid as
1327 // a type parameter when registering for or posting notifications. 1330 // a type parameter when registering for or posting notifications.
1328 NOTIFICATION_TYPE_COUNT 1331 NOTIFICATION_TYPE_COUNT
1329 }; 1332 };
1330 1333
1331 // TODO(erg): Our notification system relies on implicit conversion. 1334 // TODO(erg): Our notification system relies on implicit conversion.
1332 NotificationType(Type v) : value(v) {} // NOLINT 1335 NotificationType(Type v) : value(v) {} // NOLINT
1333 1336
1334 bool operator==(NotificationType t) const { return value == t.value; } 1337 bool operator==(NotificationType t) const { return value == t.value; }
1335 bool operator!=(NotificationType t) const { return value != t.value; } 1338 bool operator!=(NotificationType t) const { return value != t.value; }
1336 1339
1337 // Comparison to explicit enum values. 1340 // Comparison to explicit enum values.
1338 bool operator==(Type v) const { return value == v; } 1341 bool operator==(Type v) const { return value == v; }
1339 bool operator!=(Type v) const { return value != v; } 1342 bool operator!=(Type v) const { return value != v; }
1340 1343
1341 Type value; 1344 Type value;
1342 }; 1345 };
1343 1346
1344 inline bool operator==(NotificationType::Type a, NotificationType b) { 1347 inline bool operator==(NotificationType::Type a, NotificationType b) {
1345 return a == b.value; 1348 return a == b.value;
1346 } 1349 }
1347 inline bool operator!=(NotificationType::Type a, NotificationType b) { 1350 inline bool operator!=(NotificationType::Type a, NotificationType b) {
1348 return a != b.value; 1351 return a != b.value;
1349 } 1352 }
1350 1353
1351 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ 1354 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698