| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual gfx::Size GetPreferredSize() OVERRIDE; | 51 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 52 | 52 |
| 53 // Overridden from views::DialogDelegate: | 53 // Overridden from views::DialogDelegate: |
| 54 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; | 54 virtual string16 GetDialogButtonLabel(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 bool CanResize() const OVERRIDE; | 56 virtual bool CanResize() const OVERRIDE; |
| 57 virtual bool CanMaximize() const OVERRIDE; | 57 virtual bool CanMaximize() const OVERRIDE; |
| 58 virtual ui::ModalType GetModalType() const OVERRIDE; | 58 virtual ui::ModalType GetModalType() const OVERRIDE; |
| 59 virtual string16 GetWindowTitle() const OVERRIDE; | 59 virtual string16 GetWindowTitle() const OVERRIDE; |
| 60 virtual bool Accept() OVERRIDE; | 60 virtual bool Accept() OVERRIDE; |
| 61 virtual views::View* GetContentsView() OVERRIDE; | |
| 62 | 61 |
| 63 // Overridden from views::ButtonListener: | 62 // Overridden from views::ButtonListener: |
| 64 virtual void ButtonPressed(views::Button* sender, | 63 virtual void ButtonPressed(views::Button* sender, |
| 65 const ui::Event& event) OVERRIDE; | 64 const ui::Event& event) OVERRIDE; |
| 66 | 65 |
| 67 protected: | 66 protected: |
| 68 // Adds a new check-box as a child to the view. | 67 // Adds a new check-box as a child to the view. |
| 69 views::Checkbox* AddCheckbox(const string16& text, bool checked); | 68 views::Checkbox* AddCheckbox(const string16& text, bool checked); |
| 70 | 69 |
| 71 // Profile in which the shortcuts will be created. | 70 // Profile in which the shortcuts will be created. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 int index) OVERRIDE; | 133 int index) OVERRIDE; |
| 135 | 134 |
| 136 private: | 135 private: |
| 137 const extensions::Extension* app_; | 136 const extensions::Extension* app_; |
| 138 ImageLoadingTracker tracker_; | 137 ImageLoadingTracker tracker_; |
| 139 | 138 |
| 140 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView); | 139 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView); |
| 141 }; | 140 }; |
| 142 | 141 |
| 143 #endif // CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ | 142 #endif // CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ |
| OLD | NEW |