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

Side by Side Diff: components/mus/public/cpp/lib/window_tree_client_impl.h

Issue 1352043005: mus: Implement Window Server Capture Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added capture unit tests 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
7 7
8 #include "base/containers/scoped_ptr_map.h" 8 #include "base/containers/scoped_ptr_map.h"
9 #include "components/mus/common/types.h" 9 #include "components/mus/common/types.h"
10 #include "components/mus/public/cpp/window.h" 10 #include "components/mus/public/cpp/window.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void Reorder(Id window_id, 56 void Reorder(Id window_id,
57 Id relative_window_id, 57 Id relative_window_id,
58 mojom::OrderDirection direction); 58 mojom::OrderDirection direction);
59 59
60 // Returns true if the specified window was created by this connection. 60 // Returns true if the specified window was created by this connection.
61 bool OwnsWindow(Id id) const; 61 bool OwnsWindow(Id id) const;
62 62
63 void SetBounds(Window* window, 63 void SetBounds(Window* window,
64 const gfx::Rect& old_bounds, 64 const gfx::Rect& old_bounds,
65 const gfx::Rect& bounds); 65 const gfx::Rect& bounds);
66 void SetCapture(Window* window);
67 void ReleaseCapture(Window* window);
66 void SetClientArea(Id window_id, const gfx::Insets& client_area); 68 void SetClientArea(Id window_id, const gfx::Insets& client_area);
67 void SetFocus(Id window_id); 69 void SetFocus(Id window_id);
68 void SetVisible(Id window_id, bool visible); 70 void SetVisible(Id window_id, bool visible);
69 void SetProperty(Window* window, 71 void SetProperty(Window* window,
70 const std::string& name, 72 const std::string& name,
71 mojo::Array<uint8_t> data); 73 mojo::Array<uint8_t> data);
72 void SetWindowTextInputState(Id window_id, mojo::TextInputStatePtr state); 74 void SetWindowTextInputState(Id window_id, mojo::TextInputStatePtr state);
73 void SetImeVisibility(Id window_id, 75 void SetImeVisibility(Id window_id,
74 bool visible, 76 bool visible,
75 mojo::TextInputStatePtr state); 77 mojo::TextInputStatePtr state);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 ConnectionSpecificId GetConnectionId() override; 140 ConnectionSpecificId GetConnectionId() override;
139 141
140 // Overridden from WindowTreeClient: 142 // Overridden from WindowTreeClient:
141 void OnEmbed(ConnectionSpecificId connection_id, 143 void OnEmbed(ConnectionSpecificId connection_id,
142 mojom::WindowDataPtr root, 144 mojom::WindowDataPtr root,
143 mojom::WindowTreePtr tree, 145 mojom::WindowTreePtr tree,
144 Id focused_window_id, 146 Id focused_window_id,
145 uint32_t access_policy) override; 147 uint32_t access_policy) override;
146 void OnEmbeddedAppDisconnected(Id window_id) override; 148 void OnEmbeddedAppDisconnected(Id window_id) override;
147 void OnUnembed() override; 149 void OnUnembed() override;
150 void OnLostCapture(Id window_id) override;
148 void OnWindowBoundsChanged(Id window_id, 151 void OnWindowBoundsChanged(Id window_id,
149 mojo::RectPtr old_bounds, 152 mojo::RectPtr old_bounds,
150 mojo::RectPtr new_bounds) override; 153 mojo::RectPtr new_bounds) override;
151 void OnClientAreaChanged(uint32_t window_id, 154 void OnClientAreaChanged(uint32_t window_id,
152 mojo::InsetsPtr old_client_area, 155 mojo::InsetsPtr old_client_area,
153 mojo::InsetsPtr new_client_area) override; 156 mojo::InsetsPtr new_client_area) override;
154 void OnTransientWindowAdded(uint32_t window_id, 157 void OnTransientWindowAdded(uint32_t window_id,
155 uint32_t transient_window_id) override; 158 uint32_t transient_window_id) override;
156 void OnTransientWindowRemoved(uint32_t window_id, 159 void OnTransientWindowRemoved(uint32_t window_id,
157 uint32_t transient_window_id) override; 160 uint32_t transient_window_id) override;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 bool is_embed_root_; 224 bool is_embed_root_;
222 225
223 bool in_destructor_; 226 bool in_destructor_;
224 227
225 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); 228 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl);
226 }; 229 };
227 230
228 } // namespace mus 231 } // namespace mus
229 232
230 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 233 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698