Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / mandoline / ui / browser / browser_ui.h
blob5c94863d301e5ae7a4f8274d38a31c725f0d88d5
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.
5 #ifndef MANDOLINE_UI_BROWSER_BROWSER_UI_H_
6 #define MANDOLINE_UI_BROWSER_BROWSER_UI_H_
8 namespace mojo {
9 class ApplicationImpl;
10 class View;
13 namespace mandoline {
15 class Browser;
17 class BrowserUI {
18 public:
19 virtual ~BrowserUI() {}
20 static BrowserUI* Create(Browser* browser,
21 mojo::ApplicationImpl* application_impl);
23 // Called when the Browser UI is embedded within the specified view.
24 // BrowserUI is destroyed prior to |root| being destroyed. That is, the
25 // BrowserUI implementations can assume |root| is never deleted out from under
26 // them.
27 virtual void Init(mojo::View* root) = 0;
29 virtual void OnURLChanged() = 0;
31 virtual void LoadingStateChanged(bool loading) = 0;
33 virtual void ProgressChanged(double progress) = 0;
36 } // namespace mandoline
38 #endif // MANDOLINE_UI_BROWSER_BROWSER_UI_H_