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

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

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
11 #include "ui/platform_window/platform_window_delegate.h" 11 #include "ui/platform_window/platform_window_delegate.h"
12 12
13 namespace ui { 13 namespace ui {
14 class PlatformWindow; 14 class PlatformWindow;
15 } 15 }
16 16
17 namespace aura { 17 namespace aura {
18 18
19 class AURA_EXPORT WindowTreeHostOzone : public WindowTreeHost, 19 class AURA_EXPORT WindowTreeHostAndroid : public WindowTreeHost,
20 public ui::PlatformWindowDelegate { 20 public ui::PlatformWindowDelegate {
21 public: 21 public:
22 explicit WindowTreeHostOzone(const gfx::Rect& bounds); 22 explicit WindowTreeHostAndroid(const gfx::Rect& bounds);
23 ~WindowTreeHostOzone() override; 23 ~WindowTreeHostAndroid() override;
24
25 static WindowTreeHostAndroid* GetHost();
24 26
25 protected: 27 protected:
26 // WindowTreeHost: 28 // WindowTreeHost:
27 ui::EventSource* GetEventSource() override; 29 ui::EventSource* GetEventSource() override;
28 gfx::AcceleratedWidget GetAcceleratedWidget() override; 30 gfx::AcceleratedWidget GetAcceleratedWidget() override;
29 void ShowImpl() override; 31 void ShowImpl() override;
30 void HideImpl() override; 32 void HideImpl() override;
31 gfx::Rect GetBounds() const override; 33 gfx::Rect GetBounds() const override;
32 void SetBounds(const gfx::Rect& bounds) override; 34 void SetBounds(const gfx::Rect& bounds) override;
33 gfx::Point GetLocationOnNativeScreen() const override; 35 gfx::Point GetLocationOnNativeScreen() const override;
(...skipping 10 matching lines...) Expand all
44 void OnBoundsChanged(const gfx::Rect&) override; 46 void OnBoundsChanged(const gfx::Rect&) override;
45 void OnDamageRect(const gfx::Rect& damaged_region) override; 47 void OnDamageRect(const gfx::Rect& damaged_region) override;
46 void DispatchEvent(ui::Event* event) override; 48 void DispatchEvent(ui::Event* event) override;
47 void OnCloseRequest() override; 49 void OnCloseRequest() override;
48 void OnClosed() override; 50 void OnClosed() override;
49 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; 51 void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
50 void OnLostCapture() override; 52 void OnLostCapture() override;
51 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, 53 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget,
52 float device_pixel_ratio) override; 54 float device_pixel_ratio) override;
53 void OnActivationChanged(bool active) override; 55 void OnActivationChanged(bool active) override;
56 ui::InputMethod* GetInputMethod2() override;
54 57
55 // Platform-specific part of this WindowTreeHost. 58 // Platform-specific part of this WindowTreeHost.
56 scoped_ptr<ui::PlatformWindow> platform_window_; 59 scoped_ptr<ui::PlatformWindow> platform_window_;
57 60
58 // The identifier used to create a compositing surface. 61 // The identifier used to create a compositing surface.
59 gfx::AcceleratedWidget widget_; 62 gfx::AcceleratedWidget widget_;
60 63
61 // Current Aura cursor. 64 // Current Aura cursor.
62 gfx::NativeCursor current_cursor_; 65 gfx::NativeCursor current_cursor_;
63 66
64 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostOzone); 67 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostAndroid);
65 }; 68 };
66 69
67 } // namespace aura 70 } // namespace aura
68 71
69 #endif // UI_AURA_WINDOW_TREE_HOST_OZONE_H_ 72 #endif // UI_AURA_WINDOW_TREE_HOST_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698