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

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_strip_view.h

Issue 900613003: Mac: Make it easier for views to correctly draw with a theme. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gyp
Patch Set: Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_
6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_ 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/background_gradient_view.h" 11 #import "chrome/browser/ui/cocoa/themed_window.h"
12 #import "chrome/browser/ui/cocoa/url_drop_target.h" 12 #import "chrome/browser/ui/cocoa/url_drop_target.h"
13 13
14 @class NewTabButton; 14 @class NewTabButton;
15 @class TabStripController; 15 @class TabStripController;
16 16
17 // A view class that handles rendering the tab strip and drops of URLS with 17 // A view class that handles rendering the tab strip and drops of URLS with
18 // a positioning locator for drop feedback. 18 // a positioning locator for drop feedback.
19 19
20 @interface TabStripView : BackgroundGradientView<URLDropTarget> { 20 @interface TabStripView : NSView<ThemedWindowDrawing, URLDropTarget> {
Andre 2015/02/03 19:13:19 See https://codereview.chromium.org/867273003/ for
21 @private 21 @private
22 TabStripController* controller_; // Weak; owns us. 22 TabStripController* controller_; // Weak; owns us.
23 23
24 NSTimeInterval lastMouseUp_; 24 NSTimeInterval lastMouseUp_;
25 25
26 // Handles being a drag-and-drop target. 26 // Handles being a drag-and-drop target.
27 base::scoped_nsobject<URLDropTargetHandler> dropHandler_; 27 base::scoped_nsobject<URLDropTargetHandler> dropHandler_;
28 28
29 base::scoped_nsobject<NewTabButton> newTabButton_; 29 base::scoped_nsobject<NewTabButton> newTabButton_;
30 30
(...skipping 22 matching lines...) Expand all
53 @interface TabStripView (Protected) 53 @interface TabStripView (Protected)
54 - (void)drawBottomBorder:(NSRect)bounds; 54 - (void)drawBottomBorder:(NSRect)bounds;
55 - (BOOL)doubleClickMinimizesWindow; 55 - (BOOL)doubleClickMinimizesWindow;
56 @end 56 @end
57 57
58 @interface TabStripView (TestingAPI) 58 @interface TabStripView (TestingAPI)
59 - (void)setNewTabButton:(NewTabButton*)button; 59 - (void)setNewTabButton:(NewTabButton*)button;
60 @end 60 @end
61 61
62 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_ 62 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698