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

Side by Side Diff: views/widget/native_widget_aura.h

Issue 7744045: Show a Window in the aura views demo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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
« no previous file with comments | « views/views.gyp ('k') | views/widget/native_widget_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "aura/window_delegate.h" 9 #include "aura/window_delegate.h"
10 #include "views/widget/native_widget_private.h" 10 #include "views/widget/native_widget_private.h"
11 11
12 namespace gfx {
13 class Font;
14 }
15
12 namespace views { 16 namespace views {
13 17
14 class NativeWidgetAura : public internal::NativeWidgetPrivate, 18 class NativeWidgetAura : public internal::NativeWidgetPrivate,
15 public aura::WindowDelegate { 19 public aura::WindowDelegate {
16 public: 20 public:
17 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); 21 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate);
18 virtual ~NativeWidgetAura(); 22 virtual ~NativeWidgetAura();
19 23
24 // TODO(beng): Find a better place for this, and the similar method on
25 // NativeWidgetWin.
26 static gfx::Font GetWindowTitleFont();
27
20 // Overridden from internal::NativeWidgetPrivate: 28 // Overridden from internal::NativeWidgetPrivate:
21 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; 29 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE;
22 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; 30 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE;
23 virtual void UpdateFrameAfterFrameChange() OVERRIDE; 31 virtual void UpdateFrameAfterFrameChange() OVERRIDE;
24 virtual bool ShouldUseNativeFrame() const OVERRIDE; 32 virtual bool ShouldUseNativeFrame() const OVERRIDE;
25 virtual void FrameTypeChanged() OVERRIDE; 33 virtual void FrameTypeChanged() OVERRIDE;
26 virtual Widget* GetWidget() OVERRIDE; 34 virtual Widget* GetWidget() OVERRIDE;
27 virtual const Widget* GetWidget() const OVERRIDE; 35 virtual const Widget* GetWidget() const OVERRIDE;
28 virtual gfx::NativeView GetNativeView() const OVERRIDE; 36 virtual gfx::NativeView GetNativeView() const OVERRIDE;
29 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; 37 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 internal::NativeWidgetDelegate* delegate_; 114 internal::NativeWidgetDelegate* delegate_;
107 115
108 aura::Window* window_; 116 aura::Window* window_;
109 117
110 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 118 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
111 }; 119 };
112 120
113 } // namespace views 121 } // namespace views
114 122
115 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 123 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « views/views.gyp ('k') | views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698