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

Side by Side Diff: ui/views/widget/desktop_native_widget_helper_aura.h

Issue 10270002: Get the custom frame limping with win-aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « ui/views/views.gyp ('k') | ui/views/widget/desktop_native_widget_helper_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) 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 UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_HELPER_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_HELPER_AURA_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_HELPER_AURA_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_HELPER_AURA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/aura/root_window_observer.h" 9 #include "ui/aura/root_window_observer.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
11 #include "ui/views/views_export.h" 11 #include "ui/views/views_export.h"
12 #include "ui/views/widget/native_widget_helper_aura.h" 12 #include "ui/views/widget/native_widget_helper_aura.h"
13 #include "ui/views/widget/widget.h" 13 #include "ui/views/widget/widget.h"
14 14
15 namespace aura { 15 namespace aura {
16 class RootWindow; 16 class RootWindow;
17 } 17 }
18 18
19 namespace ui {
20 #if defined(OS_WIN)
21 class HWNDSubclass;
22 #endif
23 }
24
19 namespace views { 25 namespace views {
20 class NativeWidgetAura; 26 class NativeWidgetAura;
27 class WidgetMessageFilter;
21 28
22 // Implementation of non-Ash desktop integration code, allowing 29 // Implementation of non-Ash desktop integration code, allowing
23 // NativeWidgetAuras to work in a traditional desktop environment. 30 // NativeWidgetAuras to work in a traditional desktop environment.
24 class VIEWS_EXPORT DesktopNativeWidgetHelperAura 31 class VIEWS_EXPORT DesktopNativeWidgetHelperAura
25 : public NativeWidgetHelperAura, 32 : public NativeWidgetHelperAura,
26 public aura::RootWindowObserver { 33 public aura::RootWindowObserver {
27 public: 34 public:
28 explicit DesktopNativeWidgetHelperAura(NativeWidgetAura* widget); 35 explicit DesktopNativeWidgetHelperAura(NativeWidgetAura* widget);
29 virtual ~DesktopNativeWidgetHelperAura(); 36 virtual ~DesktopNativeWidgetHelperAura();
30 37
31 // Overridden from aura::NativeWidgetHelperAura: 38 // Overridden from aura::NativeWidgetHelperAura:
32 virtual void PreInitialize(const Widget::InitParams& params) OVERRIDE; 39 virtual void PreInitialize(const Widget::InitParams& params) OVERRIDE;
40 virtual void PostInitialize() OVERRIDE;
33 virtual void ShowRootWindow() OVERRIDE; 41 virtual void ShowRootWindow() OVERRIDE;
34 virtual aura::RootWindow* GetRootWindow() OVERRIDE; 42 virtual aura::RootWindow* GetRootWindow() OVERRIDE;
35 virtual gfx::Rect ModifyAndSetBounds(const gfx::Rect& bounds) OVERRIDE; 43 virtual gfx::Rect ModifyAndSetBounds(const gfx::Rect& bounds) OVERRIDE;
36 virtual gfx::Rect ChangeRootWindowBoundsToScreenBounds( 44 virtual gfx::Rect ChangeRootWindowBoundsToScreenBounds(
37 const gfx::Rect& bounds) OVERRIDE; 45 const gfx::Rect& bounds) OVERRIDE;
38 46
39 // Overridden from aura::RootWindowObserver: 47 // Overridden from aura::RootWindowObserver:
40 virtual void OnRootWindowResized(const aura::RootWindow* root, 48 virtual void OnRootWindowResized(const aura::RootWindow* root,
41 const gfx::Size& old_size) OVERRIDE; 49 const gfx::Size& old_size) OVERRIDE;
42 virtual void OnRootWindowHostClosed(const aura::RootWindow* root) OVERRIDE; 50 virtual void OnRootWindowHostClosed(const aura::RootWindow* root) OVERRIDE;
43 51
44 private: 52 private:
45 // A weak pointer back to our owning widget. 53 // A weak pointer back to our owning widget.
46 NativeWidgetAura* widget_; 54 NativeWidgetAura* widget_;
47 55
48 // Optionally, a RootWindow that we attach ourselves to. 56 // Optionally, a RootWindow that we attach ourselves to.
49 scoped_ptr<aura::RootWindow> root_window_; 57 scoped_ptr<aura::RootWindow> root_window_;
50 58
59 #if defined(OS_WIN)
60 scoped_ptr<ui::HWNDSubclass> subclass_;
61 #endif
62
51 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetHelperAura); 63 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetHelperAura);
52 }; 64 };
53 65
54 } // namespace views 66 } // namespace views
55 67
56 #endif // UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_HELPER_AURA_H_ 68 #endif // UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_HELPER_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/desktop_native_widget_helper_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698