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

Unified Diff: chrome/browser/extensions/api/app_window/app_window_api.cc

Issue 10825240: Refactor ShellWindow to separate platform-specific code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 8 years, 4 months 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/extensions/platform_app_browsertest_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/app_window/app_window_api.cc
diff --git a/chrome/browser/extensions/api/app_window/app_window_api.cc b/chrome/browser/extensions/api/app_window/app_window_api.cc
index 5bf4ad86a81c5360458e6f7513a8bedff2491d36..4bebe7e0415ef1db19c2c5d376af015ffb6d230c 100644
--- a/chrome/browser/extensions/api/app_window/app_window_api.cc
+++ b/chrome/browser/extensions/api/app_window/app_window_api.cc
@@ -104,7 +104,7 @@ bool AppWindowCreateFunction::RunImpl() {
}
ShellWindow* shell_window =
ShellWindow::Create(profile(), GetExtension(), url, create_params);
- shell_window->Show();
+ shell_window->GetBaseWindow()->Show();
content::WebContents* created_contents = shell_window->web_contents();
int view_id = created_contents->GetRenderViewHost()->GetRoutingID();
@@ -114,22 +114,22 @@ bool AppWindowCreateFunction::RunImpl() {
}
bool AppWindowFocusFunction::RunWithWindow(ShellWindow* window) {
- window->Activate();
+ window->GetBaseWindow()->Activate();
return true;
}
bool AppWindowMaximizeFunction::RunWithWindow(ShellWindow* window) {
- window->Maximize();
+ window->GetBaseWindow()->Maximize();
return true;
}
bool AppWindowMinimizeFunction::RunWithWindow(ShellWindow* window) {
- window->Minimize();
+ window->GetBaseWindow()->Minimize();
return true;
}
bool AppWindowRestoreFunction::RunWithWindow(ShellWindow* window) {
- window->Restore();
+ window->GetBaseWindow()->Restore();
return true;
}
« no previous file with comments | « no previous file | chrome/browser/extensions/platform_app_browsertest_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698