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

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: move to NativeShellWindow 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 46e709f5dbe6304691a37f31920e8cd4107b8eba..7b675c92a48ba86349c40f57c5ca67a2e3718ad3 100644
--- a/chrome/browser/ui/extensions/shell_window.cc
+++ b/chrome/browser/ui/extensions/shell_window.cc
@@ -289,10 +289,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