blob: 09202cffe114b3940da050d00b207d9f2842427c [file] [log] [blame]
// Copyright 2017 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 CHROME_BROWSER_VR_UI_BROWSER_INTERFACE_H_
#define CHROME_BROWSER_VR_UI_BROWSER_INTERFACE_H_
#include "chrome/browser/vr/exit_vr_prompt_choice.h"
#include "chrome/browser/vr/ui_unsupported_mode.h"
#include "ui/gfx/geometry/size_f.h"
#include "url/gurl.h"
namespace vr {
// An interface for the VR UI to communicate with VrShell. Many of the functions
// in this interface are proxies to methods on VrShell.
class UiBrowserInterface {
public:
virtual ~UiBrowserInterface() = default;
virtual void ExitPresent() = 0;
virtual void ExitFullscreen() = 0;
virtual void Navigate(GURL gurl) = 0;
virtual void NavigateBack() = 0;
virtual void ExitCct() = 0;
virtual void OnUnsupportedMode(UiUnsupportedMode mode) = 0;
virtual void OnExitVrPromptResult(ExitVrPromptChoice choice,
UiUnsupportedMode reason) = 0;
virtual void OnContentScreenBoundsChanged(const gfx::SizeF& bounds) = 0;
virtual void SetVoiceSearchActive(bool active) = 0;
virtual void StartAutocomplete(const base::string16& string) = 0;
virtual void StopAutocomplete() = 0;
};
} // namespace vr
#endif // CHROME_BROWSER_VR_UI_BROWSER_INTERFACE_H_