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

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

Issue 105473003: Add explicit base namespace to string16 users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_EXTENSIONS_API_EXTENSION_ACTION_ACTION_INFO_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_API_EXTENSION_ACTION_ACTION_INFO_H_
6 #define CHROME_COMMON_EXTENSIONS_API_EXTENSION_ACTION_ACTION_INFO_H_ 6 #define CHROME_COMMON_EXTENSIONS_API_EXTENSION_ACTION_ACTION_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 17 matching lines...) Expand all
28 enum Type { 28 enum Type {
29 TYPE_BROWSER, 29 TYPE_BROWSER,
30 TYPE_PAGE, 30 TYPE_PAGE,
31 TYPE_SCRIPT_BADGE, 31 TYPE_SCRIPT_BADGE,
32 TYPE_SYSTEM_INDICATOR, 32 TYPE_SYSTEM_INDICATOR,
33 }; 33 };
34 34
35 // Loads an ActionInfo from the given DictionaryValue. 35 // Loads an ActionInfo from the given DictionaryValue.
36 static scoped_ptr<ActionInfo> Load(const Extension* extension, 36 static scoped_ptr<ActionInfo> Load(const Extension* extension,
37 const base::DictionaryValue* dict, 37 const base::DictionaryValue* dict,
38 string16* error); 38 base::string16* error);
39 39
40 // Returns the extension's browser action, if any. 40 // Returns the extension's browser action, if any.
41 static const ActionInfo* GetBrowserActionInfo(const Extension* extension); 41 static const ActionInfo* GetBrowserActionInfo(const Extension* extension);
42 42
43 // Returns the extension's page action, if any. 43 // Returns the extension's page action, if any.
44 static const ActionInfo* GetPageActionInfo(const Extension* extension); 44 static const ActionInfo* GetPageActionInfo(const Extension* extension);
45 45
46 // Returns the extension's script badge. 46 // Returns the extension's script badge.
47 static const ActionInfo* GetScriptBadgeInfo(const Extension* etxension); 47 static const ActionInfo* GetScriptBadgeInfo(const Extension* etxension);
48 48
(...skipping 21 matching lines...) Expand all
70 ExtensionIconSet default_icon; 70 ExtensionIconSet default_icon;
71 std::string default_title; 71 std::string default_title;
72 GURL default_popup_url; 72 GURL default_popup_url;
73 // action id -- only used with legacy page actions API. 73 // action id -- only used with legacy page actions API.
74 std::string id; 74 std::string id;
75 }; 75 };
76 76
77 } // namespace extensions 77 } // namespace extensions
78 78
79 #endif // CHROME_COMMON_EXTENSIONS_API_EXTENSION_ACTION_ACTION_INFO_H_ 79 #endif // CHROME_COMMON_EXTENSIONS_API_EXTENSION_ACTION_ACTION_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698