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

Side by Side Diff: chrome/common/extensions/manifest_handlers/app_launch_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 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 CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_APP_LAUNCH_INFO_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_APP_LAUNCH_INFO_H_
6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_APP_LAUNCH_INFO_H_ 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_APP_LAUNCH_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 26 matching lines...) Expand all
37 const Extension* extension); 37 const Extension* extension);
38 38
39 // The default size of the container when launching. Only respected for 39 // The default size of the container when launching. Only respected for
40 // containers like panels and windows. 40 // containers like panels and windows.
41 static int GetLaunchWidth(const Extension* extension); 41 static int GetLaunchWidth(const Extension* extension);
42 static int GetLaunchHeight(const Extension* extension); 42 static int GetLaunchHeight(const Extension* extension);
43 43
44 // Get the fully resolved absolute launch URL. 44 // Get the fully resolved absolute launch URL.
45 static GURL GetFullLaunchURL(const Extension* extension); 45 static GURL GetFullLaunchURL(const Extension* extension);
46 46
47 bool Parse(Extension* extension, string16* error); 47 bool Parse(Extension* extension, base::string16* error);
48 48
49 private: 49 private:
50 bool LoadLaunchURL(Extension* extension, string16* error); 50 bool LoadLaunchURL(Extension* extension, base::string16* error);
51 bool LoadLaunchContainer(Extension* extension, string16* error); 51 bool LoadLaunchContainer(Extension* extension, base::string16* error);
52 void OverrideLaunchURL(Extension* extension, GURL override_url); 52 void OverrideLaunchURL(Extension* extension, GURL override_url);
53 53
54 std::string launch_local_path_; 54 std::string launch_local_path_;
55 55
56 GURL launch_web_url_; 56 GURL launch_web_url_;
57 57
58 LaunchContainer launch_container_; 58 LaunchContainer launch_container_;
59 59
60 int launch_width_; 60 int launch_width_;
61 int launch_height_; 61 int launch_height_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(AppLaunchInfo); 63 DISALLOW_COPY_AND_ASSIGN(AppLaunchInfo);
64 }; 64 };
65 65
66 // Parses all app launch related keys in the manifest. 66 // Parses all app launch related keys in the manifest.
67 class AppLaunchManifestHandler : public ManifestHandler { 67 class AppLaunchManifestHandler : public ManifestHandler {
68 public: 68 public:
69 AppLaunchManifestHandler(); 69 AppLaunchManifestHandler();
70 virtual ~AppLaunchManifestHandler(); 70 virtual ~AppLaunchManifestHandler();
71 71
72 virtual bool Parse(Extension* extension, string16* error) OVERRIDE; 72 virtual bool Parse(Extension* extension, base::string16* error) OVERRIDE;
73 virtual bool AlwaysParseForType(Manifest::Type type) const OVERRIDE; 73 virtual bool AlwaysParseForType(Manifest::Type type) const OVERRIDE;
74 74
75 private: 75 private:
76 virtual const std::vector<std::string> Keys() const OVERRIDE; 76 virtual const std::vector<std::string> Keys() const OVERRIDE;
77 77
78 DISALLOW_COPY_AND_ASSIGN(AppLaunchManifestHandler); 78 DISALLOW_COPY_AND_ASSIGN(AppLaunchManifestHandler);
79 }; 79 };
80 80
81 } // namespace extensions 81 } // namespace extensions
82 82
83 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_APP_LAUNCH_INFO_H_ 83 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_APP_LAUNCH_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698