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

Side by Side Diff: extensions/browser/app_window/app_window_client.h

Issue 631333003: Adding application lifetime tests to athena, allowing to override focus request for applciations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 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
« no previous file with comments | « extensions/browser/app_window/app_window.cc ('k') | extensions/browser/extension_registry.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CLIENT_H_ 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CLIENT_H_
6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CLIENT_H_ 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CLIENT_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "extensions/browser/app_window/app_window.h" 9 #include "extensions/browser/app_window/app_window.h"
10 10
(...skipping 15 matching lines...) Expand all
26 virtual ~AppWindowClient() {} 26 virtual ~AppWindowClient() {}
27 27
28 // Creates a new AppWindow for the app in |extension| for |context|. 28 // Creates a new AppWindow for the app in |extension| for |context|.
29 // Caller takes ownership. 29 // Caller takes ownership.
30 virtual AppWindow* CreateAppWindow(content::BrowserContext* context, 30 virtual AppWindow* CreateAppWindow(content::BrowserContext* context,
31 const Extension* extension) = 0; 31 const Extension* extension) = 0;
32 32
33 // Creates a new extensions::NativeAppWindow for |window|. 33 // Creates a new extensions::NativeAppWindow for |window|.
34 virtual NativeAppWindow* CreateNativeAppWindow( 34 virtual NativeAppWindow* CreateNativeAppWindow(
35 AppWindow* window, 35 AppWindow* window,
36 const AppWindow::CreateParams& params) = 0; 36 AppWindow::CreateParams* params) = 0;
37 37
38 // Opens DevTools window and runs the callback. 38 // Opens DevTools window and runs the callback.
39 virtual void OpenDevToolsWindow(content::WebContents* web_contents, 39 virtual void OpenDevToolsWindow(content::WebContents* web_contents,
40 const base::Closure& callback) = 0; 40 const base::Closure& callback) = 0;
41 41
42 // Returns true if the current channel is older than dev. 42 // Returns true if the current channel is older than dev.
43 virtual bool IsCurrentChannelOlderThanDev() = 0; 43 virtual bool IsCurrentChannelOlderThanDev() = 0;
44 44
45 // Return the app window client. 45 // Return the app window client.
46 static AppWindowClient* Get(); 46 static AppWindowClient* Get();
47 47
48 // Initialize the app window system with this app window client. 48 // Initialize the app window system with this app window client.
49 static void Set(AppWindowClient* client); 49 static void Set(AppWindowClient* client);
50 }; 50 };
51 51
52 } // namespace extensions 52 } // namespace extensions
53 53
54 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CLIENT_H_ 54 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/browser/app_window/app_window.cc ('k') | extensions/browser/extension_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698