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

Side by Side Diff: chrome/browser/ui/gtk/script_bubble_gtk.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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) 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 #include "chrome/browser/ui/gtk/script_bubble_gtk.h" 5 #include "chrome/browser/ui/gtk/script_bubble_gtk.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "chrome/browser/extensions/extension_service.h" 12 #include "chrome/browser/extensions/extension_service.h"
13 #include "chrome/browser/extensions/extension_system.h" 13 #include "chrome/browser/extensions/extension_system.h"
14 #include "chrome/browser/extensions/image_loader.h" 14 #include "chrome/browser/extensions/image_loader.h"
15 #include "chrome/browser/extensions/script_bubble_controller.h" 15 #include "chrome/browser/extensions/script_bubble_controller.h"
16 #include "chrome/browser/extensions/tab_helper.h" 16 #include "chrome/browser/extensions/tab_helper.h"
17 #include "chrome/browser/profiles/profile.h" 17 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 18 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
19 #include "chrome/common/extensions/extension.h"
20 #include "chrome/common/extensions/extension_set.h" 19 #include "chrome/common/extensions/extension_set.h"
21 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" 20 #include "chrome/common/extensions/manifest_handlers/icons_handler.h"
22 #include "chrome/common/url_constants.h" 21 #include "chrome/common/url_constants.h"
23 #include "content/public/browser/web_contents.h" 22 #include "content/public/browser/web_contents.h"
23 #include "extensions/common/extension.h"
24 #include "grit/generated_resources.h" 24 #include "grit/generated_resources.h"
25 #include "grit/theme_resources.h" 25 #include "grit/theme_resources.h"
26 #include "grit/ui_resources.h" 26 #include "grit/ui_resources.h"
27 #include "ui/base/gtk/gtk_hig_constants.h" 27 #include "ui/base/gtk/gtk_hig_constants.h"
28 #include "ui/base/l10n/l10n_util.h" 28 #include "ui/base/l10n/l10n_util.h"
29 29
30 using content::WebContents; 30 using content::WebContents;
31 using content::OpenURLParams; 31 using content::OpenURLParams;
32 using content::Referrer; 32 using content::Referrer;
33 using extensions::Extension; 33 using extensions::Extension;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 void ScriptBubbleGtk::OnItemLinkClicked(GtkWidget* button) { 156 void ScriptBubbleGtk::OnItemLinkClicked(GtkWidget* button) {
157 std::string link(chrome::kChromeUIExtensionsURL); 157 std::string link(chrome::kChromeUIExtensionsURL);
158 link += "?id=" + link_controls_[button]; 158 link += "?id=" + link_controls_[button];
159 web_contents_->OpenURL(OpenURLParams(GURL(link), 159 web_contents_->OpenURL(OpenURLParams(GURL(link),
160 Referrer(), 160 Referrer(),
161 NEW_FOREGROUND_TAB, 161 NEW_FOREGROUND_TAB,
162 content::PAGE_TRANSITION_LINK, 162 content::PAGE_TRANSITION_LINK,
163 false)); 163 false));
164 Close(); 164 Close();
165 } 165 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc ('k') | chrome/browser/ui/panels/base_panel_browser_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698