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

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

Issue 1545011: BookmarkBarView tests fixes (Closed)
Patch Set: remove unnecessary change (correct one this time) Created 10 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
« no previous file with comments | « chrome/browser/views/bookmark_context_menu.cc ('k') | views/controls/menu/menu_controller.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_COMMON_NOTIFICATION_TYPE_H_ 5 #ifndef CHROME_COMMON_NOTIFICATION_TYPE_H_
6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ 6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_
7 7
8 // This file describes various types used to describe and filter notifications 8 // This file describes various types used to describe and filter notifications
9 // that pass through the NotificationService. 9 // that pass through the NotificationService.
10 // 10 //
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 925
926 // Sent when a chromium os user attempts to log in. The source is 926 // Sent when a chromium os user attempts to log in. The source is
927 // all and the details are AuthenticationNotificationDetails. 927 // all and the details are AuthenticationNotificationDetails.
928 LOGIN_AUTHENTICATION, 928 LOGIN_AUTHENTICATION,
929 #endif 929 #endif
930 930
931 // Sent before a page is reloaded or the repost form warning is brought up. 931 // Sent before a page is reloaded or the repost form warning is brought up.
932 // The source is a NavigationController. 932 // The source is a NavigationController.
933 RELOADING, 933 RELOADING,
934 934
935 #if defined(TOOLKIT_VIEWS)
936 // Sent when a bookmark's context menu is shown. Used to notify
937 // tests that the context menu has been created and shown.
938 BOOKMARK_CONTEXT_MENU_SHOWN,
939 #endif
940
935 // Count (must be last) ---------------------------------------------------- 941 // Count (must be last) ----------------------------------------------------
936 // Used to determine the number of notification types. Not valid as 942 // Used to determine the number of notification types. Not valid as
937 // a type parameter when registering for or posting notifications. 943 // a type parameter when registering for or posting notifications.
938 NOTIFICATION_TYPE_COUNT 944 NOTIFICATION_TYPE_COUNT
939 }; 945 };
940 946
941 // TODO(erg): Our notification system relies on implicit conversion. 947 // TODO(erg): Our notification system relies on implicit conversion.
942 NotificationType(Type v) : value(v) {} // NOLINT 948 NotificationType(Type v) : value(v) {} // NOLINT
943 949
944 bool operator==(NotificationType t) const { return value == t.value; } 950 bool operator==(NotificationType t) const { return value == t.value; }
945 bool operator!=(NotificationType t) const { return value != t.value; } 951 bool operator!=(NotificationType t) const { return value != t.value; }
946 952
947 // Comparison to explicit enum values. 953 // Comparison to explicit enum values.
948 bool operator==(Type v) const { return value == v; } 954 bool operator==(Type v) const { return value == v; }
949 bool operator!=(Type v) const { return value != v; } 955 bool operator!=(Type v) const { return value != v; }
950 956
951 Type value; 957 Type value;
952 }; 958 };
953 959
954 inline bool operator==(NotificationType::Type a, NotificationType b) { 960 inline bool operator==(NotificationType::Type a, NotificationType b) {
955 return a == b.value; 961 return a == b.value;
956 } 962 }
957 inline bool operator!=(NotificationType::Type a, NotificationType b) { 963 inline bool operator!=(NotificationType::Type a, NotificationType b) {
958 return a != b.value; 964 return a != b.value;
959 } 965 }
960 966
961 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ 967 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/bookmark_context_menu.cc ('k') | views/controls/menu/menu_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698