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_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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 | 93 |
| 94 Widget::InitParams::Type widget_type() const { return widget_type_; } | 94 Widget::InitParams::Type widget_type() const { return widget_type_; } |
| 95 | 95 |
| 96 // Ensures that the correct window is activated/deactivated based on whether | 96 // Ensures that the correct window is activated/deactivated based on whether |
| 97 // we are being activated/deactivated. | 97 // we are being activated/deactivated. |
| 98 void HandleActivationChanged(bool active); | 98 void HandleActivationChanged(bool active); |
| 99 | 99 |
| 100 // Overridden from internal::NativeWidgetPrivate: | 100 // Overridden from internal::NativeWidgetPrivate: |
| 101 gfx::NativeWindow GetNativeWindow() const override; | 101 gfx::NativeWindow GetNativeWindow() const override; |
| 102 | 102 |
| 103 // Overridden from internal::NativeWidgetPrivate: | |
|
Evan Stade
2017/05/09 15:43:26
nit: there's already a block for NativeWidgetPriva
Tom (Use chromium acct)
2017/05/09 16:37:41
Done.
| |
| 104 void SetNativeWindowProperty(const char* name, void* value) override; | |
| 105 | |
| 103 protected: | 106 protected: |
| 104 // Overridden from internal::NativeWidgetPrivate: | 107 // Overridden from internal::NativeWidgetPrivate: |
| 105 void InitNativeWidget(const Widget::InitParams& params) override; | 108 void InitNativeWidget(const Widget::InitParams& params) override; |
| 106 void OnWidgetInitDone() override; | 109 void OnWidgetInitDone() override; |
| 107 NonClientFrameView* CreateNonClientFrameView() override; | 110 NonClientFrameView* CreateNonClientFrameView() override; |
| 108 bool ShouldUseNativeFrame() const override; | 111 bool ShouldUseNativeFrame() const override; |
| 109 bool ShouldWindowContentsBeTransparent() const override; | 112 bool ShouldWindowContentsBeTransparent() const override; |
| 110 void FrameTypeChanged() override; | 113 void FrameTypeChanged() override; |
| 111 Widget* GetWidget() override; | 114 Widget* GetWidget() override; |
| 112 const Widget* GetWidget() const override; | 115 const Widget* GetWidget() const override; |
| 113 gfx::NativeView GetNativeView() const override; | 116 gfx::NativeView GetNativeView() const override; |
| 114 Widget* GetTopLevelWidget() override; | 117 Widget* GetTopLevelWidget() override; |
| 115 const ui::Compositor* GetCompositor() const override; | 118 const ui::Compositor* GetCompositor() const override; |
| 116 const ui::Layer* GetLayer() const override; | 119 const ui::Layer* GetLayer() const override; |
| 117 void ReorderNativeViews() override; | 120 void ReorderNativeViews() override; |
| 118 void ViewRemoved(View* view) override; | 121 void ViewRemoved(View* view) override; |
| 119 void SetNativeWindowProperty(const char* name, void* value) override; | |
| 120 void* GetNativeWindowProperty(const char* name) const override; | 122 void* GetNativeWindowProperty(const char* name) const override; |
| 121 TooltipManager* GetTooltipManager() const override; | 123 TooltipManager* GetTooltipManager() const override; |
| 122 void SetCapture() override; | 124 void SetCapture() override; |
| 123 void ReleaseCapture() override; | 125 void ReleaseCapture() override; |
| 124 bool HasCapture() const override; | 126 bool HasCapture() const override; |
| 125 ui::InputMethod* GetInputMethod() override; | 127 ui::InputMethod* GetInputMethod() override; |
| 126 void CenterWindow(const gfx::Size& size) override; | 128 void CenterWindow(const gfx::Size& size) override; |
| 127 void GetWindowPlacement(gfx::Rect* bounds, | 129 void GetWindowPlacement(gfx::Rect* bounds, |
| 128 ui::WindowShowState* maximized) const override; | 130 ui::WindowShowState* maximized) const override; |
| 129 bool SetWindowTitle(const base::string16& title) override; | 131 bool SetWindowTitle(const base::string16& title) override; |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 312 // The following factory is used for calls to close the NativeWidgetAura | 314 // The following factory is used for calls to close the NativeWidgetAura |
| 313 // instance. | 315 // instance. |
| 314 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; | 316 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; |
| 315 | 317 |
| 316 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); | 318 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); |
| 317 }; | 319 }; |
| 318 | 320 |
| 319 } // namespace views | 321 } // namespace views |
| 320 | 322 |
| 321 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 323 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
| OLD | NEW |