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

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

Issue 2524873002: Rename WindowTreeHost G|SetBounds to indicate they are in pixels. (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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 bool IsAnimatingClosed() const override; 150 bool IsAnimatingClosed() const override;
151 bool IsTranslucentWindowOpacitySupported() const override; 151 bool IsTranslucentWindowOpacitySupported() const override;
152 void SizeConstraintsChanged() override; 152 void SizeConstraintsChanged() override;
153 153
154 // Overridden from aura::WindowTreeHost: 154 // Overridden from aura::WindowTreeHost:
155 gfx::Transform GetRootTransform() const override; 155 gfx::Transform GetRootTransform() const override;
156 ui::EventSource* GetEventSource() override; 156 ui::EventSource* GetEventSource() override;
157 gfx::AcceleratedWidget GetAcceleratedWidget() override; 157 gfx::AcceleratedWidget GetAcceleratedWidget() override;
158 void ShowImpl() override; 158 void ShowImpl() override;
159 void HideImpl() override; 159 void HideImpl() override;
160 gfx::Rect GetBounds() const override; 160 gfx::Rect GetBoundsInPixel() const override;
161 void SetBounds(const gfx::Rect& requested_bounds_in_pixels) override; 161 void SetBoundsInPixel(const gfx::Rect& requested_bounds_in_pixels) override;
162 gfx::Point GetLocationOnNativeScreen() const override; 162 gfx::Point GetLocationOnNativeScreen() const override;
163 void SetCapture() override; 163 void SetCapture() override;
164 void ReleaseCapture() override; 164 void ReleaseCapture() override;
165 void SetCursorNative(gfx::NativeCursor cursor) override; 165 void SetCursorNative(gfx::NativeCursor cursor) override;
166 void MoveCursorToNative(const gfx::Point& location) override; 166 void MoveCursorToNative(const gfx::Point& location) override;
167 void OnCursorVisibilityChangedNative(bool show) override; 167 void OnCursorVisibilityChangedNative(bool show) override;
168 168
169 private: 169 private:
170 friend class DesktopWindowTreeHostX11HighDPITest; 170 friend class DesktopWindowTreeHostX11HighDPITest;
171 // Initializes our X11 surface to draw on. This method performs all 171 // Initializes our X11 surface to draw on. This method performs all
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 425
426 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; 426 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_;
427 base::WeakPtrFactory<DesktopWindowTreeHostX11> weak_factory_; 427 base::WeakPtrFactory<DesktopWindowTreeHostX11> weak_factory_;
428 428
429 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); 429 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11);
430 }; 430 };
431 431
432 } // namespace views 432 } // namespace views
433 433
434 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 434 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698