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

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: revue 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
Index: athena/main/athena_main_delegate.cc
diff --git a/athena/main/athena_main_delegate.cc b/athena/main/athena_main_delegate.cc
index 59c6c42dbda39d2ffc2866dee427a1aa811ac39d..1d70272aba838d84c9bee585c49a476e125f1b54 100644
--- a/athena/main/athena_main_delegate.cc
+++ b/athena/main/athena_main_delegate.cc
@@ -23,7 +23,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 {
@@ -40,8 +43,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

Powered by Google App Engine
This is Rietveld 408576698