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

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

Issue 10871087: GTK implementation of remembering platform app window geometry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix last few comments Created 8 years, 3 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_PLATFORM_APP_BROWSERTEST_UTIL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_
6 #define CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_
7 7
8 8
9 #include "chrome/browser/extensions/extension_apitest.h" 9 #include "chrome/browser/extensions/extension_apitest.h"
10 10
(...skipping 15 matching lines...) Expand all
26 protected: 26 protected:
27 // Runs the app named |name| out of the platform_apps subdirectory. Waits 27 // Runs the app named |name| out of the platform_apps subdirectory. Waits
28 // until it is launched. 28 // until it is launched.
29 const Extension* LoadAndLaunchPlatformApp(const char* name); 29 const Extension* LoadAndLaunchPlatformApp(const char* name);
30 30
31 // Gets the WebContents associated with the first shell window that is found 31 // Gets the WebContents associated with the first shell window that is found
32 // (most tests only deal with one platform app window, so this is good 32 // (most tests only deal with one platform app window, so this is good
33 // enough). 33 // enough).
34 content::WebContents* GetFirstShellWindowWebContents(); 34 content::WebContents* GetFirstShellWindowWebContents();
35 35
36 // Gets the first shell window that is found (most tests only deal with one
37 // platform app window, so this is good enough).
38 ShellWindow* GetFirstShellWindow();
39
36 // Runs chrome.windows.getAll for the given extension and returns the number 40 // Runs chrome.windows.getAll for the given extension and returns the number
37 // of windows that the function returns. 41 // of windows that the function returns.
38 size_t RunGetWindowsFunctionForExtension(const Extension* extension); 42 size_t RunGetWindowsFunctionForExtension(const Extension* extension);
39 43
40 // Runs chrome.windows.get(|window_id|) for the the given extension and 44 // Runs chrome.windows.get(|window_id|) for the the given extension and
41 // returns whether or not a window was found. 45 // returns whether or not a window was found.
42 bool RunGetWindowFunctionForExtension(int window_id, 46 bool RunGetWindowFunctionForExtension(int window_id,
43 const Extension* extension); 47 const Extension* extension);
44 48
45 // Returns the number of shell windows. 49 // Returns the number of shell windows.
(...skipping 10 matching lines...) Expand all
56 // Creates an empty shell window for |extension|. 60 // Creates an empty shell window for |extension|.
57 ShellWindow* CreateShellWindow(const Extension* extension); 61 ShellWindow* CreateShellWindow(const Extension* extension);
58 62
59 // Closes |window| and waits until it's gone. 63 // Closes |window| and waits until it's gone.
60 void CloseShellWindow(ShellWindow* window); 64 void CloseShellWindow(ShellWindow* window);
61 }; 65 };
62 66
63 } 67 }
64 68
65 #endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_ 69 #endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698