| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |