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

Side by Side Diff: chrome/browser/ui/views/apps/app_info_dialog/app_info_tab.h

Issue 306023011: Add new DialogDelegate for dialogs in the App List (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made AppInfoDialog a sub-view, and removed a lot of dependencies on close_callback and parent_windo… Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_TAB_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_TAB_H_
6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_TAB_H_ 6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_TAB_H_
7 7
8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/views/view.h" 8 #include "ui/views/view.h"
10 9
11 class AppInfoView;
12 class Profile; 10 class Profile;
13 11
14 namespace extensions { 12 namespace extensions {
15 class Extension; 13 class Extension;
16 } 14 }
17 namespace views { 15 namespace views {
18 class View; 16 class View;
19 } 17 }
20 18
21 // A tab in the App Info dialog that displays information for a particular 19 // A tab in the App Info dialog that displays information for a particular
22 // profile and app. Tabs in the App Info dialog extend this class. 20 // profile and app. Tabs in the App Info dialog extend this class.
23 class AppInfoTab : public views::View { 21 class AppInfoTab : public views::View {
24 public: 22 public:
25 AppInfoTab(gfx::NativeWindow parent_window, 23 AppInfoTab(Profile* profile, const extensions::Extension* app);
26 Profile* profile,
27 const extensions::Extension* app,
28 const base::Closure& close_callback);
29 24
30 virtual ~AppInfoTab(); 25 virtual ~AppInfoTab();
31 26
32 protected: 27 protected:
tapted 2014/06/16 06:11:56 protected data members are only allowed in test ha
sashab 2014/06/16 07:01:20 I copied this 'pattern' from CreateApplicationShor
33 gfx::NativeWindow parent_window_;
34 Profile* profile_; 28 Profile* profile_;
35 const extensions::Extension* app_; 29 const extensions::Extension* app_;
36 const base::Closure& close_callback_;
37 30
38 private: 31 private:
39 DISALLOW_COPY_AND_ASSIGN(AppInfoTab); 32 DISALLOW_COPY_AND_ASSIGN(AppInfoTab);
40 }; 33 };
41 34
42 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_TAB_H_ 35 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698