Index: chrome/browser/ui/extensions/shell_window.h |
diff --git a/chrome/browser/ui/extensions/shell_window.h b/chrome/browser/ui/extensions/shell_window.h |
index 64e66c744c33d8e6024e7c70500d4bb29226bead..60a82d2f5009d9938058c32e7f166746172f3b43 100644 |
--- a/chrome/browser/ui/extensions/shell_window.h |
+++ b/chrome/browser/ui/extensions/shell_window.h |
@@ -260,9 +260,18 @@ class ShellWindow : public content::NotificationObserver, |
void AddMessageToDevToolsConsole(content::ConsoleMessageLevel level, |
const std::string& message); |
- // Saves the window geometry/position. |
+ // Saves the window geometry/position/screen bounds. |
void SaveWindowPosition(); |
+ // Helper method to adjust the cached bounds so that we can make sure it can |
+ // be visible on the screen. See http://crbug.com/145752 . |
+ void AdjustBoundsToBeVisibleOnScreen( |
+ const gfx::Rect& cached_bounds, |
+ const gfx::Rect& cached_screen_bounds, |
+ const gfx::Rect& current_screen_bounds, |
+ const gfx::Size& minimum_size, |
+ gfx::Rect* bounds) const; |
+ |
// Load the app's image, firing a load state change when loaded. |
void UpdateExtensionAppIcon(); |