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

Side by Side Diff: mandoline/ui/browser/android/android_ui.cc

Issue 1136593004: Add a simple browser UI (with url bar) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « mandoline/ui/browser/android/android_ui.h ('k') | mandoline/ui/browser/browser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « mandoline/ui/browser/android/android_ui.h ('k') | mandoline/ui/browser/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698