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

Side by Side Diff: extensions/common/permissions/permission_message.h

Issue 297123002: API proposal for chrome.app.window to intercept all keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to TOT Created 6 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_
6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ 6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 kCopresence, 90 kCopresence,
91 kTopSites, 91 kTopSites,
92 kU2fDevices, 92 kU2fDevices,
93 kVpnProvider, 93 kVpnProvider,
94 kDocumentScan, 94 kDocumentScan,
95 kHosts1ReadOnly, 95 kHosts1ReadOnly,
96 kHosts2ReadOnly, 96 kHosts2ReadOnly,
97 kHosts3ReadOnly, 97 kHosts3ReadOnly,
98 kHosts4OrMoreReadOnly, 98 kHosts4OrMoreReadOnly,
99 kHostsAllReadOnly, 99 kHostsAllReadOnly,
100 kInterceptAllKeys,
100 // Last entry: Add new entries above and ensure to update the 101 // Last entry: Add new entries above and ensure to update the
101 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml. 102 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml.
102 kEnumBoundary, 103 kEnumBoundary,
103 }; 104 };
104 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, 105 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown,
105 kNone_not_greater_than_kUnknown); 106 kNone_not_greater_than_kUnknown);
106 107
107 // Creates the corresponding permission message. 108 // Creates the corresponding permission message.
108 PermissionMessage(ID id, const base::string16& message); 109 PermissionMessage(ID id, const base::string16& message);
109 PermissionMessage(ID id, 110 PermissionMessage(ID id,
(...skipping 27 matching lines...) Expand all
137 ID id_; 138 ID id_;
138 base::string16 message_; 139 base::string16 message_;
139 base::string16 details_; 140 base::string16 details_;
140 }; 141 };
141 142
142 typedef std::vector<PermissionMessage> PermissionMessages; 143 typedef std::vector<PermissionMessage> PermissionMessages;
143 144
144 } // namespace extensions 145 } // namespace extensions
145 146
146 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ 147 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_
OLDNEW
« no previous file with comments | « extensions/common/permissions/api_permission.h ('k') | extensions/components/native_app_window/native_app_window_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698