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

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

Issue 11369237: Add a way to fetch window frame metrics from NativeShellWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: change ShellWindowViews frame insets logic 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
Index: chrome/browser/ui/extensions/shell_window.cc
diff --git a/chrome/browser/ui/extensions/shell_window.cc b/chrome/browser/ui/extensions/shell_window.cc
index 7406536df1779d07b7685ef43abe8a8d5de44506..ca4c881f17815979526197b2c3e17bf03ff5a860 100644
--- a/chrome/browser/ui/extensions/shell_window.cc
+++ b/chrome/browser/ui/extensions/shell_window.cc
@@ -287,10 +287,14 @@ void ShellWindow::OnNativeClose() {
delete this;
}
-BaseWindow* ShellWindow::GetBaseWindow() {
+NativeShellWindow* ShellWindow::GetBaseWindow() {
return native_window_.get();
}
+gfx::NativeWindow ShellWindow::GetNativeWindow() {
+ return GetBaseWindow()->GetNativeWindow();
+}
+
string16 ShellWindow::GetTitle() const {
// WebContents::GetTitle() will return the page's URL if there's no <title>
// specified. However, we'd prefer to show the name of the extension in that

Powered by Google App Engine
This is Rietveld 408576698