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

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

Issue 16361009: Do not allow Views new-dialog-style windows to be resized. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make DialogTest.HitTest more flexible. Created 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/create_application_shortcut_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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() OVERRIDE;
51 51
52 // Overridden from views::DialogDelegate: 52 // Overridden from views::DialogDelegate:
53 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; 53 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE;
54 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; 54 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE;
55 virtual bool CanResize() const OVERRIDE;
56 virtual bool CanMaximize() const OVERRIDE;
57 virtual ui::ModalType GetModalType() const OVERRIDE; 55 virtual ui::ModalType GetModalType() const OVERRIDE;
58 virtual string16 GetWindowTitle() const OVERRIDE; 56 virtual string16 GetWindowTitle() const OVERRIDE;
59 virtual bool Accept() OVERRIDE; 57 virtual bool Accept() OVERRIDE;
60 58
61 // Overridden from views::ButtonListener: 59 // Overridden from views::ButtonListener:
62 virtual void ButtonPressed(views::Button* sender, 60 virtual void ButtonPressed(views::Button* sender,
63 const ui::Event& event) OVERRIDE; 61 const ui::Event& event) OVERRIDE;
64 62
65 protected: 63 protected:
66 // Adds a new check-box as a child to the view. 64 // Adds a new check-box as a child to the view.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 const ShellIntegration::ShortcutInfo& shortcut_info); 127 const ShellIntegration::ShortcutInfo& shortcut_info);
130 128
131 const extensions::Extension* app_; 129 const extensions::Extension* app_;
132 130
133 base::WeakPtrFactory<CreateChromeApplicationShortcutView> weak_ptr_factory_; 131 base::WeakPtrFactory<CreateChromeApplicationShortcutView> weak_ptr_factory_;
134 132
135 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView); 133 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView);
136 }; 134 };
137 135
138 #endif // CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ 136 #endif // CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/create_application_shortcut_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698