| Index: mandoline/ui/phone_ui/phone_browser_application_delegate.h
|
| diff --git a/mandoline/ui/phone_ui/phone_browser_application_delegate.h b/mandoline/ui/phone_ui/phone_browser_application_delegate.h
|
| index eca70825cf22e15d90eb7c120e66d2d84147c619..0e1a4ce4c04f93fe8eece408cd45bc4cfff0b1c2 100644
|
| --- a/mandoline/ui/phone_ui/phone_browser_application_delegate.h
|
| +++ b/mandoline/ui/phone_ui/phone_browser_application_delegate.h
|
| @@ -18,6 +18,10 @@
|
| #include "mojo/application/public/cpp/interface_factory.h"
|
| #include "mojo/common/weak_binding_set.h"
|
|
|
| +namespace gfx {
|
| +class Size;
|
| +}
|
| +
|
| namespace mojo {
|
| class View;
|
| }
|
| @@ -35,7 +39,13 @@ class PhoneBrowserApplicationDelegate :
|
| PhoneBrowserApplicationDelegate();
|
| ~PhoneBrowserApplicationDelegate() override;
|
|
|
| - private:
|
| + protected:
|
| + mojo::ApplicationImpl* app() { return app_; }
|
| + mojo::View* root() { return root_; }
|
| +
|
| + virtual bool ShouldLaunchURLOnInitialize() const;
|
| + virtual gfx::Size GetViewportSize() const;
|
| +
|
| // Overridden from mojo::ApplicationDelegate:
|
| void Initialize(mojo::ApplicationImpl* app) override;
|
| bool ConfigureIncomingConnection(
|
| @@ -63,11 +73,14 @@ class PhoneBrowserApplicationDelegate :
|
| void Create(mojo::ApplicationConnection* connection,
|
| mojo::InterfaceRequest<LaunchHandler> request) override;
|
|
|
| + private:
|
| mojo::ApplicationImpl* app_;
|
| mojo::ViewTreeHostPtr host_;
|
|
|
| + mojo::View* root_;
|
| mojo::View* content_;
|
| web_view::WebView web_view_;
|
| + bool web_view_inited_ = false;
|
|
|
| mojo::String default_url_;
|
|
|
|
|