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

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

Issue 8576005: IME (input method editor) support for Aura, part 3 of 3: Use ui::InputMethod in ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: aura_win fix 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"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "ui/aura/aura_export.h" 14 #include "ui/aura/aura_export.h"
15 #include "ui/aura/cursor.h" 15 #include "ui/aura/cursor.h"
16 #include "ui/aura/focus_manager.h" 16 #include "ui/aura/focus_manager.h"
17 #include "ui/aura/window.h" 17 #include "ui/aura/window.h"
18 #include "ui/base/events.h" 18 #include "ui/base/events.h"
19 #include "ui/gfx/compositor/compositor.h" 19 #include "ui/gfx/compositor/compositor.h"
20 #include "ui/gfx/compositor/layer_animation_observer.h" 20 #include "ui/gfx/compositor/layer_animation_observer.h"
21 #include "ui/gfx/native_widget_types.h" 21 #include "ui/gfx/native_widget_types.h"
22 #include "ui/gfx/point.h" 22 #include "ui/gfx/point.h"
23 23
24 namespace gfx { 24 namespace gfx {
25 class Size; 25 class Size;
26 } 26 }
27 27
28 namespace ui { 28 namespace ui {
29 class InputMethod;
29 class LayerAnimationSequence; 30 class LayerAnimationSequence;
30 class Transform; 31 class Transform;
31 } 32 }
32 33
33 namespace aura { 34 namespace aura {
34 35
35 class DesktopHost; 36 class DesktopHost;
36 class DesktopObserver; 37 class DesktopObserver;
37 class KeyEvent; 38 class KeyEvent;
38 class MouseEvent; 39 class MouseEvent;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 136
136 // Sets capture to the specified window. 137 // Sets capture to the specified window.
137 void SetCapture(Window* window); 138 void SetCapture(Window* window);
138 139
139 // If |window| has mouse capture, the current capture window is set to NULL. 140 // If |window| has mouse capture, the current capture window is set to NULL.
140 void ReleaseCapture(Window* window); 141 void ReleaseCapture(Window* window);
141 142
142 // Overridden from Window: 143 // Overridden from Window:
143 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; 144 virtual void SetTransform(const ui::Transform& transform) OVERRIDE;
144 145
146 // Gets the input method for the desktop.
147 ui::InputMethod* GetInputMethod();
148
145 #if !defined(NDEBUG) 149 #if !defined(NDEBUG)
146 // Toggles the host's full screen state. 150 // Toggles the host's full screen state.
147 void ToggleFullScreen(); 151 void ToggleFullScreen();
148 #endif 152 #endif
149 153
150 private: 154 private:
151 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, 155 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|,
152 // sending exited and entered events as its value changes. 156 // sending exited and entered events as its value changes.
153 void HandleMouseMoved(const MouseEvent& event, Window* target); 157 void HandleMouseMoved(const MouseEvent& event, Window* target);
154 158
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 Window* mouse_moved_handler_; 232 Window* mouse_moved_handler_;
229 Window* focused_window_; 233 Window* focused_window_;
230 Window* touch_event_handler_; 234 Window* touch_event_handler_;
231 235
232 DISALLOW_COPY_AND_ASSIGN(Desktop); 236 DISALLOW_COPY_AND_ASSIGN(Desktop);
233 }; 237 };
234 238
235 } // namespace aura 239 } // namespace aura
236 240
237 #endif // UI_AURA_DESKTOP_H_ 241 #endif // UI_AURA_DESKTOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698