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

Side by Side Diff: chrome/browser/ui/gtk/extensions/extension_install_dialog_gtk.cc

Issue 8253002: Move PageTransition into content namespace. While I'm touching all these files, I've also updated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include <gtk/gtk.h> 5 #include <gtk/gtk.h>
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/extensions/extension_install_dialog.h" 9 #include "chrome/browser/extensions/extension_install_dialog.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 } 219 }
220 220
221 gtk_widget_destroy(dialog_); 221 gtk_widget_destroy(dialog_);
222 delete this; 222 delete this;
223 } 223 }
224 224
225 void ExtensionInstallDialog::OnStoreLinkClick(GtkWidget* sender) { 225 void ExtensionInstallDialog::OnStoreLinkClick(GtkWidget* sender) {
226 GURL store_url( 226 GURL store_url(
227 extension_urls::GetWebstoreItemDetailURLPrefix() + extension_->id()); 227 extension_urls::GetWebstoreItemDetailURLPrefix() + extension_->id());
228 BrowserList::GetLastActive()->OpenURL(OpenURLParams( 228 BrowserList::GetLastActive()->OpenURL(OpenURLParams(
229 store_url, GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK)); 229 store_url, GURL(), NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK));
230 230
231 OnResponse(dialog_, GTK_RESPONSE_CLOSE); 231 OnResponse(dialog_, GTK_RESPONSE_CLOSE);
232 } 232 }
233 233
234 } // namespace 234 } // namespace
235 235
236 void ShowExtensionInstallDialog( 236 void ShowExtensionInstallDialog(
237 Profile* profile, 237 Profile* profile,
238 ExtensionInstallUI::Delegate* delegate, 238 ExtensionInstallUI::Delegate* delegate,
239 const Extension* extension, 239 const Extension* extension,
(...skipping 11 matching lines...) Expand all
251 delegate->InstallUIAbort(false); 251 delegate->InstallUIAbort(false);
252 return; 252 return;
253 } 253 }
254 254
255 new ExtensionInstallDialog(browser_window->window(), 255 new ExtensionInstallDialog(browser_window->window(),
256 delegate, 256 delegate,
257 extension, 257 extension,
258 icon, 258 icon,
259 prompt); 259 prompt);
260 } 260 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/constrained_html_delegate_gtk.cc ('k') | chrome/browser/ui/gtk/global_bookmark_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698