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

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

Issue 710553002: aura: Remove WindowTreeHost::PostNativeEvent(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 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
« no previous file with comments | « ui/aura/test/x11_event_sender.cc ('k') | ui/aura/window_tree_host_mac.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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // Gets/Sets the size of the WindowTreeHost. 132 // Gets/Sets the size of the WindowTreeHost.
133 virtual gfx::Rect GetBounds() const = 0; 133 virtual gfx::Rect GetBounds() const = 0;
134 virtual void SetBounds(const gfx::Rect& bounds) = 0; 134 virtual void SetBounds(const gfx::Rect& bounds) = 0;
135 135
136 // Sets the OS capture to the root window. 136 // Sets the OS capture to the root window.
137 virtual void SetCapture() = 0; 137 virtual void SetCapture() = 0;
138 138
139 // Releases OS capture of the root window. 139 // Releases OS capture of the root window.
140 virtual void ReleaseCapture() = 0; 140 virtual void ReleaseCapture() = 0;
141 141
142 // Posts |native_event| to the platform's event queue.
143 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0;
144
145 protected: 142 protected:
146 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. 143 friend class TestScreen; // TODO(beng): see if we can remove/consolidate.
147 144
148 WindowTreeHost(); 145 WindowTreeHost();
149 void DestroyCompositor(); 146 void DestroyCompositor();
150 void DestroyDispatcher(); 147 void DestroyDispatcher();
151 148
152 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); 149 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget);
153 150
154 // Returns the location of the RootWindow on native screen. 151 // Returns the location of the RootWindow on native screen.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 gfx::Point last_cursor_request_position_in_host_; 191 gfx::Point last_cursor_request_position_in_host_;
195 192
196 scoped_ptr<ui::ViewProp> prop_; 193 scoped_ptr<ui::ViewProp> prop_;
197 194
198 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); 195 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost);
199 }; 196 };
200 197
201 } // namespace aura 198 } // namespace aura
202 199
203 #endif // UI_AURA_WINDOW_TREE_HOST_H_ 200 #endif // UI_AURA_WINDOW_TREE_HOST_H_
OLDNEW
« no previous file with comments | « ui/aura/test/x11_event_sender.cc ('k') | ui/aura/window_tree_host_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698