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

Side by Side Diff: chrome/browser/extensions/api/app_window/app_window_api.h

Issue 11238055: Re-open DevTools windows for PackagedApps if they are reloaded with DevTools open. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: before unit test Created 8 years, 2 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
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_API_APP_WINDOW_APP_WINDOW_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_APP_WINDOW_APP_WINDOW_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_APP_WINDOW_APP_WINDOW_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_APP_WINDOW_APP_WINDOW_API_H_
7 7
8 #include "chrome/browser/extensions/extension_function.h" 8 #include "chrome/browser/extensions/extension_function.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 class AppWindowCreateFunction : public SyncExtensionFunction { 12 class AppWindowCreateFunction : public AsyncExtensionFunction {
13 public: 13 public:
14 DECLARE_EXTENSION_FUNCTION_NAME("app.window.create"); 14 DECLARE_EXTENSION_FUNCTION_NAME("app.window.create");
15 AppWindowCreateFunction();
15 16
16 protected: 17 protected:
17 virtual ~AppWindowCreateFunction() {} 18 virtual ~AppWindowCreateFunction();
18 virtual bool RunImpl() OVERRIDE; 19 virtual bool RunImpl() OVERRIDE;
20
21 private:
22 class DelayedResponseForDevTools;
23 scoped_ptr<DelayedResponseForDevTools> delay_response_;
19 }; 24 };
20 25
21 } // namespace extensions 26 } // namespace extensions
22 27
23 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_WINDOW_APP_WINDOW_API_H_ 28 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_WINDOW_APP_WINDOW_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698