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

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, 12 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 static WindowTreeHost* Create(const gfx::Rect& bounds); 50 static WindowTreeHost* Create(const gfx::Rect& bounds);
51 51
52 // Returns the WindowTreeHost for the specified accelerated widget, or NULL 52 // Returns the WindowTreeHost for the specified accelerated widget, or NULL
53 // if there is none associated. 53 // if there is none associated.
54 static WindowTreeHost* GetForAcceleratedWidget(gfx::AcceleratedWidget widget); 54 static WindowTreeHost* GetForAcceleratedWidget(gfx::AcceleratedWidget widget);
55 55
56 void InitHost(); 56 void InitHost();
57 57
58 void InitCompositor(); 58 void InitCompositor();
59 59
60 virtual void RemapWindow() = 0;
Daniel Erat 2015/12/28 21:33:02 nit: move this down to the other similar pure virt
stapelberg 2016/01/18 17:22:23 Done.
61
60 void AddObserver(WindowTreeHostObserver* observer); 62 void AddObserver(WindowTreeHostObserver* observer);
61 void RemoveObserver(WindowTreeHostObserver* observer); 63 void RemoveObserver(WindowTreeHostObserver* observer);
62 64
63 Window* window() { return window_; } 65 Window* window() { return window_; }
64 const Window* window() const { return window_; } 66 const Window* window() const { return window_; }
65 67
66 ui::EventProcessor* event_processor(); 68 ui::EventProcessor* event_processor();
67 69
68 WindowEventDispatcher* dispatcher() { 70 WindowEventDispatcher* dispatcher() {
69 return const_cast<WindowEventDispatcher*>( 71 return const_cast<WindowEventDispatcher*>(
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 242
241 // Whether the InputMethod instance is owned by this WindowTreeHost. 243 // Whether the InputMethod instance is owned by this WindowTreeHost.
242 bool owned_input_method_; 244 bool owned_input_method_;
243 245
244 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); 246 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost);
245 }; 247 };
246 248
247 } // namespace aura 249 } // namespace aura
248 250
249 #endif // UI_AURA_WINDOW_TREE_HOST_H_ 251 #endif // UI_AURA_WINDOW_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698