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

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

Issue 10386124: Introduce XGetImage() for GrabWindowSnapshot() in ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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/root_window_host.h ('k') | ui/aura/root_window_host_linux.cc » ('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_ROOT_WINDOW_HOST_LINUX_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_LINUX_H_
6 #define UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ 6 #define UI_AURA_ROOT_WINDOW_HOST_LINUX_H_
7 #pragma once 7 #pragma once
8 8
9 #include <X11/Xlib.h> 9 #include <X11/Xlib.h>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; 43 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
44 virtual void SetCapture() OVERRIDE; 44 virtual void SetCapture() OVERRIDE;
45 virtual void ReleaseCapture() OVERRIDE; 45 virtual void ReleaseCapture() OVERRIDE;
46 virtual void SetCursor(gfx::NativeCursor cursor_type) OVERRIDE; 46 virtual void SetCursor(gfx::NativeCursor cursor_type) OVERRIDE;
47 virtual void ShowCursor(bool show) OVERRIDE; 47 virtual void ShowCursor(bool show) OVERRIDE;
48 virtual gfx::Point QueryMouseLocation() OVERRIDE; 48 virtual gfx::Point QueryMouseLocation() OVERRIDE;
49 virtual bool ConfineCursorToRootWindow() OVERRIDE; 49 virtual bool ConfineCursorToRootWindow() OVERRIDE;
50 virtual void UnConfineCursor() OVERRIDE; 50 virtual void UnConfineCursor() OVERRIDE;
51 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; 51 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
52 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; 52 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE;
53 virtual bool GrabSnapshot(
54 const gfx::Rect& snapshot_bounds,
55 std::vector<unsigned char>* png_representation) OVERRIDE;
53 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; 56 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE;
54 57
55 // Returns true if there's an X window manager present... in most cases. Some 58 // Returns true if there's an X window manager present... in most cases. Some
56 // window managers (notably, ion3) don't implement enough of ICCCM for us to 59 // window managers (notably, ion3) don't implement enough of ICCCM for us to
57 // detect that they're there. 60 // detect that they're there.
58 bool IsWindowManagerPresent(); 61 bool IsWindowManagerPresent();
59 62
60 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update 63 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update
61 // |current_cursor_|. 64 // |current_cursor_|.
62 void SetCursorInternal(gfx::NativeCursor cursor); 65 void SetCursorInternal(gfx::NativeCursor cursor);
(...skipping 28 matching lines...) Expand all
91 94
92 class ImageCursors; 95 class ImageCursors;
93 scoped_ptr<ImageCursors> image_cursors_; 96 scoped_ptr<ImageCursors> image_cursors_;
94 97
95 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); 98 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux);
96 }; 99 };
97 100
98 } // namespace aura 101 } // namespace aura
99 102
100 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ 103 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_
OLDNEW
« no previous file with comments | « ui/aura/root_window_host.h ('k') | ui/aura/root_window_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698