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

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

Issue 9773024: This patch implements Chromium's Aura gesture recognizer in terms of utouch-grail and utouch-frame … (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/root_window_host_linux.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ROOT_WINDOW_HOST_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_H_
6 #define UI_AURA_ROOT_WINDOW_HOST_H_ 6 #define UI_AURA_ROOT_WINDOW_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"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 class Point; 14 class Point;
15 class Rect; 15 class Rect;
16 class Size; 16 class Size;
17 } 17 }
18 18
19 namespace aura { 19 namespace aura {
20 20
21 typedef unsigned long NativeHandle;
22
21 class RootWindow; 23 class RootWindow;
22 24
23 // RootWindowHost bridges between a native window and the embedded RootWindow. 25 // RootWindowHost bridges between a native window and the embedded RootWindow.
24 // It provides the accelerated widget and maps events from the native os to 26 // It provides the accelerated widget and maps events from the native os to
25 // aura. 27 // aura.
26 class RootWindowHost { 28 class RootWindowHost {
27 public: 29 public:
28 virtual ~RootWindowHost() {} 30 virtual ~RootWindowHost() {}
29 31
30 // Creates a new RootWindowHost. The caller owns the returned value. 32 // Creates a new RootWindowHost. The caller owns the returned value.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual bool ConfineCursorToRootWindow() = 0; 78 virtual bool ConfineCursorToRootWindow() = 0;
77 virtual void UnConfineCursor() = 0; 79 virtual void UnConfineCursor() = 0;
78 80
79 // Moves the cursor to the specified location relative to the root window. 81 // Moves the cursor to the specified location relative to the root window.
80 virtual void MoveCursorTo(const gfx::Point& location) = 0; 82 virtual void MoveCursorTo(const gfx::Point& location) = 0;
81 83
82 // Posts |native_event| to the platform's event queue. 84 // Posts |native_event| to the platform's event queue.
83 #if !defined(OS_MACOSX) 85 #if !defined(OS_MACOSX)
84 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; 86 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0;
85 #endif 87 #endif
88
89 // Accesses the underlying native window.
90 virtual NativeHandle GetNativeWindow() const = 0;
86 }; 91 };
87 92
88 } // namespace aura 93 } // namespace aura
89 94
90 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ 95 #endif // UI_AURA_ROOT_WINDOW_HOST_H_
96
OLDNEW
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/root_window_host_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698