summaryrefslogtreecommitdiffstats
path: root/mandoline/ui/browser/android/android_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mandoline/ui/browser/android/android_ui.cc')
-rw-r--r--mandoline/ui/browser/android/android_ui.cc35
1 files changed, 35 insertions, 0 deletions
diff --git a/mandoline/ui/browser/android/android_ui.cc b/mandoline/ui/browser/android/android_ui.cc
new file mode 100644
index 0000000..3a414c6
--- /dev/null
+++ b/mandoline/ui/browser/android/android_ui.cc
@@ -0,0 +1,35 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "mandoline/ui/browser/android/android_ui.h"
+
+namespace mojo {
+class Shell;
+class View;
+}
+
+namespace mandoline {
+
+class Browser;
+
+AndroidUI::AndroidUI(Browser* browser, mojo::Shell* shell)
+ : browser_(browser),
+ shell_(shell),
+ root_(nullptr),
+ content_(nullptr) {}
+AndroidUI::~AndroidUI() {}
+
+void AndroidUI::Init(mojo::View* root, mojo::View* content_) {
+ root_ = root;
+ content_ = content;
+
+ content_->SetBounds(root_->bounds());
+}
+
+// static
+BrowserUI* BrowserUI::Create(Browser* browser, mojo::Shell* shell) {
+ return new AndroidUI(browser, shell);
+}
+
+} // namespace mandoline