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

Side by Side Diff: chrome/browser/ui/views/extensions/shell_window_views.h

Issue 9254046: Custom frame UI for platform apps on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots Created 8 years, 10 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 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/extensions/shell_window.h" 9 #include "chrome/browser/ui/extensions/shell_window.h"
10 #include "chrome/browser/ui/views/extensions/extension_view.h" 10 #include "chrome/browser/ui/views/extensions/extension_view.h"
11 #include "ui/views/widget/widget_delegate.h" 11 #include "ui/views/widget/widget_delegate.h"
12 12
13 class ExtensionHost; 13 class ExtensionHost;
14 14
15 class ShellWindowViews : public ShellWindow, 15 class ShellWindowViews : public ShellWindow,
16 public ExtensionView::Container, 16 public ExtensionView::Container,
17 public views::WidgetDelegate { 17 public views::WidgetDelegate {
18 public: 18 public:
19 explicit ShellWindowViews(ExtensionHost* host); 19 explicit ShellWindowViews(ExtensionHost* host);
20 20
21 // ShellWindow implementation. 21 // ShellWindow implementation.
22 virtual void Close() OVERRIDE; 22 virtual void Close() OVERRIDE;
23 23
24 // WidgetDelegate implementation. 24 // WidgetDelegate implementation.
25 virtual views::View* GetContentsView() OVERRIDE; 25 virtual views::View* GetContentsView() OVERRIDE;
26 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE;
26 virtual bool CanResize() const OVERRIDE; 27 virtual bool CanResize() const OVERRIDE;
27 virtual views::Widget* GetWidget() OVERRIDE; 28 virtual views::Widget* GetWidget() OVERRIDE;
28 virtual const views::Widget* GetWidget() const OVERRIDE; 29 virtual const views::Widget* GetWidget() const OVERRIDE;
29 virtual string16 GetWindowTitle() const OVERRIDE; 30 virtual string16 GetWindowTitle() const OVERRIDE;
30 virtual void DeleteDelegate() OVERRIDE; 31 virtual void DeleteDelegate() OVERRIDE;
31 32
33 // ExtensionView::Container implementation.
34 virtual void OnViewWasResized() OVERRIDE;
35
32 private: 36 private:
33 virtual ~ShellWindowViews(); 37 virtual ~ShellWindowViews();
34 38
35 views::Widget* window_; 39 views::Widget* window_;
36 40
37 DISALLOW_COPY_AND_ASSIGN(ShellWindowViews); 41 DISALLOW_COPY_AND_ASSIGN(ShellWindowViews);
38 }; 42 };
39 43
40 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ 44 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698