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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.h

Issue 2488393003: Changes views_aura_mus_unittests to create DesktopNativeWidgetAura (Closed)
Patch Set: git add Created 4 years, 1 month 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
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_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 return host_.get(); 90 return host_.get();
91 } 91 }
92 92
93 aura::Window* content_window() { return content_window_; } 93 aura::Window* content_window() { return content_window_; }
94 94
95 // Ensures that the correct window is activated/deactivated based on whether 95 // Ensures that the correct window is activated/deactivated based on whether
96 // we are being activated/deactivated. 96 // we are being activated/deactivated.
97 void HandleActivationChanged(bool active); 97 void HandleActivationChanged(bool active);
98 98
99 protected: 99 protected:
100 internal::NativeWidgetDelegate* delegate() { return native_widget_delegate_; }
msw 2016/11/11 00:29:24 Can the caller(s) for this just use DesktopNativeW
sky 2016/11/11 01:09:14 done.
101
100 // Overridden from internal::NativeWidgetPrivate: 102 // Overridden from internal::NativeWidgetPrivate:
101 void InitNativeWidget(const Widget::InitParams& params) override; 103 void InitNativeWidget(const Widget::InitParams& params) override;
102 void OnWidgetInitDone() override; 104 void OnWidgetInitDone() override;
103 NonClientFrameView* CreateNonClientFrameView() override; 105 NonClientFrameView* CreateNonClientFrameView() override;
104 bool ShouldUseNativeFrame() const override; 106 bool ShouldUseNativeFrame() const override;
105 bool ShouldWindowContentsBeTransparent() const override; 107 bool ShouldWindowContentsBeTransparent() const override;
106 void FrameTypeChanged() override; 108 void FrameTypeChanged() override;
107 Widget* GetWidget() override; 109 Widget* GetWidget() override;
108 const Widget* GetWidget() const override; 110 const Widget* GetWidget() const override;
109 gfx::NativeView GetNativeView() const override; 111 gfx::NativeView GetNativeView() const override;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 // The following factory is used for calls to close the NativeWidgetAura 312 // The following factory is used for calls to close the NativeWidgetAura
311 // instance. 313 // instance.
312 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; 314 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_;
313 315
314 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 316 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
315 }; 317 };
316 318
317 } // namespace views 319 } // namespace views
318 320
319 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 321 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698