Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_NATIVE_WIDGET_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
| 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 6 #define UI_VIEWS_WIDGET_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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 // associate |native_widget| with |window|. | 50 // associate |native_widget| with |window|. |
| 51 static void RegisterNativeWidgetForWindow( | 51 static void RegisterNativeWidgetForWindow( |
| 52 internal::NativeWidgetPrivate* native_widget, | 52 internal::NativeWidgetPrivate* native_widget, |
| 53 aura::Window* window); | 53 aura::Window* window); |
| 54 | 54 |
| 55 // Assign an icon to aura window. | 55 // Assign an icon to aura window. |
| 56 static void AssignIconToAuraWindow(aura::Window* window, | 56 static void AssignIconToAuraWindow(aura::Window* window, |
| 57 const gfx::ImageSkia& window_icon, | 57 const gfx::ImageSkia& window_icon, |
| 58 const gfx::ImageSkia& app_icon); | 58 const gfx::ImageSkia& app_icon); |
| 59 | 59 |
| 60 // If necessary sets the ShadowElevation of |window| from |params|. | |
|
msw
2017/02/15 01:37:29
optional nit: comma after necessary
sky
2017/02/15 03:58:25
Done.
| |
| 61 static void SetShadowElevationFromInitParams( | |
|
msw
2017/02/15 01:37:29
Could this just be part of InitNativeWidget? (why
sky
2017/02/15 03:58:25
It's not necessarily for NativeWidgetMac. I think
| |
| 62 aura::Window* window, | |
| 63 const Widget::InitParams& params); | |
| 64 | |
| 60 // Overridden from internal::NativeWidgetPrivate: | 65 // Overridden from internal::NativeWidgetPrivate: |
| 61 void InitNativeWidget(const Widget::InitParams& params) override; | 66 void InitNativeWidget(const Widget::InitParams& params) override; |
| 62 void OnWidgetInitDone() override; | 67 void OnWidgetInitDone() override; |
| 63 NonClientFrameView* CreateNonClientFrameView() override; | 68 NonClientFrameView* CreateNonClientFrameView() override; |
| 64 bool ShouldUseNativeFrame() const override; | 69 bool ShouldUseNativeFrame() const override; |
| 65 bool ShouldWindowContentsBeTransparent() const override; | 70 bool ShouldWindowContentsBeTransparent() const override; |
| 66 void FrameTypeChanged() override; | 71 void FrameTypeChanged() override; |
| 67 Widget* GetWidget() override; | 72 Widget* GetWidget() override; |
| 68 const Widget* GetWidget() const override; | 73 const Widget* GetWidget() const override; |
| 69 gfx::NativeView GetNativeView() const override; | 74 gfx::NativeView GetNativeView() const override; |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 236 // The following factory is used for calls to close the NativeWidgetAura | 241 // The following factory is used for calls to close the NativeWidgetAura |
| 237 // instance. | 242 // instance. |
| 238 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; | 243 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; |
| 239 | 244 |
| 240 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 245 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
| 241 }; | 246 }; |
| 242 | 247 |
| 243 } // namespace views | 248 } // namespace views |
| 244 | 249 |
| 245 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 250 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
| OLD | NEW |