OLD | NEW |
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 #include "chrome/browser/ui/extensions/shell_window.h" | 10 #include "chrome/browser/ui/extensions/shell_window.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void SetCommandLineArg(const std::string& test_file); | 64 void SetCommandLineArg(const std::string& test_file); |
65 | 65 |
66 // Creates an empty shell window for |extension|. | 66 // Creates an empty shell window for |extension|. |
67 ShellWindow* CreateShellWindow(const Extension* extension); | 67 ShellWindow* CreateShellWindow(const Extension* extension); |
68 | 68 |
69 ShellWindow* CreateShellWindowFromParams( | 69 ShellWindow* CreateShellWindowFromParams( |
70 const Extension* extension, const ShellWindow::CreateParams& params); | 70 const Extension* extension, const ShellWindow::CreateParams& params); |
71 | 71 |
72 // Closes |window| and waits until it's gone. | 72 // Closes |window| and waits until it's gone. |
73 void CloseShellWindow(ShellWindow* window); | 73 void CloseShellWindow(ShellWindow* window); |
| 74 |
| 75 // Call AdjustBoundsToBeVisibleOnScreen of |window|. |
| 76 void CallAdjustBoundsToBeVisibleOnScreenForShellWindow( |
| 77 ShellWindow* window, |
| 78 const gfx::Rect& cached_bounds, |
| 79 const gfx::Rect& cached_screen_bounds, |
| 80 const gfx::Rect& current_screen_bounds, |
| 81 const gfx::Size& minimum_size, |
| 82 gfx::Rect* bounds); |
74 }; | 83 }; |
75 | 84 |
76 class ExperimentalPlatformAppBrowserTest : public PlatformAppBrowserTest { | 85 class ExperimentalPlatformAppBrowserTest : public PlatformAppBrowserTest { |
77 public: | 86 public: |
78 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | 87 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; |
79 }; | 88 }; |
80 | 89 |
81 } | 90 } // namespace extensions |
82 | 91 |
83 #endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_ | 92 #endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_ |
OLD | NEW |