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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h

Issue 2525113002: Rename WindowTreeHost functions to indicate pixels/dips. (Closed)
Patch Set: Created 4 years 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_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <X11/extensions/shape.h> 10 #include <X11/extensions/shape.h>
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void SizeConstraintsChanged() override; 154 void SizeConstraintsChanged() override;
155 155
156 // Overridden from aura::WindowTreeHost: 156 // Overridden from aura::WindowTreeHost:
157 gfx::Transform GetRootTransform() const override; 157 gfx::Transform GetRootTransform() const override;
158 ui::EventSource* GetEventSource() override; 158 ui::EventSource* GetEventSource() override;
159 gfx::AcceleratedWidget GetAcceleratedWidget() override; 159 gfx::AcceleratedWidget GetAcceleratedWidget() override;
160 void ShowImpl() override; 160 void ShowImpl() override;
161 void HideImpl() override; 161 void HideImpl() override;
162 gfx::Rect GetBounds() const override; 162 gfx::Rect GetBounds() const override;
163 void SetBounds(const gfx::Rect& requested_bounds_in_pixels) override; 163 void SetBounds(const gfx::Rect& requested_bounds_in_pixels) override;
164 gfx::Point GetLocationOnNativeScreen() const override; 164 gfx::Point GetLocationOnNativeScreenInPixel() const override;
165 void SetCapture() override; 165 void SetCapture() override;
166 void ReleaseCapture() override; 166 void ReleaseCapture() override;
167 void SetCursorNative(gfx::NativeCursor cursor) override; 167 void SetCursorNative(gfx::NativeCursor cursor) override;
168 void MoveCursorToNative(const gfx::Point& location) override; 168 void MoveCursorToNativeInPixel(const gfx::Point& location_in_pixel) override;
169 void OnCursorVisibilityChangedNative(bool show) override; 169 void OnCursorVisibilityChangedNative(bool show) override;
170 170
171 private: 171 private:
172 friend class DesktopWindowTreeHostX11HighDPITest; 172 friend class DesktopWindowTreeHostX11HighDPITest;
173 // Initializes our X11 surface to draw on. This method performs all 173 // Initializes our X11 surface to draw on. This method performs all
174 // initialization related to talking to the X11 server. 174 // initialization related to talking to the X11 server.
175 void InitX11Window(const Widget::InitParams& params); 175 void InitX11Window(const Widget::InitParams& params);
176 176
177 // Creates an aura::WindowEventDispatcher to contain the |content_window|, 177 // Creates an aura::WindowEventDispatcher to contain the |content_window|,
178 // along with all aura client objects that direct behavior. 178 // along with all aura client objects that direct behavior.
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 427
428 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; 428 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_;
429 base::WeakPtrFactory<DesktopWindowTreeHostX11> weak_factory_; 429 base::WeakPtrFactory<DesktopWindowTreeHostX11> weak_factory_;
430 430
431 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); 431 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11);
432 }; 432 };
433 433
434 } // namespace views 434 } // namespace views
435 435
436 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 436 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698