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

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

Issue 8374005: aura: Try to make Linux host resize code more reliable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reset host win position when wm isn't running Created 9 years, 2 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 | « no previous file | ui/aura/desktop_host_linux.cc » ('j') | ui/aura/desktop_host_linux.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_DESKTOP_H_ 5 #ifndef UI_AURA_DESKTOP_H_
6 #define UI_AURA_DESKTOP_H_ 6 #define UI_AURA_DESKTOP_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 Window* active_window() { return active_window_; } 62 Window* active_window() { return active_window_; }
63 Window* mouse_pressed_handler() { return mouse_pressed_handler_; } 63 Window* mouse_pressed_handler() { return mouse_pressed_handler_; }
64 Window* capture_window() { return capture_window_; } 64 Window* capture_window() { return capture_window_; }
65 ScreenAura* screen() { return screen_; } 65 ScreenAura* screen() { return screen_; }
66 66
67 void SetDelegate(DesktopDelegate* delegate); 67 void SetDelegate(DesktopDelegate* delegate);
68 68
69 // Shows the desktop host. 69 // Shows the desktop host.
70 void ShowDesktop(); 70 void ShowDesktop();
71 71
72 // Sets the size of the desktop. 72 // Sets the size of the desktop. Note that in some implementations (i.e.
73 // X11), resizing happens asynchronously, so a size passed to SetHostSize()
74 // may not be immediately reflected in GetHostSize().
sadrul 2011/10/22 18:53:04 I dislike this part of the change. I confirmed th
Daniel Erat 2011/10/23 04:02:55 I'm in favor of waiting for the ConfigureNotify be
73 void SetHostSize(const gfx::Size& size); 75 void SetHostSize(const gfx::Size& size);
74 gfx::Size GetHostSize() const; 76 gfx::Size GetHostSize() const;
75 77
76 // Shows the specified cursor. 78 // Shows the specified cursor.
77 void SetCursor(gfx::NativeCursor cursor); 79 void SetCursor(gfx::NativeCursor cursor);
78 80
79 // Shows the desktop host and runs an event loop for it. 81 // Shows the desktop host and runs an event loop for it.
80 void Run(); 82 void Run();
81 83
82 // Draws the necessary set of windows. 84 // Draws the necessary set of windows.
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 Window* mouse_moved_handler_; 196 Window* mouse_moved_handler_;
195 Window* focused_window_; 197 Window* focused_window_;
196 Window* touch_event_handler_; 198 Window* touch_event_handler_;
197 199
198 DISALLOW_COPY_AND_ASSIGN(Desktop); 200 DISALLOW_COPY_AND_ASSIGN(Desktop);
199 }; 201 };
200 202
201 } // namespace aura 203 } // namespace aura
202 204
203 #endif // UI_AURA_DESKTOP_H_ 205 #endif // UI_AURA_DESKTOP_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/desktop_host_linux.cc » ('j') | ui/aura/desktop_host_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698