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

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

Issue 1565243002: Fixes bug where client area would not get set correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "ui/aura/client/focus_change_observer.h" 10 #include "ui/aura/client/focus_change_observer.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 return host_.get(); 84 return host_.get();
85 } 85 }
86 86
87 // Ensures that the correct window is activated/deactivated based on whether 87 // Ensures that the correct window is activated/deactivated based on whether
88 // we are being activated/deactivated. 88 // we are being activated/deactivated.
89 void HandleActivationChanged(bool active); 89 void HandleActivationChanged(bool active);
90 90
91 protected: 91 protected:
92 // Overridden from internal::NativeWidgetPrivate: 92 // Overridden from internal::NativeWidgetPrivate:
93 void InitNativeWidget(const Widget::InitParams& params) override; 93 void InitNativeWidget(const Widget::InitParams& params) override;
94 void OnWidgetInitDone() override;
94 NonClientFrameView* CreateNonClientFrameView() override; 95 NonClientFrameView* CreateNonClientFrameView() override;
95 bool ShouldUseNativeFrame() const override; 96 bool ShouldUseNativeFrame() const override;
96 bool ShouldWindowContentsBeTransparent() const override; 97 bool ShouldWindowContentsBeTransparent() const override;
97 void FrameTypeChanged() override; 98 void FrameTypeChanged() override;
98 Widget* GetWidget() override; 99 Widget* GetWidget() override;
99 const Widget* GetWidget() const override; 100 const Widget* GetWidget() const override;
100 gfx::NativeView GetNativeView() const override; 101 gfx::NativeView GetNativeView() const override;
101 gfx::NativeWindow GetNativeWindow() const override; 102 gfx::NativeWindow GetNativeWindow() const override;
102 Widget* GetTopLevelWidget() override; 103 Widget* GetTopLevelWidget() override;
103 const ui::Compositor* GetCompositor() const override; 104 const ui::Compositor* GetCompositor() const override;
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // The following factory is used for calls to close the NativeWidgetAura 302 // The following factory is used for calls to close the NativeWidgetAura
302 // instance. 303 // instance.
303 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; 304 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_;
304 305
305 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 306 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
306 }; 307 };
307 308
308 } // namespace views 309 } // namespace views
309 310
310 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 311 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/widget/android/native_widget_android.cc ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698