No longer register app window placement preference keys on
[chromium-blink-merge.git] / chrome / browser / ui / tabs / tab_resources.h
blobe7bfeb810e1b0d2c187bb4a17f2440c8b6f84b7b
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.
5 #ifndef CHROME_BROWSER_UI_TABS_TAB_RESOURCES_H_
6 #define CHROME_BROWSER_UI_TABS_TAB_RESOURCES_H_
8 namespace gfx {
9 class Path;
12 // Common resources for tab widgets. Currently this is used on Views and Gtk,
13 // but not on Cocoa.
14 class 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);
26 #endif // CHROME_BROWSER_UI_TABS_TAB_RESOURCES_H_