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

Side by Side Diff: ui/aura/root_window.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: rebase, review Created 9 years 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_ROOT_WINDOW_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_H_
6 #define UI_AURA_ROOT_WINDOW_H_ 6 #define UI_AURA_ROOT_WINDOW_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 21 matching lines...) Expand all
32 32
33 namespace aura { 33 namespace aura {
34 34
35 class RootWindowHost; 35 class RootWindowHost;
36 class RootWindowObserver; 36 class RootWindowObserver;
37 class KeyEvent; 37 class KeyEvent;
38 class MouseEvent; 38 class MouseEvent;
39 class ScreenAura; 39 class ScreenAura;
40 class StackingClient; 40 class StackingClient;
41 class TouchEvent; 41 class TouchEvent;
42 class TranslatedKeyEvent;
42 43
43 // RootWindow is responsible for hosting a set of windows. 44 // RootWindow is responsible for hosting a set of windows.
44 class AURA_EXPORT RootWindow : public ui::CompositorDelegate, 45 class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
45 public Window, 46 public Window,
46 public internal::FocusManager, 47 public internal::FocusManager,
47 public ui::LayerAnimationObserver { 48 public ui::LayerAnimationObserver {
48 public: 49 public:
49 static RootWindow* GetInstance(); 50 static RootWindow* GetInstance();
50 static void DeleteInstance(); 51 static void DeleteInstance();
51 52
(...skipping 26 matching lines...) Expand all
78 79
79 // Draws the necessary set of windows. 80 // Draws the necessary set of windows.
80 void Draw(); 81 void Draw();
81 82
82 // Handles a mouse event. Returns true if handled. 83 // Handles a mouse event. Returns true if handled.
83 bool DispatchMouseEvent(MouseEvent* event); 84 bool DispatchMouseEvent(MouseEvent* event);
84 85
85 // Handles a key event. Returns true if handled. 86 // Handles a key event. Returns true if handled.
86 bool DispatchKeyEvent(KeyEvent* event); 87 bool DispatchKeyEvent(KeyEvent* event);
87 88
89 // Handles a translated key event. Returns true if handled.
90 bool DispatchTranslatedKeyEvent(TranslatedKeyEvent* event);
91
88 // Handles a touch event. Returns true if handled. 92 // Handles a touch event. Returns true if handled.
89 bool DispatchTouchEvent(TouchEvent* event); 93 bool DispatchTouchEvent(TouchEvent* event);
90 94
91 // Called when the host changes size. 95 // Called when the host changes size.
92 void OnHostResized(const gfx::Size& size); 96 void OnHostResized(const gfx::Size& size);
93 97
94 // Called when the native screen's resolution changes. 98 // Called when the native screen's resolution changes.
95 void OnNativeScreenResized(const gfx::Size& size); 99 void OnNativeScreenResized(const gfx::Size& size);
96 100
97 // Invoked when |window| is initialized. 101 // Invoked when |window| is initialized.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 private: 146 private:
143 RootWindow(); 147 RootWindow();
144 virtual ~RootWindow(); 148 virtual ~RootWindow();
145 149
146 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, 150 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|,
147 // sending exited and entered events as its value changes. 151 // sending exited and entered events as its value changes.
148 void HandleMouseMoved(const MouseEvent& event, Window* target); 152 void HandleMouseMoved(const MouseEvent& event, Window* target);
149 153
150 bool ProcessMouseEvent(Window* target, MouseEvent* event); 154 bool ProcessMouseEvent(Window* target, MouseEvent* event);
151 bool ProcessKeyEvent(Window* target, KeyEvent* event); 155 bool ProcessKeyEvent(Window* target, KeyEvent* event);
156 bool ProcessTranslatedKeyEvent(Window* target, TranslatedKeyEvent* event);
152 ui::TouchStatus ProcessTouchEvent(Window* target, TouchEvent* event); 157 ui::TouchStatus ProcessTouchEvent(Window* target, TouchEvent* event);
153 158
154 // Overridden from Window: 159 // Overridden from Window:
155 virtual bool CanFocus() const OVERRIDE; 160 virtual bool CanFocus() const OVERRIDE;
156 virtual internal::FocusManager* GetFocusManager() OVERRIDE; 161 virtual internal::FocusManager* GetFocusManager() OVERRIDE;
157 virtual RootWindow* GetRootWindow() OVERRIDE; 162 virtual RootWindow* GetRootWindow() OVERRIDE;
158 virtual void WindowDetachedFromRootWindow(Window* window) OVERRIDE; 163 virtual void WindowDetachedFromRootWindow(Window* window) OVERRIDE;
159 164
160 // Overridden from ui::LayerAnimationObserver: 165 // Overridden from ui::LayerAnimationObserver:
161 virtual void OnLayerAnimationEnded( 166 virtual void OnLayerAnimationEnded(
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 Window* mouse_moved_handler_; 219 Window* mouse_moved_handler_;
215 Window* focused_window_; 220 Window* focused_window_;
216 Window* touch_event_handler_; 221 Window* touch_event_handler_;
217 222
218 DISALLOW_COPY_AND_ASSIGN(RootWindow); 223 DISALLOW_COPY_AND_ASSIGN(RootWindow);
219 }; 224 };
220 225
221 } // namespace aura 226 } // namespace aura
222 227
223 #endif // UI_AURA_ROOT_WINDOW_H_ 228 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW
« ui/aura/event.h ('K') | « ui/aura/event_filter.h ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698