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

Side by Side Diff: components/mus/public/cpp/window.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_WINDOW_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 void MoveToFront(); 160 void MoveToFront();
161 void MoveToBack(); 161 void MoveToBack();
162 162
163 bool Contains(Window* child) const; 163 bool Contains(Window* child) const;
164 164
165 Window* GetChildById(Id id); 165 Window* GetChildById(Id id);
166 166
167 void SetTextInputState(mojo::TextInputStatePtr state); 167 void SetTextInputState(mojo::TextInputStatePtr state);
168 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state); 168 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state);
169 169
170 // Capture.
sky 2015/11/17 01:06:42 This comment isn't really useful, nuke it.
171 void SetCapture();
172 void ReleaseCapture();
173
170 // The following make their way to the WindowManager. See 174 // The following make their way to the WindowManager. See
171 // window_manager.mojom for details. 175 // window_manager.mojom for details.
172 void SetPreferredSize(const gfx::Size& size); 176 void SetPreferredSize(const gfx::Size& size);
173 void SetShowState(mojom::ShowState show_state); 177 void SetShowState(mojom::ShowState show_state);
174 void SetResizeBehavior(mojom::ResizeBehavior resize_behavior); 178 void SetResizeBehavior(mojom::ResizeBehavior resize_behavior);
175 179
176 // Focus. 180 // Focus.
177 void SetFocus(); 181 void SetFocus();
178 bool HasFocus() const; 182 bool HasFocus() const;
179 183
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 }; 296 };
293 297
294 std::map<const void*, Value> prop_map_; 298 std::map<const void*, Value> prop_map_;
295 299
296 MOJO_DISALLOW_COPY_AND_ASSIGN(Window); 300 MOJO_DISALLOW_COPY_AND_ASSIGN(Window);
297 }; 301 };
298 302
299 } // namespace mus 303 } // namespace mus
300 304
301 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ 305 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698