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

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

Issue 389663003: aura: Remove WindowTreeHost::OnDeviceScaleFactorChanged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_tree_host_ozone.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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 142 // Posts |native_event| to the platform's event queue.
143 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; 143 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0;
144 144
145 // Called when the device scale factor of the root window has chagned.
146 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0;
147
148 protected: 145 protected:
149 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. 146 friend class TestScreen; // TODO(beng): see if we can remove/consolidate.
150 147
151 WindowTreeHost(); 148 WindowTreeHost();
152 void DestroyCompositor(); 149 void DestroyCompositor();
153 void DestroyDispatcher(); 150 void DestroyDispatcher();
154 151
155 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); 152 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget);
156 153
157 // Returns the location of the RootWindow on native screen. 154 // Returns the location of the RootWindow on native screen.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 gfx::Point last_cursor_request_position_in_host_; 194 gfx::Point last_cursor_request_position_in_host_;
198 195
199 scoped_ptr<ui::ViewProp> prop_; 196 scoped_ptr<ui::ViewProp> prop_;
200 197
201 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); 198 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost);
202 }; 199 };
203 200
204 } // namespace aura 201 } // namespace aura
205 202
206 #endif // UI_AURA_WINDOW_TREE_HOST_H_ 203 #endif // UI_AURA_WINDOW_TREE_HOST_H_
OLDNEW
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_tree_host_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698