OLD | NEW |
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 <X11/extensions/shape.h> | 8 #include <X11/extensions/shape.h> |
9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
10 | 10 |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 // the frame when |xwindow_| gains focus or handles a mouse button event. | 336 // the frame when |xwindow_| gains focus or handles a mouse button event. |
337 bool urgency_hint_set_; | 337 bool urgency_hint_set_; |
338 | 338 |
339 base::CancelableCallback<void()> delayed_resize_task_; | 339 base::CancelableCallback<void()> delayed_resize_task_; |
340 | 340 |
341 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; | 341 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; |
342 | 342 |
343 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); | 343 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); |
344 }; | 344 }; |
345 | 345 |
| 346 gfx::Point ScreenToDIPPoint(const gfx::Point& pixel_point); |
| 347 gfx::Point DIPToScreenPoint(const gfx::Point& dip_point); |
| 348 gfx::Size ScreenToDIPSize(const gfx::Size& size_in_pixels); |
| 349 gfx::Size DIPToScreenSize(const gfx::Size& dip_size); |
| 350 gfx::Rect DIPToScreenRect(const gfx::Rect& dip_bounds); |
| 351 gfx::Rect ScreenToDIPRect(const gfx::Rect& pixel_bounds); |
| 352 |
346 } // namespace views | 353 } // namespace views |
347 | 354 |
348 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ | 355 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ |
OLD | NEW |