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

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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller.cc ('k') | ui/aura/window_tree_host_x11.h » ('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 (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 // Remaps as a normal (i.e. non-override-redirect) window.
175 virtual void RemapAsNormalWindow() = 0;
176 #endif
177
173 protected: 178 protected:
174 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. 179 friend class TestScreen; // TODO(beng): see if we can remove/consolidate.
175 180
176 WindowTreeHost(); 181 WindowTreeHost();
177 void DestroyCompositor(); 182 void DestroyCompositor();
178 void DestroyDispatcher(); 183 void DestroyDispatcher();
179 184
180 void CreateCompositor(); 185 void CreateCompositor();
181 void OnAcceleratedWidgetAvailable(); 186 void OnAcceleratedWidgetAvailable();
182 187
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 245
241 // Whether the InputMethod instance is owned by this WindowTreeHost. 246 // Whether the InputMethod instance is owned by this WindowTreeHost.
242 bool owned_input_method_; 247 bool owned_input_method_;
243 248
244 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); 249 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost);
245 }; 250 };
246 251
247 } // namespace aura 252 } // namespace aura
248 253
249 #endif // UI_AURA_WINDOW_TREE_HOST_H_ 254 #endif // UI_AURA_WINDOW_TREE_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller.cc ('k') | ui/aura/window_tree_host_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698