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

Unified Diff: chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
diff --git a/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h b/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
deleted file mode 100644
index c23c84c0d12160dc56093a82af4dee3018183349..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
+++ /dev/null
@@ -1,139 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_
-#define CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
-#include "base/sequenced_task_runner_helpers.h"
-#include "chrome/browser/shell_integration.h"
-#include "content/public/browser/browser_thread.h"
-#include "ui/base/gtk/gtk_signal.h"
-#include "url/gurl.h"
-
-using content::BrowserThread;
-
-typedef struct _GdkPixbuf GdkPixbuf;
-typedef struct _GtkWidget GtkWidget;
-typedef struct _GtkWindow GtkWindow;
-
-class Profile;
-
-namespace content {
-class WebContents;
-}
-
-namespace extensions {
-class Extension;
-}
-
-namespace gfx {
-class ImageFamily;
-}
-
-class CreateApplicationShortcutsDialogGtk
- : public base::RefCountedThreadSafe<CreateApplicationShortcutsDialogGtk,
- BrowserThread::DeleteOnUIThread> {
- protected:
- explicit CreateApplicationShortcutsDialogGtk(GtkWindow* parent);
- virtual ~CreateApplicationShortcutsDialogGtk();
-
- CHROMEGTK_CALLBACK_1(CreateApplicationShortcutsDialogGtk, void,
- OnCreateDialogResponse, int);
-
- CHROMEGTK_CALLBACK_1(CreateApplicationShortcutsDialogGtk, void,
- OnErrorDialogResponse, int);
-
- CHROMEGTK_CALLBACK_0(CreateApplicationShortcutsDialogGtk, void,
- OnToggleCheckbox);
-
- virtual void CreateDialogBox(GtkWindow* parent);
- virtual void CreateIconPixBuf(const gfx::ImageFamily& image);
-
- // This method is called after a shortcut is created.
- // Subclasses can override it to take some action at that time.
- virtual void OnCreatedShortcut(void) {}
-
- virtual void CreateDesktopShortcut(
- const ShellIntegration::ShortcutInfo& shortcut_info,
- const ShellIntegration::ShortcutLocations& creation_locations);
- virtual void ShowErrorDialog();
-
- GtkWindow* parent_;
-
- // UI elements.
- GtkWidget* desktop_checkbox_;
- GtkWidget* menu_checkbox_;
-
- // ShortcutInfo for the new shortcut.
- ShellIntegration::ShortcutInfo shortcut_info_;
- // If false the shortcut will be created in the top-level menu.
- bool create_in_chrome_apps_subdir_;
-
- // Image associated with the site or app, scaled to the appropriate size to
- // display in the dialog box.
- GdkPixbuf* favicon_pixbuf_;
-
- // Dialog box that allows the user to create an application shortcut.
- GtkWidget* create_dialog_;
-
- // Dialog box that shows the error message.
- GtkWidget* error_dialog_;
-
- private:
- friend struct BrowserThread::DeleteOnThread<BrowserThread::UI>;
- friend class base::DeleteHelper<CreateApplicationShortcutsDialogGtk>;
- DISALLOW_COPY_AND_ASSIGN(CreateApplicationShortcutsDialogGtk);
-};
-
-class CreateWebApplicationShortcutsDialogGtk
- : public CreateApplicationShortcutsDialogGtk {
- public:
- // Displays the dialog box to create application shortcuts for |web_contents|.
- static void Show(GtkWindow* parent, content::WebContents* web_contents);
-
- CreateWebApplicationShortcutsDialogGtk(GtkWindow* parent,
- content::WebContents* web_contents);
-
- virtual void OnCreatedShortcut(void) OVERRIDE;
-
- protected:
- virtual ~CreateWebApplicationShortcutsDialogGtk() {}
-
- private:
- // WebContents for which the shortcut will be created.
- content::WebContents* web_contents_;
-
- DISALLOW_COPY_AND_ASSIGN(CreateWebApplicationShortcutsDialogGtk);
-};
-
-class CreateChromeApplicationShortcutsDialogGtk
- : public CreateApplicationShortcutsDialogGtk {
- public:
- CreateChromeApplicationShortcutsDialogGtk(
- GtkWindow* parent,
- Profile* profile,
- const extensions::Extension* app,
- const base::Closure& close_callback);
-
- protected:
- virtual ~CreateChromeApplicationShortcutsDialogGtk();
-
- virtual void CreateDesktopShortcut(
- const ShellIntegration::ShortcutInfo& shortcut_info,
- const ShellIntegration::ShortcutLocations& creation_locations) OVERRIDE;
-
- private:
- void OnShortcutInfoLoaded(
- const ShellIntegration::ShortcutInfo& shortcut_info);
-
- const extensions::Extension* app_;
- base::FilePath profile_path_;
- base::Closure close_callback_;
- DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutsDialogGtk);
-};
-
-#endif // CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_

Powered by Google App Engine
This is Rietveld 408576698