| 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_ROOT_WINDOW_HOST_LINUX_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
| 7 | 7 |
| 8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
| 9 | 9 |
| 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. | 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; | 159 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; |
| 160 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, | 160 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, |
| 161 const gfx::Point& dest_offset, | 161 const gfx::Point& dest_offset, |
| 162 SkCanvas* canvas) OVERRIDE; | 162 SkCanvas* canvas) OVERRIDE; |
| 163 virtual bool GrabSnapshot( | 163 virtual bool GrabSnapshot( |
| 164 const gfx::Rect& snapshot_bounds, | 164 const gfx::Rect& snapshot_bounds, |
| 165 std::vector<unsigned char>* png_representation) OVERRIDE; | 165 std::vector<unsigned char>* png_representation) OVERRIDE; |
| 166 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 166 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
| 167 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 167 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 168 virtual void PrepareForShutdown() OVERRIDE; | 168 virtual void PrepareForShutdown() OVERRIDE; |
| 169 virtual void SetHostWindowProperty(const std::string& name, |
| 170 int value) OVERRIDE; |
| 169 | 171 |
| 170 // Overridden from Dispatcher: | 172 // Overridden from Dispatcher: |
| 171 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE; | 173 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE; |
| 172 | 174 |
| 173 base::WeakPtrFactory<DesktopRootWindowHostLinux> close_widget_factory_; | 175 base::WeakPtrFactory<DesktopRootWindowHostLinux> close_widget_factory_; |
| 174 | 176 |
| 175 // X11 things | 177 // X11 things |
| 176 // The display and the native X window hosting the root window. | 178 // The display and the native X window hosting the root window. |
| 177 Display* xdisplay_; | 179 Display* xdisplay_; |
| 178 ::Window xwindow_; | 180 ::Window xwindow_; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // can notify widgets when they have lost capture, which controls a bunch of | 231 // can notify widgets when they have lost capture, which controls a bunch of |
| 230 // things in views like hiding menus. | 232 // things in views like hiding menus. |
| 231 static DesktopRootWindowHostLinux* g_current_capture; | 233 static DesktopRootWindowHostLinux* g_current_capture; |
| 232 | 234 |
| 233 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); | 235 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostLinux); |
| 234 }; | 236 }; |
| 235 | 237 |
| 236 } // namespace views | 238 } // namespace views |
| 237 | 239 |
| 238 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ | 240 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_LINUX_H_ |
| OLD | NEW |