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

Unified Diff: chrome/browser/ui/gtk/extensions/shell_window_gtk.h

Issue 8985008: Don't use browser windows for platform app shell windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable platform app tests on non-GTK platforms. Created 8 years, 11 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
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/extensions/shell_window_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/extensions/shell_window_gtk.h
diff --git a/chrome/browser/ui/gtk/extensions/shell_window_gtk.h b/chrome/browser/ui/gtk/extensions/shell_window_gtk.h
new file mode 100644
index 0000000000000000000000000000000000000000..5c4ebb0c6842886e80d60e822b494dcdc028cc6e
--- /dev/null
+++ b/chrome/browser/ui/gtk/extensions/shell_window_gtk.h
@@ -0,0 +1,36 @@
+// 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_EXTENSIONS_SHELL_WINDOW_GTK_H_
+#define CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_
+#pragma once
+
+#include <gtk/gtk.h>
+
+#include "chrome/browser/ui/extensions/shell_window.h"
+#include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h"
+#include "ui/base/gtk/gtk_signal.h"
+
+class ExtensionHost;
+
+class ShellWindowGtk : public ShellWindow,
+ public ExtensionViewGtk::Container {
+ public:
+ explicit ShellWindowGtk(ExtensionHost* host);
+
+ // ShellWindow implementation.
+ virtual void Close() OVERRIDE;
+
+ private:
+ virtual ~ShellWindowGtk();
+
+ CHROMEGTK_CALLBACK_1(ShellWindowGtk, gboolean, OnMainWindowDeleteEvent,
+ GdkEvent*);
+
+ GtkWindow* window_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk);
+};
+
+#endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/extensions/shell_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698