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

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

Issue 2655513002: mash: Relay some Chrome aura window properties to Ash. (Closed)
Patch Set: Address comments. Created 3 years, 10 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_WINDOW_TREE_HOST_MUS_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "ui/aura/env_observer.h" 12 #include "ui/aura/env_observer.h"
13 #include "ui/aura/mus/window_tree_host_mus.h" 13 #include "ui/aura/mus/window_tree_host_mus.h"
14 #include "ui/aura/window_observer.h"
14 #include "ui/views/mus/mus_client_observer.h" 15 #include "ui/views/mus/mus_client_observer.h"
15 #include "ui/views/mus/mus_export.h" 16 #include "ui/views/mus/mus_export.h"
16 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h" 17 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h"
17 #include "ui/views/widget/widget.h" 18 #include "ui/views/widget/widget.h"
18 #include "ui/views/widget/widget_observer.h" 19 #include "ui/views/widget/widget_observer.h"
19 20
20 namespace wm { 21 namespace wm {
21 class CursorManager; 22 class CursorManager;
22 } 23 }
23 24
24 namespace views { 25 namespace views {
25 26
26 class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus 27 class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
27 : public DesktopWindowTreeHost, 28 : public DesktopWindowTreeHost,
28 public MusClientObserver, 29 public MusClientObserver,
29 public WidgetObserver, 30 public WidgetObserver,
31 public aura::WindowObserver,
30 public aura::WindowTreeHostMus, 32 public aura::WindowTreeHostMus,
31 public aura::EnvObserver { 33 public aura::EnvObserver {
32 public: 34 public:
33 DesktopWindowTreeHostMus( 35 DesktopWindowTreeHostMus(
34 internal::NativeWidgetDelegate* native_widget_delegate, 36 internal::NativeWidgetDelegate* native_widget_delegate,
35 DesktopNativeWidgetAura* desktop_native_widget_aura, 37 DesktopNativeWidgetAura* desktop_native_widget_aura,
36 const std::map<std::string, std::vector<uint8_t>>* mus_properties); 38 const std::map<std::string, std::vector<uint8_t>>* mus_properties);
37 ~DesktopWindowTreeHostMus() override; 39 ~DesktopWindowTreeHostMus() override;
38 40
39 // Called when the window was deleted on the server. 41 // Called when the window was deleted on the server.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void SizeConstraintsChanged() override; 124 void SizeConstraintsChanged() override;
123 bool ShouldUpdateWindowTransparency() const override; 125 bool ShouldUpdateWindowTransparency() const override;
124 bool ShouldUseDesktopNativeCursorManager() const override; 126 bool ShouldUseDesktopNativeCursorManager() const override;
125 127
126 // MusClientObserver: 128 // MusClientObserver:
127 void OnWindowManagerFrameValuesChanged() override; 129 void OnWindowManagerFrameValuesChanged() override;
128 130
129 // WidgetObserver: 131 // WidgetObserver:
130 void OnWidgetActivationChanged(Widget* widget, bool active) override; 132 void OnWidgetActivationChanged(Widget* widget, bool active) override;
131 133
132 // WindowTreeHostMus: 134 // aura::WindowObserver:
135 void OnWindowPropertyChanged(aura::Window* window,
136 const void* key,
137 intptr_t old) override;
138
139 // aura::WindowTreeHostMus:
133 void ShowImpl() override; 140 void ShowImpl() override;
134 void HideImpl() override; 141 void HideImpl() override;
135 void SetBoundsInPixels(const gfx::Rect& bounds_in_pixels) override; 142 void SetBoundsInPixels(const gfx::Rect& bounds_in_pixels) override;
136 143
137 // aura::EnvObserver: 144 // aura::EnvObserver:
138 void OnWindowInitialized(aura::Window* window) override; 145 void OnWindowInitialized(aura::Window* window) override;
139 void OnActiveFocusClientChanged(aura::client::FocusClient* focus_client, 146 void OnActiveFocusClientChanged(aura::client::FocusClient* focus_client,
140 aura::Window* window) override; 147 aura::Window* window) override;
141 148
142 internal::NativeWidgetDelegate* native_widget_delegate_; 149 internal::NativeWidgetDelegate* native_widget_delegate_;
(...skipping 13 matching lines...) Expand all
156 163
157 // Used so that Close() isn't immediate. 164 // Used so that Close() isn't immediate.
158 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; 165 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_;
159 166
160 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); 167 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus);
161 }; 168 };
162 169
163 } // namespace views 170 } // namespace views
164 171
165 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ 172 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698