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

Side by Side Diff: ui/aura/desktop.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 | « no previous file | ui/aura/desktop.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_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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // an event by |Dispatch(const NativeEvent&)| on it. It must never be stored. 118 // an event by |Dispatch(const NativeEvent&)| on it. It must never be stored.
119 MessageLoop::Dispatcher* GetDispatcher(); 119 MessageLoop::Dispatcher* GetDispatcher();
120 120
121 // Add/remove observer. 121 // Add/remove observer.
122 void AddObserver(DesktopObserver* observer); 122 void AddObserver(DesktopObserver* observer);
123 void RemoveObserver(DesktopObserver* observer); 123 void RemoveObserver(DesktopObserver* observer);
124 124
125 // Are any mouse buttons currently down? 125 // Are any mouse buttons currently down?
126 bool IsMouseButtonDown() const; 126 bool IsMouseButtonDown() const;
127 127
128 // Posts |native_event| to the platform's event queue.
129 void PostNativeEvent(const base::NativeEvent& native_event);
130
128 // Capture ------------------------------------------------------------------- 131 // Capture -------------------------------------------------------------------
129 132
130 // Sets capture to the specified window. 133 // Sets capture to the specified window.
131 void SetCapture(Window* window); 134 void SetCapture(Window* window);
132 135
133 // If |window| has mouse capture, the current capture window is set to NULL. 136 // If |window| has mouse capture, the current capture window is set to NULL.
134 void ReleaseCapture(Window* window); 137 void ReleaseCapture(Window* window);
135 138
136 // Overridden from Window: 139 // Overridden from Window:
137 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; 140 virtual void SetTransform(const ui::Transform& transform) OVERRIDE;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 Window* mouse_moved_handler_; 220 Window* mouse_moved_handler_;
218 Window* focused_window_; 221 Window* focused_window_;
219 Window* touch_event_handler_; 222 Window* touch_event_handler_;
220 223
221 DISALLOW_COPY_AND_ASSIGN(Desktop); 224 DISALLOW_COPY_AND_ASSIGN(Desktop);
222 }; 225 };
223 226
224 } // namespace aura 227 } // namespace aura
225 228
226 #endif // UI_AURA_DESKTOP_H_ 229 #endif // UI_AURA_DESKTOP_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698