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

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

Issue 17564005: Place newly created app windows on screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment; Fix name of CallAdjust... Created 7 years, 6 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 #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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/platform_app_browsertest.cc ('k') | chrome/browser/extensions/platform_app_browsertest_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698