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

Side by Side Diff: ui/views/mus/native_widget_mus.h

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 2 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
« no previous file with comments | « ui/compositor/test/in_process_context_factory.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 ui::mojom::SurfaceType surface_type() const { return surface_type_; } 88 ui::mojom::SurfaceType surface_type() const { return surface_type_; }
89 ui::Window* window() { return window_; } 89 ui::Window* window() { return window_; }
90 WindowTreeHostMus* window_tree_host() { return window_tree_host_.get(); } 90 WindowTreeHostMus* window_tree_host() { return window_tree_host_.get(); }
91 91
92 aura::Window* GetRootWindow(); 92 aura::Window* GetRootWindow();
93 93
94 void OnPlatformWindowClosed(); 94 void OnPlatformWindowClosed();
95 void OnActivationChanged(bool active); 95 void OnActivationChanged(bool active);
96 96
97 protected: 97 public:
98 // Updates the client area in the ui::Window. 98 // Updates the client area in the ui::Window.
99 virtual void UpdateClientArea(); 99 virtual void UpdateClientArea();
100 100
101 // internal::NativeWidgetPrivate: 101 // internal::NativeWidgetPrivate:
102 NonClientFrameView* CreateNonClientFrameView() override; 102 NonClientFrameView* CreateNonClientFrameView() override;
103 void InitNativeWidget(const Widget::InitParams& params) override; 103 void InitNativeWidget(const Widget::InitParams& params) override;
104 void OnWidgetInitDone() override; 104 void OnWidgetInitDone() override;
105 bool ShouldUseNativeFrame() const override; 105 bool ShouldUseNativeFrame() const override;
106 bool ShouldWindowContentsBeTransparent() const override; 106 bool ShouldWindowContentsBeTransparent() const override;
107 void FrameTypeChanged() override; 107 void FrameTypeChanged() override;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 std::unique_ptr<wm::CursorManager> cursor_manager_; 282 std::unique_ptr<wm::CursorManager> cursor_manager_;
283 283
284 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; 284 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_;
285 285
286 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); 286 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus);
287 }; 287 };
288 288
289 } // namespace views 289 } // namespace views
290 290
291 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ 291 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_
OLDNEW
« no previous file with comments | « ui/compositor/test/in_process_context_factory.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698