| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APPS_APP_BROWSERTEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_ |
| 6 #define CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_ | 6 #define CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 bool RunGetWindowFunctionForExtension(int window_id, | 83 bool RunGetWindowFunctionForExtension(int window_id, |
| 84 const Extension* extension); | 84 const Extension* extension); |
| 85 | 85 |
| 86 // Returns the number of app windows. | 86 // Returns the number of app windows. |
| 87 size_t GetAppWindowCount(); | 87 size_t GetAppWindowCount(); |
| 88 | 88 |
| 89 // Returns the number of app windows for a specific app. | 89 // Returns the number of app windows for a specific app. |
| 90 size_t GetAppWindowCountForApp(const std::string& app_id); | 90 size_t GetAppWindowCountForApp(const std::string& app_id); |
| 91 | 91 |
| 92 // Creates an empty app window for |extension|. | 92 // Creates an empty app window for |extension|. |
| 93 AppWindow* CreateAppWindow(const Extension* extension); | 93 AppWindow* CreateAppWindow(const Extension* extension, |
| 94 content::WebContents* creator_contents); |
| 94 | 95 |
| 95 AppWindow* CreateAppWindowFromParams(const Extension* extension, | 96 AppWindow* CreateAppWindowFromParams(const Extension* extension, |
| 97 content::WebContents* creator_contents, |
| 96 const AppWindow::CreateParams& params); | 98 const AppWindow::CreateParams& params); |
| 97 | 99 |
| 98 // Closes |window| and waits until it's gone. | 100 // Closes |window| and waits until it's gone. |
| 99 void CloseAppWindow(AppWindow* window); | 101 void CloseAppWindow(AppWindow* window); |
| 100 | 102 |
| 101 // Call AdjustBoundsToBeVisibleOnScreen of |window|. | 103 // Call AdjustBoundsToBeVisibleOnScreen of |window|. |
| 102 void CallAdjustBoundsToBeVisibleOnScreenForAppWindow( | 104 void CallAdjustBoundsToBeVisibleOnScreenForAppWindow( |
| 103 AppWindow* window, | 105 AppWindow* window, |
| 104 const gfx::Rect& cached_bounds, | 106 const gfx::Rect& cached_bounds, |
| 105 const gfx::Rect& cached_screen_bounds, | 107 const gfx::Rect& cached_screen_bounds, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 118 }; | 120 }; |
| 119 | 121 |
| 120 class ExperimentalPlatformAppBrowserTest : public PlatformAppBrowserTest { | 122 class ExperimentalPlatformAppBrowserTest : public PlatformAppBrowserTest { |
| 121 public: | 123 public: |
| 122 void SetUpCommandLine(base::CommandLine* command_line) override; | 124 void SetUpCommandLine(base::CommandLine* command_line) override; |
| 123 }; | 125 }; |
| 124 | 126 |
| 125 } // namespace extensions | 127 } // namespace extensions |
| 126 | 128 |
| 127 #endif // CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_ | 129 #endif // CHROME_BROWSER_APPS_APP_BROWSERTEST_UTIL_H_ |
| OLD | NEW |