blob: e7bfeb810e1b0d2c187bb4a17f2440c8b6f84b7b [file] [log] [blame]
// Copyright (c) 2012 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_UI_TABS_TAB_RESOURCES_H_
#define CHROME_BROWSER_UI_TABS_TAB_RESOURCES_H_
namespace gfx {
class Path;
}
// Common resources for tab widgets. Currently this is used on Views and Gtk,
// but not on Cocoa.
class TabResources {
public:
// Return a |path| containing the region that matches the bitmap display of
// a tab of the given |width| and |height|, for input event hit testing.
// Set |include_top_shadow| to include the mostly-transparent shadow pixels
// above the top edge of the tab in the path.
static void GetHitTestMask(int width,
int height,
bool include_top_shadow,
gfx::Path* path);
};
#endif // CHROME_BROWSER_UI_TABS_TAB_RESOURCES_H_