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

Side by Side Diff: chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.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
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/mac/scoped_nsobject.h"
10 #include "base/macros.h"
11 #include "chrome/browser/ui/sad_tab.h"
12
13 #import <Cocoa/Cocoa.h>
14
15 @class SadTabController;
16 @class SadTabView;
17
18 namespace chrome {
19
20 class SadTabCocoa : public SadTab {
21 public:
22 explicit SadTabCocoa(content::WebContents* web_contents);
23
24 ~SadTabCocoa() override;
25
26 private:
27 // Overridden from SadTab:
28 void Show() override;
29 void Close() override;
30
31 base::scoped_nsobject<SadTabController> sad_tab_controller_;
32
33 content::WebContents* web_contents_;
34
35 DISALLOW_COPY_AND_ASSIGN(SadTabCocoa);
36 };
37
38 } // namespace chrome
39
40 // A controller class that manages the SadTabView (aka "Aw Snap" or crash page).
41 @interface SadTabController : NSViewController
42
43 // Designated initializer.
44 - (id)initWithWebContents:(content::WebContents*)webContents;
45
46 // Returns a weak reference to the WebContents whose WebContentsView created
47 // this SadTabController.
48 - (content::WebContents*)webContents;
49
50 @end
51
52 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698