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

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

Issue 25849004: Clean up unused constant globals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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) 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 // Currently this file is only used for the uninstall prompt. The install prompt 5 // Currently this file is only used for the uninstall prompt. The install prompt
6 // code is in extension_install_prompt2_gtk.cc. 6 // code is in extension_install_prompt2_gtk.cc.
7 7
8 #include "chrome/browser/extensions/extension_uninstall_dialog.h" 8 #include "chrome/browser/extensions/extension_uninstall_dialog.h"
9 9
10 #include <gtk/gtk.h> 10 #include <gtk/gtk.h>
11 11
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
15 #include "chrome/browser/ui/browser_window.h" 15 #include "chrome/browser/ui/browser_window.h"
16 #include "chrome/browser/ui/gtk/browser_window_gtk.h" 16 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
17 #include "chrome/common/extensions/extension.h" 17 #include "chrome/common/extensions/extension.h"
18 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
19 #include "ui/base/gtk/gtk_hig_constants.h" 19 #include "ui/base/gtk/gtk_hig_constants.h"
20 #include "ui/base/l10n/l10n_util.h" 20 #include "ui/base/l10n/l10n_util.h"
21 #include "ui/gfx/gtk_util.h" 21 #include "ui/gfx/gtk_util.h"
22 22
23 namespace { 23 namespace {
24 24
25 // Left or right margin.
26 const int kPanelHorizMargin = 13;
27
28 // GTK implementation of the uninstall dialog. 25 // GTK implementation of the uninstall dialog.
29 class ExtensionUninstallDialogGtk : public ExtensionUninstallDialog { 26 class ExtensionUninstallDialogGtk : public ExtensionUninstallDialog {
30 public: 27 public:
31 ExtensionUninstallDialogGtk(Profile* profile, 28 ExtensionUninstallDialogGtk(Profile* profile,
32 Browser* browser, 29 Browser* browser,
33 Delegate* delegate); 30 Delegate* delegate);
34 virtual ~ExtensionUninstallDialogGtk() OVERRIDE; 31 virtual ~ExtensionUninstallDialogGtk() OVERRIDE;
35 32
36 private: 33 private:
37 virtual void Show() OVERRIDE; 34 virtual void Show() OVERRIDE;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 } 122 }
126 123
127 } // namespace 124 } // namespace
128 125
129 // static 126 // static
130 // Platform specific implementation of the uninstall dialog show method. 127 // Platform specific implementation of the uninstall dialog show method.
131 ExtensionUninstallDialog* ExtensionUninstallDialog::Create( 128 ExtensionUninstallDialog* ExtensionUninstallDialog::Create(
132 Profile* profile, Browser* browser, Delegate* delegate) { 129 Profile* profile, Browser* browser, Delegate* delegate) {
133 return new ExtensionUninstallDialogGtk(profile, browser, delegate); 130 return new ExtensionUninstallDialogGtk(profile, browser, delegate);
134 } 131 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698