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

Side by Side Diff: chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.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 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_DIALOG_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_VIEWS_H_
7 7
8 #include "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/views/window/dialog_delegate.h" 9 #include "ui/views/window/dialog_delegate.h"
10 10
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 AppInfoDialog(gfx::NativeWindow parent_window, 23 AppInfoDialog(gfx::NativeWindow parent_window,
24 Profile* profile, 24 Profile* profile,
25 const extensions::Extension* app, 25 const extensions::Extension* app,
26 const base::Closure& close_callback); 26 const base::Closure& close_callback);
27 27
28 virtual ~AppInfoDialog(); 28 virtual ~AppInfoDialog();
29 29
30 private: 30 private:
31 // Overridden from views::View: 31 // Overridden from views::View:
32 virtual gfx::Size GetPreferredSize() OVERRIDE; 32 virtual gfx::Size GetPreferredSize() const OVERRIDE;
33 33
34 // Overridden from views::DialogDelegate: 34 // Overridden from views::DialogDelegate:
35 virtual bool Cancel() OVERRIDE; 35 virtual bool Cancel() OVERRIDE;
36 virtual int GetDialogButtons() const OVERRIDE; 36 virtual int GetDialogButtons() const OVERRIDE;
37 37
38 // Overridden from views::WidgetDelegate: 38 // Overridden from views::WidgetDelegate:
39 virtual ui::ModalType GetModalType() const OVERRIDE; 39 virtual ui::ModalType GetModalType() const OVERRIDE;
40 40
41 gfx::NativeWindow parent_window_; 41 gfx::NativeWindow parent_window_;
42 Profile* profile_; 42 Profile* profile_;
43 const extensions::Extension* app_; 43 const extensions::Extension* app_;
44 base::Closure close_callback_; 44 base::Closure close_callback_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(AppInfoDialog); 46 DISALLOW_COPY_AND_ASSIGN(AppInfoDialog);
47 }; 47 };
48 48
49 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_VIEWS_H_ 49 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698