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

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

Issue 1133893003: Omnibox app (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/BUILD.gn ('k') | mandoline/ui/browser/android/android_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MANDOLINE_UI_BROWSER_ANDROID_ANDROID_UI_H_ 5 #ifndef MANDOLINE_UI_BROWSER_ANDROID_ANDROID_UI_H_
6 #define MANDOLINE_UI_BROWSER_ANDROID_ANDROID_UI_H_ 6 #define MANDOLINE_UI_BROWSER_ANDROID_ANDROID_UI_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/view_manager/public/cpp/view_observer.h" 9 #include "components/view_manager/public/cpp/view_observer.h"
10 #include "mandoline/ui/browser/browser_ui.h" 10 #include "mandoline/ui/browser/browser_ui.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 class Shell; 13 class Shell;
14 class View; 14 class View;
15 } 15 }
16 16
17 namespace mandoline { 17 namespace mandoline {
18 18
19 class Browser; 19 class Browser;
20 20
21 class AndroidUI : public BrowserUI, 21 class AndroidUI : public BrowserUI,
22 public mojo::ViewObserver { 22 public mojo::ViewObserver {
23 public: 23 public:
24 AndroidUI(Browser* browser, mojo::Shell* shell); 24 AndroidUI(Browser* browser, mojo::ApplicationImpl* application_impl);
25 ~AndroidUI() override; 25 ~AndroidUI() override;
26 26
27 private: 27 private:
28 // Overridden from BrowserUI: 28 // Overridden from BrowserUI:
29 void Init(mojo::View* root, mojo::View* content) override; 29 void Init(mojo::View* root) override;
30 void OnURLChanged() override;
30 31
31 // Overriden from mojo::ViewObserver: 32 // Overriden from mojo::ViewObserver:
32 virtual void OnViewBoundsChanged(mojo::View* view, 33 virtual void OnViewBoundsChanged(mojo::View* view,
33 const mojo::Rect& old_bounds, 34 const mojo::Rect& old_bounds,
34 const mojo::Rect& new_bounds) override; 35 const mojo::Rect& new_bounds) override;
35 36
36 Browser* browser_; 37 Browser* browser_;
37 mojo::Shell* shell_; 38 mojo::ApplicationImpl* application_impl_;
38 mojo::View* root_; 39 mojo::View* root_;
39 mojo::View* content_; 40 mojo::View* content_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(AndroidUI); 42 DISALLOW_COPY_AND_ASSIGN(AndroidUI);
42 }; 43 };
43 44
44 } // namespace mandoline 45 } // namespace mandoline
45 46
46 #endif // MANDOLINE_UI_BROWSER_ANDROID_ANDROID_UI_H_ 47 #endif // MANDOLINE_UI_BROWSER_ANDROID_ANDROID_UI_H_
OLDNEW
« no previous file with comments | « mandoline/ui/browser/BUILD.gn ('k') | mandoline/ui/browser/android/android_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698