blob: 277571802d17c10d234c733fb614d1f963778ecf [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.
#include "base/callback.h"
namespace gfx {
class Rect;
// The result of a search for Chrome's taskbar icon. An empty rect is provided
// in case of error or if no icon can be found.
using TaskbarIconFinderResultCallback =
base::OnceCallback<void(const gfx::Rect&)>;
// Asynchronosuly finds the bounding rectangle of Chrome's taskbar icon on the
// primary monitor, running |result_callback| with the result (in DIP) when
// done.
void FindTaskbarIcon(TaskbarIconFinderResultCallback result_callback);