1 // Copyright 2014 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.
5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CLIENT_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CLIENT_H_
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "extensions/browser/app_window/app_window_client.h"
12 namespace extensions
{
14 // app_shell's AppWindowClient implementation.
15 class ShellAppWindowClient
: public AppWindowClient
{
17 ShellAppWindowClient();
18 virtual ~ShellAppWindowClient();
20 // AppWindowClient overrides:
21 virtual AppWindow
* CreateAppWindow(content::BrowserContext
* context
,
22 const Extension
* extension
) override
;
23 virtual NativeAppWindow
* CreateNativeAppWindow(
25 const AppWindow::CreateParams
& params
) override
;
26 virtual void OpenDevToolsWindow(content::WebContents
* web_contents
,
27 const base::Closure
& callback
) override
;
28 virtual bool IsCurrentChannelOlderThanDev() override
;
31 DISALLOW_COPY_AND_ASSIGN(ShellAppWindowClient
);
34 } // namespace extensions
36 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CLIENT_H_