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

Side by Side Diff: chrome/browser/extensions/extension_apitest.h

Issue 9969087: Switch platform apps from a declarative launch container to handling an onLaunched event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bring back 512x384 default bounds. Created 8 years, 8 months 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_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 30 matching lines...) Expand all
41 41
42 // Launch the test page in an incognito window. 42 // Launch the test page in an incognito window.
43 kFlagUseIncognito = 1 << 1, 43 kFlagUseIncognito = 1 << 1,
44 44
45 // Allow file access for the extension. 45 // Allow file access for the extension.
46 kFlagEnableFileAccess = 1 << 2, 46 kFlagEnableFileAccess = 1 << 2,
47 47
48 // Loads the extension with location COMPONENT. 48 // Loads the extension with location COMPONENT.
49 kFlagLoadAsComponent = 1 << 3, 49 kFlagLoadAsComponent = 1 << 3,
50 50
51 // Launch the extension in a platform app shell. 51 // Launch the extension as a platform app.
52 kFlagLaunchAppShell = 1 << 4 52 kFlagLaunchPlatformApp = 1 << 4
53 }; 53 };
54 54
55 ExtensionApiTest(); 55 ExtensionApiTest();
56 virtual ~ExtensionApiTest(); 56 virtual ~ExtensionApiTest();
57 57
58 protected: 58 protected:
59 // Helper class that observes tests failing or passing. Observation starts 59 // Helper class that observes tests failing or passing. Observation starts
60 // when the class is constructed. Get the next result by calling 60 // when the class is constructed. Get the next result by calling
61 // GetNextResult() and message() if GetNextResult() return false. If there 61 // GetNextResult() and message() if GetNextResult() return false. If there
62 // are no results, this method will pump the UI message loop until one is 62 // are no results, this method will pump the UI message loop until one is
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // apps (if any). 172 // apps (if any).
173 class PlatformAppApiTest : public ExtensionApiTest { 173 class PlatformAppApiTest : public ExtensionApiTest {
174 public: 174 public:
175 PlatformAppApiTest(); 175 PlatformAppApiTest();
176 virtual ~PlatformAppApiTest(); 176 virtual ~PlatformAppApiTest();
177 177
178 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 178 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
179 }; 179 };
180 180
181 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ 181 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698