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

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

Issue 8585015: Implement ui_controls for aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " 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
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // Add/remove observer. 124 // Add/remove observer.
125 void AddObserver(DesktopObserver* observer); 125 void AddObserver(DesktopObserver* observer);
126 void RemoveObserver(DesktopObserver* observer); 126 void RemoveObserver(DesktopObserver* observer);
127 127
128 // Are any mouse buttons currently down? 128 // Are any mouse buttons currently down?
129 bool IsMouseButtonDown() const; 129 bool IsMouseButtonDown() const;
130 130
131 // Posts |native_event| to the platform's event queue. 131 // Posts |native_event| to the platform's event queue.
132 void PostNativeEvent(const base::NativeEvent& native_event); 132 void PostNativeEvent(const base::NativeEvent& native_event);
133 133
134 // Converts |point| from the desktop's coordinate system to native screen's.
135 void ConvertPointToNativeScreen(gfx::Point* point) const;
136
134 // Capture ------------------------------------------------------------------- 137 // Capture -------------------------------------------------------------------
135 138
136 // Sets capture to the specified window. 139 // Sets capture to the specified window.
137 void SetCapture(Window* window); 140 void SetCapture(Window* window);
138 141
139 // If |window| has mouse capture, the current capture window is set to NULL. 142 // If |window| has mouse capture, the current capture window is set to NULL.
140 void ReleaseCapture(Window* window); 143 void ReleaseCapture(Window* window);
141 144
142 // Overridden from Window: 145 // Overridden from Window:
143 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; 146 virtual void SetTransform(const ui::Transform& transform) OVERRIDE;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 Window* mouse_moved_handler_; 226 Window* mouse_moved_handler_;
224 Window* focused_window_; 227 Window* focused_window_;
225 Window* touch_event_handler_; 228 Window* touch_event_handler_;
226 229
227 DISALLOW_COPY_AND_ASSIGN(Desktop); 230 DISALLOW_COPY_AND_ASSIGN(Desktop);
228 }; 231 };
229 232
230 } // namespace aura 233 } // namespace aura
231 234
232 #endif // UI_AURA_DESKTOP_H_ 235 #endif // UI_AURA_DESKTOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698