BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / apps / chrome_app_window_client.h
blob3f4378dc4f669d7753537f548e13a316bc22e0fa
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 CHROME_BROWSER_UI_APPS_CHROME_APP_WINDOW_CLIENT_H_
6 #define CHROME_BROWSER_UI_APPS_CHROME_APP_WINDOW_CLIENT_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "extensions/browser/app_window/app_window_client.h"
12 namespace base {
13 template <typename T>
14 struct DefaultSingletonTraits;
17 // The implementation of AppWindowClient for Chrome.
18 class ChromeAppWindowClient : public extensions::AppWindowClient {
19 public:
20 ChromeAppWindowClient();
21 ~ChromeAppWindowClient() override;
23 // Get the LazyInstance for ChromeAppWindowClient.
24 static ChromeAppWindowClient* GetInstance();
26 private:
27 friend struct base::DefaultSingletonTraits<ChromeAppWindowClient>;
29 // extensions::AppWindowClient
30 extensions::AppWindow* CreateAppWindow(
31 content::BrowserContext* context,
32 const extensions::Extension* extension) override;
33 extensions::NativeAppWindow* CreateNativeAppWindow(
34 extensions::AppWindow* window,
35 extensions::AppWindow::CreateParams* params) override;
36 void OpenDevToolsWindow(content::WebContents* web_contents,
37 const base::Closure& callback) override;
38 bool IsCurrentChannelOlderThanDev() override;
40 // Implemented in platform specific code.
41 static extensions::NativeAppWindow* CreateNativeAppWindowImpl(
42 extensions::AppWindow* window,
43 const extensions::AppWindow::CreateParams& params);
45 DISALLOW_COPY_AND_ASSIGN(ChromeAppWindowClient);
48 #endif // CHROME_BROWSER_UI_APPS_CHROME_APP_WINDOW_CLIENT_H_