| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MUS_NATIVE_WIDGET_MUS_H_ | 5 #ifndef UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
| 6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 void OnPlatformWindowClosed(); | 77 void OnPlatformWindowClosed(); |
| 78 void OnActivationChanged(bool active); | 78 void OnActivationChanged(bool active); |
| 79 | 79 |
| 80 protected: | 80 protected: |
| 81 // Updates the client area in the mus::Window. | 81 // Updates the client area in the mus::Window. |
| 82 virtual void UpdateClientArea(); | 82 virtual void UpdateClientArea(); |
| 83 | 83 |
| 84 // internal::NativeWidgetPrivate: | 84 // internal::NativeWidgetPrivate: |
| 85 NonClientFrameView* CreateNonClientFrameView() override; | 85 NonClientFrameView* CreateNonClientFrameView() override; |
| 86 void InitNativeWidget(const Widget::InitParams& params) override; | 86 void InitNativeWidget(const Widget::InitParams& params) override; |
| 87 void OnWidgetInitDone() override; |
| 87 bool ShouldUseNativeFrame() const override; | 88 bool ShouldUseNativeFrame() const override; |
| 88 bool ShouldWindowContentsBeTransparent() const override; | 89 bool ShouldWindowContentsBeTransparent() const override; |
| 89 void FrameTypeChanged() override; | 90 void FrameTypeChanged() override; |
| 90 Widget* GetWidget() override; | 91 Widget* GetWidget() override; |
| 91 const Widget* GetWidget() const override; | 92 const Widget* GetWidget() const override; |
| 92 gfx::NativeView GetNativeView() const override; | 93 gfx::NativeView GetNativeView() const override; |
| 93 gfx::NativeWindow GetNativeWindow() const override; | 94 gfx::NativeWindow GetNativeWindow() const override; |
| 94 Widget* GetTopLevelWidget() override; | 95 Widget* GetTopLevelWidget() override; |
| 95 const ui::Compositor* GetCompositor() const override; | 96 const ui::Compositor* GetCompositor() const override; |
| 96 const ui::Layer* GetLayer() const override; | 97 const ui::Layer* GetLayer() const override; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; | 218 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; |
| 218 scoped_ptr<aura::client::WindowTreeClient> window_tree_client_; | 219 scoped_ptr<aura::client::WindowTreeClient> window_tree_client_; |
| 219 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; | 220 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; |
| 220 | 221 |
| 221 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); | 222 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); |
| 222 }; | 223 }; |
| 223 | 224 |
| 224 } // namespace views | 225 } // namespace views |
| 225 | 226 |
| 226 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 227 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
| OLD | NEW |