Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3350)

Unified Diff: chrome/browser/ui/tabs/tab_resources.h

Issue 7640004: Gtk: Make click target of tabs match their appearance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: active_tab==NULL fix Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc ('k') | chrome/browser/ui/tabs/tab_resources.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/tabs/tab_resources.h
diff --git a/chrome/browser/ui/tabs/tab_resources.h b/chrome/browser/ui/tabs/tab_resources.h
new file mode 100644
index 0000000000000000000000000000000000000000..32579d35f99089eefc10b3e18401f2413057303f
--- /dev/null
+++ b/chrome/browser/ui/tabs/tab_resources.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2011 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_
+#pragma once
+
+namespace gfx {
+class Path;
+}
+
+// Common resources for tab widgets. Currently this is used on Views and Gtk,
James Hawkins 2011/08/12 22:08:00 nit: One space between comment sentences.
+// 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.
+ static void GetHitTestMask(int width, int height, gfx::Path* path);
+};
+
+#endif // CHROME_BROWSER_UI_TABS_TAB_RESOURCES_H_
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc ('k') | chrome/browser/ui/tabs/tab_resources.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698