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

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

Issue 691253002: Move the Developer Website and Licenses links in the App Info dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 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_PANEL_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PANEL_H_
6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PANEL_H_ 6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PANEL_H_
7 7
8 #include "ui/views/view.h" 8 #include "ui/views/view.h"
9 9
10 class Profile; 10 class Profile;
(...skipping 10 matching lines...) Expand all
21 class AppInfoPanel : public views::View { 21 class AppInfoPanel : public views::View {
22 public: 22 public:
23 AppInfoPanel(Profile* profile, const extensions::Extension* app); 23 AppInfoPanel(Profile* profile, const extensions::Extension* app);
24 24
25 virtual ~AppInfoPanel(); 25 virtual ~AppInfoPanel();
26 26
27 protected: 27 protected:
28 // Closes the dialog. 28 // Closes the dialog.
29 void Close(); 29 void Close();
30 30
31 // Opens the given URL in a new browser tab.
32 void OpenLink(const GURL& url);
33
31 // Create a heading label with the given text. 34 // Create a heading label with the given text.
32 views::Label* CreateHeading(const base::string16& text) const; 35 views::Label* CreateHeading(const base::string16& text) const;
33 36
34 // Create a view with a vertically-stacked box layout, which can have child 37 // Create a view with a vertically-stacked box layout, which can have child
35 // views appended to it. |child_spacing| defaults to 38 // views appended to it. |child_spacing| defaults to
36 // |views::kRelatedControlVerticalSpacing|. 39 // |views::kRelatedControlVerticalSpacing|.
37 views::View* CreateVerticalStack(int child_spacing) const; 40 views::View* CreateVerticalStack(int child_spacing) const;
38 views::View* CreateVerticalStack() const; 41 views::View* CreateVerticalStack() const;
39 42
40 // Create a view with a horizontally-stacked box layout, which can have child 43 // Create a view with a horizontally-stacked box layout, which can have child
41 // views appended to it. 44 // views appended to it.
42 views::View* CreateHorizontalStack(int child_spacing) const; 45 views::View* CreateHorizontalStack(int child_spacing) const;
43 46
44 // Given a key and a value, displays them side-by-side as a field and its 47 // Given a key and a value, displays them side-by-side as a field and its
45 // value. 48 // value.
46 views::View* CreateKeyValueField(views::View* key, views::View* value) const; 49 views::View* CreateKeyValueField(views::View* key, views::View* value) const;
47 50
48 Profile* profile_; 51 Profile* profile_;
49 const extensions::Extension* app_; 52 const extensions::Extension* app_;
50 53
51 private: 54 private:
52 DISALLOW_COPY_AND_ASSIGN(AppInfoPanel); 55 DISALLOW_COPY_AND_ASSIGN(AppInfoPanel);
53 }; 56 };
54 57
55 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PANEL_H_ 58 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698