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

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

Issue 8597010: Send fake event when event_type is set to exit menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use xdisplay_ 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual void SetSize(const gfx::Size& size) = 0; 51 virtual void SetSize(const gfx::Size& size) = 0;
52 52
53 // Sets the currently displayed cursor. 53 // Sets the currently displayed cursor.
54 virtual void SetCursor(gfx::NativeCursor cursor) = 0; 54 virtual void SetCursor(gfx::NativeCursor cursor) = 0;
55 55
56 // Queries the mouse's current position relative to the host window. 56 // Queries the mouse's current position relative to the host window.
57 // The position is constrained within the host window. 57 // The position is constrained within the host window.
58 // You should probably call Desktop::last_mouse_location() instead; this 58 // You should probably call Desktop::last_mouse_location() instead; this
59 // method can be expensive. 59 // method can be expensive.
60 virtual gfx::Point QueryMouseLocation() = 0; 60 virtual gfx::Point QueryMouseLocation() = 0;
61
62 // Posts |native_event| to the platform's event queue.
63 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0;
61 }; 64 };
62 65
63 } // namespace aura 66 } // namespace aura
64 67
65 #endif // UI_AURA_DESKTOP_HOST_H_ 68 #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