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

Unified Diff: chrome/browser/ui/extensions/shell_window.h

Issue 11193049: Add the app.windows.getBounds method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased against head Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/extensions/shell_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8cd458f1cee915154d97389602b5af02dae32036..546c3738bba3a6371f357142d1183185cf152376 100644
--- a/chrome/browser/ui/extensions/shell_window.h
+++ b/chrome/browser/ui/extensions/shell_window.h
@@ -104,8 +104,9 @@ class ShellWindow : public content::NotificationObserver,
// invoke this method instead of using "delete this".
void OnNativeClose();
- // Save the window position in the prefs.
- virtual void SaveWindowPosition();
+ // Should be called by native implementations when the window size/position
+ // has changed.
+ void SaveWindowPosition();
protected:
ShellWindow(Profile* profile,
@@ -175,6 +176,9 @@ class ShellWindow : public content::NotificationObserver,
void AddMessageToDevToolsConsole(content::ConsoleMessageLevel level,
const std::string& message);
+ // Sends an update message with the current bounds to the renderer.
+ void SendBoundsUpdate();
+
virtual void UpdateDraggableRegions(
const std::vector<extensions::DraggableRegion>& regions);
« no previous file with comments | « no previous file | chrome/browser/ui/extensions/shell_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698