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

Unified Diff: mandoline/ui/phone_ui/phone_browser_application_delegate.h

Issue 1308973005: html_viewer/web_view: An app for running layout-tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix-win-build Created 5 years, 3 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
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_;

Powered by Google App Engine
This is Rietveld 408576698