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

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

Issue 2122023002: Cross-process frames should be notified of device scale factor changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add Mac DSF update. Created 4 years, 4 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // Gets/Sets the size of the WindowTreeHost (in pixels). 172 // Gets/Sets the size of the WindowTreeHost (in pixels).
173 virtual gfx::Rect GetBounds() const = 0; 173 virtual gfx::Rect GetBounds() const = 0;
174 virtual void SetBounds(const gfx::Rect& bounds_in_pixels) = 0; 174 virtual void SetBounds(const gfx::Rect& bounds_in_pixels) = 0;
175 175
176 // Sets the OS capture to the root window. 176 // Sets the OS capture to the root window.
177 virtual void SetCapture() = 0; 177 virtual void SetCapture() = 0;
178 178
179 // Releases OS capture of the root window. 179 // Releases OS capture of the root window.
180 virtual void ReleaseCapture() = 0; 180 virtual void ReleaseCapture() = 0;
181 181
182 // For testing : WJM
Charlie Reis 2016/08/10 00:07:12 WJM?
wjmaclean 2016/08/10 15:54:26 Done. The comment was designed to make sure I did
183 void OnHostResized(const gfx::Size& new_size);
184
182 protected: 185 protected:
183 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. 186 friend class TestScreen; // TODO(beng): see if we can remove/consolidate.
184 187
185 WindowTreeHost(); 188 WindowTreeHost();
186 void DestroyCompositor(); 189 void DestroyCompositor();
187 void DestroyDispatcher(); 190 void DestroyDispatcher();
188 191
189 void CreateCompositor(); 192 void CreateCompositor();
190 void OnAcceleratedWidgetAvailable(); 193 void OnAcceleratedWidgetAvailable();
191 194
192 // Returns the location of the RootWindow on native screen. 195 // Returns the location of the RootWindow on native screen.
193 virtual gfx::Point GetLocationOnNativeScreen() const = 0; 196 virtual gfx::Point GetLocationOnNativeScreen() const = 0;
194 197
195 void OnHostMoved(const gfx::Point& new_location); 198 void OnHostMoved(const gfx::Point& new_location);
196 void OnHostResized(const gfx::Size& new_size);
197 void OnHostWorkspaceChanged(); 199 void OnHostWorkspaceChanged();
198 void OnHostCloseRequested(); 200 void OnHostCloseRequested();
199 void OnHostActivated(); 201 void OnHostActivated();
200 void OnHostLostWindowCapture(); 202 void OnHostLostWindowCapture();
201 203
202 // Sets the currently displayed cursor. 204 // Sets the currently displayed cursor.
203 virtual void SetCursorNative(gfx::NativeCursor cursor) = 0; 205 virtual void SetCursorNative(gfx::NativeCursor cursor) = 0;
204 206
205 // Moves the cursor to the specified location relative to the root window. 207 // Moves the cursor to the specified location relative to the root window.
206 virtual void MoveCursorToNative(const gfx::Point& location) = 0; 208 virtual void MoveCursorToNative(const gfx::Point& location) = 0;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 bool owned_input_method_; 254 bool owned_input_method_;
253 255
254 gfx::Insets output_surface_padding_; 256 gfx::Insets output_surface_padding_;
255 257
256 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); 258 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost);
257 }; 259 };
258 260
259 } // namespace aura 261 } // namespace aura
260 262
261 #endif // UI_AURA_WINDOW_TREE_HOST_H_ 263 #endif // UI_AURA_WINDOW_TREE_HOST_H_
OLDNEW
« content/browser/web_contents/web_contents_impl.h ('K') | « content/test/test_render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698