OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "mandoline/ui/browser/android/android_ui.h" |
| 6 |
| 7 namespace mojo { |
| 8 class Shell; |
| 9 class View; |
| 10 } |
| 11 |
| 12 namespace mandoline { |
| 13 |
| 14 class Browser; |
| 15 |
| 16 AndroidUI::AndroidUI(Browser* browser, mojo::Shell* shell) |
| 17 : browser_(browser), |
| 18 shell_(shell), |
| 19 root_(nullptr), |
| 20 content_(nullptr) {} |
| 21 AndroidUI::~AndroidUI() {} |
| 22 |
| 23 void AndroidUI::Init(mojo::View* root, mojo::View* content_) { |
| 24 root_ = root; |
| 25 content_ = content; |
| 26 |
| 27 content_->SetBounds(root_->bounds()); |
| 28 } |
| 29 |
| 30 // static |
| 31 BrowserUI* BrowserUI::Create(Browser* browser, mojo::Shell* shell) { |
| 32 return new AndroidUI(browser, shell); |
| 33 } |
| 34 |
| 35 } // namespace mandoline |
OLD | NEW |