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

Side by Side Diff: components/mus/ws/window_tree_host_impl.h

Issue 1414943003: Moves move logic into WM instead of WS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 5 years, 1 month 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 | « components/mus/ws/server_window.cc ('k') | components/mus/ws/window_tree_host_impl.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 COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "components/mus/public/cpp/types.h" 10 #include "components/mus/public/cpp/types.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void UpdateTextInputState(ServerWindow* window, 80 void UpdateTextInputState(ServerWindow* window,
81 const ui::TextInputState& state); 81 const ui::TextInputState& state);
82 void SetImeVisibility(ServerWindow* window, bool visible); 82 void SetImeVisibility(ServerWindow* window, bool visible);
83 83
84 // WindowTreeHost: 84 // WindowTreeHost:
85 void SetSize(mojo::SizePtr size) override; 85 void SetSize(mojo::SizePtr size) override;
86 void SetTitle(const mojo::String& title) override; 86 void SetTitle(const mojo::String& title) override;
87 void AddAccelerator(uint32_t id, 87 void AddAccelerator(uint32_t id,
88 mojo::EventMatcherPtr event_matcher) override; 88 mojo::EventMatcherPtr event_matcher) override;
89 void RemoveAccelerator(uint32_t id) override; 89 void RemoveAccelerator(uint32_t id) override;
90 void EnableWindowDraggingForChildren(Id transport_window_id) override;
91 90
92 private: 91 private:
93 void OnClientClosed(); 92 void OnClientClosed();
94 93
95 // DisplayManagerDelegate: 94 // DisplayManagerDelegate:
96 ServerWindow* GetRootWindow() override; 95 ServerWindow* GetRootWindow() override;
97 void OnEvent(mojo::EventPtr event) override; 96 void OnEvent(mojo::EventPtr event) override;
98 void OnDisplayClosed() override; 97 void OnDisplayClosed() override;
99 void OnViewportMetricsChanged( 98 void OnViewportMetricsChanged(
100 const mojom::ViewportMetrics& old_metrics, 99 const mojom::ViewportMetrics& old_metrics,
101 const mojom::ViewportMetrics& new_metrics) override; 100 const mojom::ViewportMetrics& new_metrics) override;
102 void OnTopLevelSurfaceChanged(cc::SurfaceId surface_id) override; 101 void OnTopLevelSurfaceChanged(cc::SurfaceId surface_id) override;
103 102
104 // FocusControllerDelegate: 103 // FocusControllerDelegate:
105 void OnFocusChanged(ServerWindow* old_focused_window, 104 void OnFocusChanged(ServerWindow* old_focused_window,
106 ServerWindow* new_focused_window) override; 105 ServerWindow* new_focused_window) override;
107 106
108 // EventDispatcherDelegate: 107 // EventDispatcherDelegate:
109 void OnAccelerator(uint32_t accelerator_id, mojo::EventPtr event) override; 108 void OnAccelerator(uint32_t accelerator_id, mojo::EventPtr event) override;
110 void SetFocusedWindowFromEventDispatcher(ServerWindow* window) override; 109 void SetFocusedWindowFromEventDispatcher(ServerWindow* window) override;
111 ServerWindow* GetFocusedWindowForEventDispatcher() override; 110 ServerWindow* GetFocusedWindowForEventDispatcher() override;
112 void DispatchInputEventToWindow(ServerWindow* target, 111 void DispatchInputEventToWindow(ServerWindow* target,
112 bool in_nonclient_area,
113 mojo::EventPtr event) override; 113 mojo::EventPtr event) override;
114 114
115 WindowTreeHostDelegate* delegate_; 115 WindowTreeHostDelegate* delegate_;
116 ConnectionManager* const connection_manager_; 116 ConnectionManager* const connection_manager_;
117 mojom::WindowTreeHostClientPtr client_; 117 mojom::WindowTreeHostClientPtr client_;
118 EventDispatcher event_dispatcher_; 118 EventDispatcher event_dispatcher_;
119 scoped_ptr<ServerWindow> root_; 119 scoped_ptr<ServerWindow> root_;
120 scoped_ptr<DisplayManager> display_manager_; 120 scoped_ptr<DisplayManager> display_manager_;
121 scoped_ptr<FocusController> focus_controller_; 121 scoped_ptr<FocusController> focus_controller_;
122 mojom::WindowManagerPtr window_manager_; 122 mojom::WindowManagerPtr window_manager_;
123 123
124 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl); 124 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl);
125 }; 125 };
126 126
127 } // namespace ws 127 } // namespace ws
128 } // namespace mus 128 } // namespace mus
129 129
130 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ 130 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « components/mus/ws/server_window.cc ('k') | components/mus/ws/window_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698