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

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

Issue 337023002: Fixed app shortcut creation broken in r276419 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 public: 136 public:
137 CreateChromeApplicationShortcutView( 137 CreateChromeApplicationShortcutView(
138 Profile* profile, 138 Profile* profile,
139 const extensions::Extension* app, 139 const extensions::Extension* app,
140 const base::Callback<void(bool)>& close_callback); 140 const base::Callback<void(bool)>& close_callback);
141 virtual ~CreateChromeApplicationShortcutView(); 141 virtual ~CreateChromeApplicationShortcutView();
142 virtual bool Accept() OVERRIDE; 142 virtual bool Accept() OVERRIDE;
143 virtual bool Cancel() OVERRIDE; 143 virtual bool Cancel() OVERRIDE;
144 144
145 private: 145 private:
146 void OnShortcutInfoLoaded(const web_app::ShortcutInfo& shortcut_info);
147
146 base::Callback<void(bool)> close_callback_; 148 base::Callback<void(bool)> close_callback_;
147 149
148 base::WeakPtrFactory<CreateChromeApplicationShortcutView> weak_ptr_factory_; 150 base::WeakPtrFactory<CreateChromeApplicationShortcutView> weak_ptr_factory_;
149 151
150 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView); 152 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView);
151 }; 153 };
152 154
153 #endif // CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ 155 #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