diff options
author | mukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-24 14:38:33 +0000 |
---|---|---|
committer | mukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-24 14:38:33 +0000 |
commit | a69b6f874fe568cdeb4810034b15d58d5bac1e08 (patch) | |
tree | 7b8e1713cd99988d005d032f392d0237b3dc14d1 /ash/system/system_notifier.h | |
parent | 28fb77a6148d028bce84e9c8a62ba98c02e5484d (diff) | |
download | chromium_src-a69b6f874fe568cdeb4810034b15d58d5bac1e08.zip chromium_src-a69b6f874fe568cdeb4810034b15d58d5bac1e08.tar.gz chromium_src-a69b6f874fe568cdeb4810034b15d58d5bac1e08.tar.bz2 |
Cleanup: do not use extension_id, use notifier's id.
It will remove unnecessary methods. Also, each ash notifications
has its own notifier id as SYSTEM_COMPONENT. Then we can distinguish
those notification types, which means this will enable to allow
some urgent system notifications (like power) in the lock screen.
BUG=250937
R=dewittj@chromium.org, stevenjb@chromium.org
TEST=no breaks on existing tests
Review URL: https://chromiumcodereview.appspot.com/23340002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219437 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/system/system_notifier.h')
-rw-r--r-- | ash/system/system_notifier.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ash/system/system_notifier.h b/ash/system/system_notifier.h new file mode 100644 index 0000000..119ed5b --- /dev/null +++ b/ash/system/system_notifier.h @@ -0,0 +1,37 @@ +// Copyright 2013 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 ASH_SYSTEM_SYSTEM_NOTIFIER_H_ +#define ASH_SYSTEM_SYSTEM_NOTIFIER_H_ + +#include <string> + +#include "ash/ash_export.h" + +namespace ash { + +enum AshSystemComponentNotifierType { + NOTIFIER_NO_SYSTEM_COMPONENT = -1, + + // Alphabetical order. + NOTIFIER_DISPLAY, + NOTIFIER_DISPLAY_RESOLUTION_CHANGE, + NOTIFIER_DISPLAY_ERROR, + NOTIFIER_INPUT_METHOD, + NOTIFIER_LOCALE, + NOTIFIER_LOCALLY_MANAGED_USER, + NOTIFIER_NETWORK, + NOTIFIER_NETWORK_ERROR, + NOTIFIER_SCREENSHOT, + NOTIFIER_SCREEN_CAPTURE, + NOTIFIER_SCREEN_SHARE, + NOTIFIER_POWER, +}; + +ASH_EXPORT std::string SystemComponentTypeToString( + AshSystemComponentNotifierType type); + +} // namespace ash + +#endif // ASH_SYSTEM_SYSTEM_NOTIFIER_H_ |