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

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

Issue 8585015: Implement ui_controls for aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no mask for xsendevent Created 9 years, 1 month 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/desktop.cc ('k') | ui/aura/desktop_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) 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_HOST_H_ 5 #ifndef UI_AURA_DESKTOP_HOST_H_
6 #define UI_AURA_DESKTOP_HOST_H_ 6 #define UI_AURA_DESKTOP_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "ui/aura/cursor.h" 10 #include "ui/aura/cursor.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Shows the DesktopHost. 43 // Shows the DesktopHost.
44 virtual void Show() = 0; 44 virtual void Show() = 0;
45 45
46 // Toggles the host's full screen state. 46 // Toggles the host's full screen state.
47 virtual void ToggleFullScreen() = 0; 47 virtual void ToggleFullScreen() = 0;
48 48
49 // Gets/Sets the size of the DesktopHost. 49 // Gets/Sets the size of the DesktopHost.
50 virtual gfx::Size GetSize() const = 0; 50 virtual gfx::Size GetSize() const = 0;
51 virtual void SetSize(const gfx::Size& size) = 0; 51 virtual void SetSize(const gfx::Size& size) = 0;
52 52
53 // Returns the location of the desktop on native screen.
54 virtual gfx::Point GetLocationOnNativeScreen() const = 0;
55
53 // Sets the currently displayed cursor. 56 // Sets the currently displayed cursor.
54 virtual void SetCursor(gfx::NativeCursor cursor) = 0; 57 virtual void SetCursor(gfx::NativeCursor cursor) = 0;
55 58
56 // Queries the mouse's current position relative to the host window. 59 // Queries the mouse's current position relative to the host window.
57 // The position is constrained within the host window. 60 // The position is constrained within the host window.
58 // You should probably call Desktop::last_mouse_location() instead; this 61 // You should probably call Desktop::last_mouse_location() instead; this
59 // method can be expensive. 62 // method can be expensive.
60 virtual gfx::Point QueryMouseLocation() = 0; 63 virtual gfx::Point QueryMouseLocation() = 0;
61 64
62 // Posts |native_event| to the platform's event queue. 65 // Posts |native_event| to the platform's event queue.
63 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; 66 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0;
64 }; 67 };
65 68
66 } // namespace aura 69 } // namespace aura
67 70
68 #endif // UI_AURA_DESKTOP_HOST_H_ 71 #endif // UI_AURA_DESKTOP_HOST_H_
OLDNEW
« no previous file with comments | « ui/aura/desktop.cc ('k') | ui/aura/desktop_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698