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

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: comments 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
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 100644
index 0000000000000000000000000000000000000000..e1226b1520a1fa79f09b0d34b67e8f23ab1c9749
--- /dev/null
+++ b/chrome/browser/ui/views/extensions/shell_window_views.h
@@ -0,0 +1,40 @@
+// 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_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.
+ virtual views::View* GetContentsView() OVERRIDE;
+ virtual bool CanResize() const OVERRIDE;
+ virtual views::Widget* GetWidget() OVERRIDE;
+ virtual const views::Widget* GetWidget() const OVERRIDE;
+ virtual string16 GetWindowTitle() const OVERRIDE;
+ virtual void DeleteDelegate() OVERRIDE;
+
+ private:
+ virtual ~ShellWindowViews();
+
+ views::Widget* window_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShellWindowViews);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_
« no previous file with comments | « chrome/browser/ui/extensions/shell_window.cc ('k') | chrome/browser/ui/views/extensions/shell_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698