[go: nahoru, domu]

blob: 9b659ccb0a960ca17b1ed85206792c1f69e590ae [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This file implements the input method candidate window used on Chrome OS.
#ifndef CHROME_BROWSER_ASH_INPUT_METHOD_GET_CURRENT_WINDOW_PROPERTIES_H_
#define CHROME_BROWSER_ASH_INPUT_METHOD_GET_CURRENT_WINDOW_PROPERTIES_H_
#include <optional>
#include "base/functional/callback.h"
#include "url/gurl.h"
namespace ash {
namespace input_method {
struct WindowProperties {
std::string app_id;
std::string arc_package_name;
};
using GetFocusedTabUrlCallback =
base::OnceCallback<void(const std::optional<GURL>&)>;
void GetFocusedTabUrl(GetFocusedTabUrlCallback callback);
WindowProperties GetFocusedWindowProperties();
} // namespace input_method
} // namespace ash
#endif // CHROME_BROWSER_ASH_INPUT_METHOD_GET_CURRENT_WINDOW_PROPERTIES_H_