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

Side by Side Diff: chrome/browser/ui/views/create_application_shortcut_view.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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 (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_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 class CreateApplicationShortcutView : public views::DialogDelegateView, 40 class CreateApplicationShortcutView : public views::DialogDelegateView,
41 public views::ButtonListener { 41 public views::ButtonListener {
42 public: 42 public:
43 explicit CreateApplicationShortcutView(Profile* profile); 43 explicit CreateApplicationShortcutView(Profile* profile);
44 virtual ~CreateApplicationShortcutView(); 44 virtual ~CreateApplicationShortcutView();
45 45
46 // Initialize the controls on the dialog. 46 // Initialize the controls on the dialog.
47 void InitControls(); 47 void InitControls();
48 48
49 // Overridden from views::View: 49 // Overridden from views::View:
50 virtual gfx::Size GetPreferredSize() OVERRIDE; 50 virtual gfx::Size GetPreferredSize() const OVERRIDE;
51 51
52 // Overridden from views::DialogDelegate: 52 // Overridden from views::DialogDelegate:
53 virtual base::string16 GetDialogButtonLabel( 53 virtual base::string16 GetDialogButtonLabel(
54 ui::DialogButton button) const OVERRIDE; 54 ui::DialogButton button) const OVERRIDE;
55 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; 55 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE;
56 virtual ui::ModalType GetModalType() const OVERRIDE; 56 virtual ui::ModalType GetModalType() const OVERRIDE;
57 virtual base::string16 GetWindowTitle() const OVERRIDE; 57 virtual base::string16 GetWindowTitle() const OVERRIDE;
58 virtual bool Accept() OVERRIDE; 58 virtual bool Accept() OVERRIDE;
59 59
60 // Overridden from views::ButtonListener: 60 // Overridden from views::ButtonListener:
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 const web_app::ShortcutInfo& shortcut_info); 136 const web_app::ShortcutInfo& shortcut_info);
137 137
138 base::Callback<void(bool)> close_callback_; 138 base::Callback<void(bool)> close_callback_;
139 139
140 base::WeakPtrFactory<CreateChromeApplicationShortcutView> weak_ptr_factory_; 140 base::WeakPtrFactory<CreateChromeApplicationShortcutView> weak_ptr_factory_;
141 141
142 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView); 142 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView);
143 }; 143 };
144 144
145 #endif // CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ 145 #endif // CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698