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

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

Issue 10909043: Cancel drag if display configuration changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix, adjust test screen size Created 8 years, 3 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
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 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; 49 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE;
50 virtual bool ConfineCursorToRootWindow() OVERRIDE; 50 virtual bool ConfineCursorToRootWindow() OVERRIDE;
51 virtual void UnConfineCursor() OVERRIDE; 51 virtual void UnConfineCursor() OVERRIDE;
52 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; 52 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
53 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; 53 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE;
54 virtual bool GrabSnapshot( 54 virtual bool GrabSnapshot(
55 const gfx::Rect& snapshot_bounds, 55 const gfx::Rect& snapshot_bounds,
56 std::vector<unsigned char>* png_representation) OVERRIDE; 56 std::vector<unsigned char>* png_representation) OVERRIDE;
57 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; 57 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE;
58 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 58 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
59 virtual void StopListeningEvents() OVERRIDE;
59 60
60 // Returns true if there's an X window manager present... in most cases. Some 61 // Returns true if there's an X window manager present... in most cases. Some
61 // window managers (notably, ion3) don't implement enough of ICCCM for us to 62 // window managers (notably, ion3) don't implement enough of ICCCM for us to
62 // detect that they're there. 63 // detect that they're there.
63 bool IsWindowManagerPresent(); 64 bool IsWindowManagerPresent();
64 65
65 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update 66 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update
66 // |current_cursor_|. 67 // |current_cursor_|.
67 void SetCursorInternal(gfx::NativeCursor cursor); 68 void SetCursorInternal(gfx::NativeCursor cursor);
68 69
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 scoped_ptr<ImageCursors> image_cursors_; 102 scoped_ptr<ImageCursors> image_cursors_;
102 103
103 X11AtomCache atom_cache_; 104 X11AtomCache atom_cache_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); 106 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux);
106 }; 107 };
107 108
108 } // namespace aura 109 } // namespace aura
109 110
110 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ 111 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698