1// Copyright (c) 2012 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. 4 5#ifndef CHROME_BROWSER_UI_TABS_TAB_RESOURCES_H_ 6#define CHROME_BROWSER_UI_TABS_TAB_RESOURCES_H_ 7 8namespace gfx { 9class Path; 10} 11 12// Common resources for tab widgets. Currently this is used on Views and Gtk, 13// but not on Cocoa. 14class TabResources { 15 public: 16 // Return a |path| containing the region that matches the bitmap display of 17 // a tab of the given |width| and |height|, for input event hit testing. 18 // Set |include_top_shadow| to include the mostly-transparent shadow pixels 19 // above the top edge of the tab in the path. 20 static void GetHitTestMask(int width, 21 int height, 22 bool include_top_shadow, 23 gfx::Path* path); 24}; 25 26#endif // CHROME_BROWSER_UI_TABS_TAB_RESOURCES_H_ 27