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

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

Issue 11369237: Add a way to fetch window frame metrics from NativeShellWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 8 years 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 | « chrome/browser/ui/extensions/native_app_window.h ('k') | 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 2862fadef3a08799471857b2bc068f40925bf40b..f13fbb95b3185834be8b127c04afc63757e80c9c 100644
--- a/chrome/browser/ui/extensions/shell_window.h
+++ b/chrome/browser/ui/extensions/shell_window.h
@@ -61,9 +61,9 @@ class ShellWindow : public content::NotificationObserver,
WindowType window_type;
Frame frame;
- // Specify the initial bounds of the window. INT_MIN designates
- // 'unspecified' for any coordinate, and should be replaced with a default
- // value.
+ // Specify the initial content bounds of the window (excluding any window
+ // decorations). INT_MIN designates 'unspecified' for any coordinate, and
+ // should be replaced with a default value.
gfx::Rect bounds;
gfx::Size minimum_size;
@@ -96,10 +96,8 @@ class ShellWindow : public content::NotificationObserver,
Profile* profile() const { return profile_; }
const gfx::Image& app_icon() const { return app_icon_; }
- BaseWindow* GetBaseWindow();
- gfx::NativeWindow GetNativeWindow() {
- return GetBaseWindow()->GetNativeWindow();
- }
+ NativeAppWindow* GetBaseWindow();
+ gfx::NativeWindow GetNativeWindow();
// NativeAppWindows should call this to determine what the window's title
// is on startup and from within UpdateWindowTitle().
« no previous file with comments | « chrome/browser/ui/extensions/native_app_window.h ('k') | chrome/browser/ui/extensions/shell_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698