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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // (content_) and attach it to the root. | 71 // (content_) and attach it to the root. |
72 class VIEWS_MUS_EXPORT NativeWidgetMus | 72 class VIEWS_MUS_EXPORT NativeWidgetMus |
73 : public internal::NativeWidgetPrivate, | 73 : public internal::NativeWidgetPrivate, |
74 public aura::WindowDelegate, | 74 public aura::WindowDelegate, |
75 public aura::WindowTreeHostObserver, | 75 public aura::WindowTreeHostObserver, |
76 public NON_EXPORTED_BASE(ui::InputEventHandler) { | 76 public NON_EXPORTED_BASE(ui::InputEventHandler) { |
77 public: | 77 public: |
78 NativeWidgetMus(internal::NativeWidgetDelegate* delegate, | 78 NativeWidgetMus(internal::NativeWidgetDelegate* delegate, |
79 shell::Connector* connector, | 79 shell::Connector* connector, |
80 ui::Window* window, | 80 ui::Window* window, |
81 ui::mojom::SurfaceType surface_type); | 81 ui::mojom::SurfaceType surface_type, |
| 82 bool accept_events = true); |
82 ~NativeWidgetMus() override; | 83 ~NativeWidgetMus() override; |
83 | 84 |
84 // Configures the set of properties supplied to the window manager when | 85 // Configures the set of properties supplied to the window manager when |
85 // creating a new Window for a Widget. | 86 // creating a new Window for a Widget. |
86 static void ConfigurePropertiesForNewWindow( | 87 static void ConfigurePropertiesForNewWindow( |
87 const Widget::InitParams& init_params, | 88 const Widget::InitParams& init_params, |
88 std::map<std::string, std::vector<uint8_t>>* properties); | 89 std::map<std::string, std::vector<uint8_t>>* properties); |
89 | 90 |
90 // Notifies all widgets the frame constants changed in some way. | 91 // Notifies all widgets the frame constants changed in some way. |
91 static void NotifyFrameChanged(ui::WindowTreeClient* client); | 92 static void NotifyFrameChanged(ui::WindowTreeClient* client); |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 std::unique_ptr<ui::ViewProp> prop_; | 280 std::unique_ptr<ui::ViewProp> prop_; |
280 | 281 |
281 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; | 282 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; |
282 | 283 |
283 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); | 284 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); |
284 }; | 285 }; |
285 | 286 |
286 } // namespace views | 287 } // namespace views |
287 | 288 |
288 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 289 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
OLD | NEW |