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

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

Issue 1612005: Revert "BookmarkBarView tests fixes" (Closed)
Patch Set: 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
941 // Count (must be last) ---------------------------------------------------- 935 // Count (must be last) ----------------------------------------------------
942 // Used to determine the number of notification types. Not valid as 936 // Used to determine the number of notification types. Not valid as
943 // a type parameter when registering for or posting notifications. 937 // a type parameter when registering for or posting notifications.
944 NOTIFICATION_TYPE_COUNT 938 NOTIFICATION_TYPE_COUNT
945 }; 939 };
946 940
947 // TODO(erg): Our notification system relies on implicit conversion. 941 // TODO(erg): Our notification system relies on implicit conversion.
948 NotificationType(Type v) : value(v) {} // NOLINT 942 NotificationType(Type v) : value(v) {} // NOLINT
949 943
950 bool operator==(NotificationType t) const { return value == t.value; } 944 bool operator==(NotificationType t) const { return value == t.value; }
951 bool operator!=(NotificationType t) const { return value != t.value; } 945 bool operator!=(NotificationType t) const { return value != t.value; }
952 946
953 // Comparison to explicit enum values. 947 // Comparison to explicit enum values.
954 bool operator==(Type v) const { return value == v; } 948 bool operator==(Type v) const { return value == v; }
955 bool operator!=(Type v) const { return value != v; } 949 bool operator!=(Type v) const { return value != v; }
956 950
957 Type value; 951 Type value;
958 }; 952 };
959 953
960 inline bool operator==(NotificationType::Type a, NotificationType b) { 954 inline bool operator==(NotificationType::Type a, NotificationType b) {
961 return a == b.value; 955 return a == b.value;
962 } 956 }
963 inline bool operator!=(NotificationType::Type a, NotificationType b) { 957 inline bool operator!=(NotificationType::Type a, NotificationType b) {
964 return a != b.value; 958 return a != b.value;
965 } 959 }
966 960
967 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ 961 #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