blob: 5c94863d301e5ae7a4f8274d38a31c725f0d88d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// 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.
#ifndef MANDOLINE_UI_BROWSER_BROWSER_UI_H_
#define MANDOLINE_UI_BROWSER_BROWSER_UI_H_
namespace mojo {
class ApplicationImpl;
class View;
}
namespace mandoline {
class Browser;
class BrowserUI {
public:
virtual ~BrowserUI() {}
static BrowserUI* Create(Browser* browser,
mojo::ApplicationImpl* application_impl);
// Called when the Browser UI is embedded within the specified view.
// BrowserUI is destroyed prior to |root| being destroyed. That is, the
// BrowserUI implementations can assume |root| is never deleted out from under
// them.
virtual void Init(mojo::View* root) = 0;
virtual void OnURLChanged() = 0;
virtual void LoadingStateChanged(bool loading) = 0;
virtual void ProgressChanged(double progress) = 0;
};
} // namespace mandoline
#endif // MANDOLINE_UI_BROWSER_BROWSER_UI_H_
|