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

Unified Diff: athena/main/athena_main_delegate.cc

Issue 696063008: Refactor ShellDesktopController and ShellNativeAppWindow to allow for non-aura implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: + Created 6 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 | « athena/main/DEPS ('k') | chrome/browser/power/process_power_collector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/main/athena_main_delegate.cc
diff --git a/athena/main/athena_main_delegate.cc b/athena/main/athena_main_delegate.cc
index 92836280bbc5c071bbd83f8b47b2b7b09af42105..979d2c2e806eec6b50b992e222b66bd2f49acf84 100644
--- a/athena/main/athena_main_delegate.cc
+++ b/athena/main/athena_main_delegate.cc
@@ -24,7 +24,10 @@
#include "extensions/shell/common/switches.h"
#include "extensions/shell/renderer/shell_content_renderer_client.h"
#include "ppapi/c/private/ppb_pdf.h"
+#include "ui/aura/window.h"
+#include "ui/aura/window_tree_host.h"
#include "ui/base/resource/resource_bundle.h"
+#include "ui/gfx/geometry/size.h"
namespace athena {
namespace {
@@ -41,8 +44,8 @@ class AthenaDesktopController : public extensions::DesktopController {
private:
// extensions::DesktopController:
- virtual aura::WindowTreeHost* GetHost() override {
- return athena::AthenaEnv::Get()->GetHost();
+ virtual gfx::Size GetWindowSize() override {
+ return athena::AthenaEnv::Get()->GetHost()->window()->bounds().size();
}
// Creates a new app window and adds it to the desktop. The desktop maintains
« no previous file with comments | « athena/main/DEPS ('k') | chrome/browser/power/process_power_collector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698