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

Side by Side Diff: ui/aura/window_tree_host.h

Issue 1456963002: Make browser windows override_redirect when dragging tabs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make browser windows override_redirect when dragging tabs. Created 4 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_AURA_WINDOW_TREE_HOST_H_ 5 #ifndef UI_AURA_WINDOW_TREE_HOST_H_
6 #define UI_AURA_WINDOW_TREE_HOST_H_ 6 #define UI_AURA_WINDOW_TREE_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/event_types.h" 10 #include "base/event_types.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Gets/Sets the size of the WindowTreeHost (in pixels). 163 // Gets/Sets the size of the WindowTreeHost (in pixels).
164 virtual gfx::Rect GetBounds() const = 0; 164 virtual gfx::Rect GetBounds() const = 0;
165 virtual void SetBounds(const gfx::Rect& bounds_in_pixels) = 0; 165 virtual void SetBounds(const gfx::Rect& bounds_in_pixels) = 0;
166 166
167 // Sets the OS capture to the root window. 167 // Sets the OS capture to the root window.
168 virtual void SetCapture() = 0; 168 virtual void SetCapture() = 0;
169 169
170 // Releases OS capture of the root window. 170 // Releases OS capture of the root window.
171 virtual void ReleaseCapture() = 0; 171 virtual void ReleaseCapture() = 0;
172 172
173 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
174 virtual void RemapAsNormalWindow() = 0;
Daniel Erat 2016/01/19 20:36:22 nit: add a comment like, "Remaps as a normal (i.e.
stapelberg 2016/01/20 13:31:09 Done.
175 #endif
176
173 protected: 177 protected:
174 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. 178 friend class TestScreen; // TODO(beng): see if we can remove/consolidate.
175 179
176 WindowTreeHost(); 180 WindowTreeHost();
177 void DestroyCompositor(); 181 void DestroyCompositor();
178 void DestroyDispatcher(); 182 void DestroyDispatcher();
179 183
180 void CreateCompositor(); 184 void CreateCompositor();
181 void OnAcceleratedWidgetAvailable(); 185 void OnAcceleratedWidgetAvailable();
182 186
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 244
241 // Whether the InputMethod instance is owned by this WindowTreeHost. 245 // Whether the InputMethod instance is owned by this WindowTreeHost.
242 bool owned_input_method_; 246 bool owned_input_method_;
243 247
244 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); 248 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost);
245 }; 249 };
246 250
247 } // namespace aura 251 } // namespace aura
248 252
249 #endif // UI_AURA_WINDOW_TREE_HOST_H_ 253 #endif // UI_AURA_WINDOW_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698