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

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

Issue 1155013005: Refactoring the ownership of ui::InputMethod. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: let DisplayController be centrial InputMethodDelegate and call DispatchKeyEventPostIME on the activ… Created 5 years, 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_WINDOW_TREE_HOST_OZONE_H_ 5 #ifndef UI_AURA_WINDOW_TREE_HOST_OZONE_H_
6 #define UI_AURA_WINDOW_TREE_HOST_OZONE_H_ 6 #define UI_AURA_WINDOW_TREE_HOST_OZONE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/aura/window_tree_host.h" 9 #include "ui/aura/window_tree_host.h"
10 #include "ui/events/event_source.h" 10 #include "ui/events/event_source.h"
11 #include "ui/gfx/geometry/rect.h" 11 #include "ui/gfx/geometry/rect.h"
12 #include "ui/platform_window/platform_window_delegate.h" 12 #include "ui/platform_window/platform_window_delegate.h"
13 13
14 namespace ui { 14 namespace ui {
15 class PlatformWindow; 15 class PlatformWindow;
16 } 16 }
17 17
18 namespace aura { 18 namespace aura {
19 19
20 class AURA_EXPORT WindowTreeHostOzone : public WindowTreeHost, 20 class AURA_EXPORT WindowTreeHostOzone : public WindowTreeHost,
21 public ui::EventSource,
22 public ui::PlatformWindowDelegate { 21 public ui::PlatformWindowDelegate {
23 public: 22 public:
24 explicit WindowTreeHostOzone(const gfx::Rect& bounds); 23 explicit WindowTreeHostOzone(const gfx::Rect& bounds);
25 ~WindowTreeHostOzone() override; 24 ~WindowTreeHostOzone() override;
26 25
27 protected: 26 protected:
28 // WindowTreeHost: 27 // WindowTreeHost:
29 ui::EventSource* GetEventSource() override; 28 ui::EventSource* GetEventSource() override;
30 gfx::AcceleratedWidget GetAcceleratedWidget() override; 29 gfx::AcceleratedWidget GetAcceleratedWidget() override;
31 void Show() override; 30 void Show() override;
(...skipping 14 matching lines...) Expand all
46 void OnBoundsChanged(const gfx::Rect&) override; 45 void OnBoundsChanged(const gfx::Rect&) override;
47 void OnDamageRect(const gfx::Rect& damaged_region) override; 46 void OnDamageRect(const gfx::Rect& damaged_region) override;
48 void DispatchEvent(ui::Event* event) override; 47 void DispatchEvent(ui::Event* event) override;
49 void OnCloseRequest() override; 48 void OnCloseRequest() override;
50 void OnClosed() override; 49 void OnClosed() override;
51 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; 50 void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
52 void OnLostCapture() override; 51 void OnLostCapture() override;
53 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) override; 52 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) override;
54 void OnActivationChanged(bool active) override; 53 void OnActivationChanged(bool active) override;
55 54
56 // ui::EventSource overrides.
57 ui::EventProcessor* GetEventProcessor() override;
58
59 // Platform-specific part of this WindowTreeHost. 55 // Platform-specific part of this WindowTreeHost.
60 scoped_ptr<ui::PlatformWindow> platform_window_; 56 scoped_ptr<ui::PlatformWindow> platform_window_;
61 57
62 // The identifier used to create a compositing surface. 58 // The identifier used to create a compositing surface.
63 gfx::AcceleratedWidget widget_; 59 gfx::AcceleratedWidget widget_;
64 60
65 // Current Aura cursor. 61 // Current Aura cursor.
66 gfx::NativeCursor current_cursor_; 62 gfx::NativeCursor current_cursor_;
67 63
68 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostOzone); 64 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostOzone);
69 }; 65 };
70 66
71 } // namespace aura 67 } // namespace aura
72 68
73 #endif // UI_AURA_WINDOW_TREE_HOST_OZONE_H_ 69 #endif // UI_AURA_WINDOW_TREE_HOST_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698