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

Unified Diff: chrome/browser/ui/views/extensions/shell_window_views.h

Issue 9030017: Implement ShellWindow in Views. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 12 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/views/extensions/shell_window_views.h
diff --git a/chrome/browser/ui/views/extensions/shell_window_views.h b/chrome/browser/ui/views/extensions/shell_window_views.h
new file mode 100755
index 0000000000000000000000000000000000000000..6c4445e1cab6d4ebdf8037ecae230bc994c94525
--- /dev/null
+++ b/chrome/browser/ui/views/extensions/shell_window_views.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2011 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_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_
+#define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_
+#pragma once
+
+#include "chrome/browser/ui/extensions/shell_window.h"
+#include "chrome/browser/ui/views/extensions/extension_view.h"
+#include "ui/views/widget/widget_delegate.h"
+
+class ExtensionHost;
+
+class ShellWindowViews : public ShellWindow,
+ public ExtensionView::Container,
+ public views::WidgetDelegate {
+ public:
+ explicit ShellWindowViews(ExtensionHost* host);
+
+ // ShellWindow implementation.
+ virtual void Close() OVERRIDE;
+
+ // WidgetDelegate implementation.
+ views::View* GetContentsView() OVERRIDE;
+ views::Widget* GetWidget() OVERRIDE;
+ const views::Widget* GetWidget() const OVERRIDE;
+
+ private:
+ virtual ~ShellWindowViews();
+
+// CHROMEGTK_CALLBACK_1(ShellWindowGtk, gboolean, OnMainWindowDeleteEvent,
+// GdkEvent*);
+
+ views::Widget* window_;
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_

Powered by Google App Engine
This is Rietveld 408576698