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

Side by Side Diff: chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.h

Issue 2261793002: Bring the feedback button to the Mac sad tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Address second wave of comments, turn off feedback in non-Chrome builds Created 4 years, 3 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) 2012 The Chromium Authors. All rights reserved. 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 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_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "ui/base/cocoa/controls/hyperlink_text_view.h" 10 #include "chrome/browser/ui/sad_tab.h"
11
12 @class SadTabView;
13
14 @protocol SadTabViewDelegate
15 - (void)sadTabViewButtonClicked:(SadTabView*)sadTabView;
16 - (void)sadTabView:(SadTabView*)sadTabView
17 helpLinkClickedWithURL:(NSString*)url;
18 @end
19 11
20 // A view that displays the "sad tab" (aka crash page). 12 // A view that displays the "sad tab" (aka crash page).
21 @interface SadTabView : NSView 13 @interface SadTabView : NSView
22 14
23 @property(nonatomic, assign) id<SadTabViewDelegate> delegate; 15 - (instancetype)initWithFrame:(NSRect)frame sadTab:(chrome::SadTab*)sadTab;
24
25 - (void)setTitle:(int)title;
26 - (void)setMessage:(int)message;
27 - (void)setButtonTitle:(int)buttonTitle;
28 - (void)setHelpLinkTitle:(int)helpLinkTitle URL:(NSString*)url;
29 16
30 @end 17 @end
31 18
32 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_ 19 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_VIEW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698