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_
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
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_