| Index: content/shell/browser/shell.h
|
| diff --git a/content/shell/browser/shell.h b/content/shell/browser/shell.h
|
| index 05ec79e1925200f253192d1540dc7506947f1858..37718f73286379c76b1fe448f0c4d098faa9c7af 100644
|
| --- a/content/shell/browser/shell.h
|
| +++ b/content/shell/browser/shell.h
|
| @@ -20,8 +20,12 @@
|
|
|
| #if defined(OS_ANDROID)
|
| #include "base/android/scoped_java_ref.h"
|
| -#elif defined(USE_AURA)
|
| -#if defined(OS_CHROMEOS)
|
| +#endif
|
| +#if defined(USE_AURA) && defined(OS_ANDROID)
|
| +#include "ui/aura/env_observer.h"
|
| +#endif
|
| +#if defined(USE_AURA)
|
| +#if defined(OS_CHROMEOS) || defined(OS_ANDROID)
|
| namespace gfx {
|
| class Screen;
|
| }
|
| @@ -51,7 +55,12 @@ class WebContents;
|
| // This represents one window of the Content Shell, i.e. all the UI including
|
| // buttons and url bar, as well as the web content area.
|
| class Shell : public WebContentsDelegate,
|
| - public WebContentsObserver {
|
| +#if defined(USE_AURA) && defined(OS_ANDROID)
|
| + public aura::EnvObserver,
|
| +#endif
|
| + public WebContentsObserver
|
| +
|
| +{
|
| public:
|
| ~Shell() override;
|
|
|
| @@ -117,7 +126,7 @@ class Shell : public WebContentsDelegate,
|
| bool* was_blocked) override;
|
| void LoadingStateChanged(WebContents* source,
|
| bool to_different_document) override;
|
| -#if defined(OS_ANDROID)
|
| +#if defined(OS_ANDROID) && !defined(USE_AURA)
|
| void LoadProgressChanged(WebContents* source, double progress) override;
|
| #endif
|
| void EnterFullscreenModeForTab(WebContents* web_contents,
|
| @@ -204,6 +213,11 @@ class Shell : public WebContentsDelegate,
|
| bool PlatformIsFullscreenForTabOrPending(
|
| const WebContents* web_contents) const;
|
| #endif
|
| +#if defined(USE_AURA) && defined(OS_ANDROID)
|
| + // aura::EnvObserver:
|
| + void OnWindowInitialized(aura::Window* window) override {}
|
| + void OnHostInitialized(aura::WindowTreeHost* host) override;
|
| +#endif
|
|
|
| gfx::NativeView GetContentView();
|
|
|
| @@ -229,10 +243,11 @@ class Shell : public WebContentsDelegate,
|
|
|
| gfx::Size content_size_;
|
|
|
| -#if defined(OS_ANDROID)
|
| +#if defined(OS_ANDROID) && !defined(USE_AURA)
|
| base::android::ScopedJavaGlobalRef<jobject> java_object_;
|
| -#elif defined(USE_AURA)
|
| -#if defined(OS_CHROMEOS)
|
| +#endif
|
| +#if defined(USE_AURA)
|
| +#if defined(OS_CHROMEOS) || defined(OS_ANDROID)
|
| static wm::WMTestHelper* wm_test_helper_;
|
| static gfx::Screen* test_screen_;
|
| #endif
|
| @@ -255,6 +270,11 @@ class Shell : public WebContentsDelegate,
|
| // True if the destructur of Shell should post a quit closure on the current
|
| // message loop if the destructed Shell object was the last one.
|
| static bool quit_message_loop_;
|
| +
|
| +#if defined(USE_AURA) && defined(OS_ANDROID)
|
| + // Closure for quitting nested message loop.
|
| + base::Closure quit_closure_;
|
| +#endif
|
| };
|
|
|
| } // namespace content
|
|
|