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

Side by Side Diff: chrome/common/extensions/api/extension_action/action_info.h

Issue 11588004: Move ScriptBadge, ActionInfo out of Extension; preparation for BrowserAction (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Yoyo's requested changes Created 8 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_EXTENSIONS_API_EXTENSION_ACTION_ACTION_INFO_H_
6 #define CHROME_COMMON_EXTENSIONS_API_EXTENSION_ACTION_ACTION_INFO_H_
7
8 #include <string>
9
10 #include "chrome/common/extensions/extension_icon_set.h"
11 #include "googleurl/src/gurl.h"
12
13 namespace extensions {
14
15 struct ActionInfo {
16 ActionInfo();
17 ~ActionInfo();
18
19 // The types of extension actions.
20 enum Type {
21 TYPE_BROWSER,
22 TYPE_PAGE,
23 TYPE_SCRIPT_BADGE,
24 TYPE_SYSTEM_INDICATOR,
25 };
26
27 // Empty implies the key wasn't present.
28 ExtensionIconSet default_icon;
29 std::string default_title;
30 GURL default_popup_url;
31 // action id -- only used with legacy page actions API.
32 std::string id;
33 };
34
35 } // namespace extensions
36
37 #endif // CHROME_COMMON_EXTENSIONS_API_EXTENSION_ACTION_ACTION_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698