summaryrefslogtreecommitdiffstats
path: root/chrome/common/content_restriction.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-13 23:36:00 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-13 23:36:00 +0000
commit9e823663aa2491262162657c6528123999e0dbb2 (patch)
treeaa8a190b4e960f70b0ec4e9a6741c65a7db36cac /chrome/common/content_restriction.h
parent196e469886b723e8f3531a1fe51204e4dc50dc8b (diff)
downloadchromium_src-9e823663aa2491262162657c6528123999e0dbb2.zip
chromium_src-9e823663aa2491262162657c6528123999e0dbb2.tar.gz
chromium_src-9e823663aa2491262162657c6528123999e0dbb2.tar.bz2
Use CommandUpdater for disabling commands that were disabled by plugins.
Review URL: http://codereview.chromium.org/3742002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62475 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/content_restriction.h')
-rw-r--r--chrome/common/content_restriction.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/common/content_restriction.h b/chrome/common/content_restriction.h
new file mode 100644
index 0000000..46fa522
--- /dev/null
+++ b/chrome/common/content_restriction.h
@@ -0,0 +1,18 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_CONTENT_RESTRICTION_H_
+#define CHROME_COMMON_CONTENT_RESTRICTION_H_
+#pragma once
+
+// Used by a full-page plugin to disable browser commands because of
+// restrictions on how the data is to be used (i.e. can't copy/print).
+enum ContentRestriction {
+ CONTENT_RESTRICTION_COPY = 1 << 0,
+ CONTENT_RESTRICTION_CUT = 1 << 1,
+ CONTENT_RESTRICTION_PASTE = 1 << 2,
+ CONTENT_RESTRICTION_PRINT = 1 << 3
+};
+
+#endif // CHROME_COMMON_CONTENT_RESTRICTION_H_