OLD | NEW |
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_PLATFORM_WINDOW_ANDROID_PLATFORM_WINDOW_ANDROID_H_ | 5 #ifndef UI_PLATFORM_WINDOW_ANDROID_PLATFORM_WINDOW_ANDROID_H_ |
6 #define UI_PLATFORM_WINDOW_ANDROID_PLATFORM_WINDOW_ANDROID_H_ | 6 #define UI_PLATFORM_WINDOW_ANDROID_PLATFORM_WINDOW_ANDROID_H_ |
7 | 7 |
8 #include "base/android/jni_weak_ref.h" | 8 #include "base/android/jni_weak_ref.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 jint key_code, | 60 jint key_code, |
61 jint unicode_character); | 61 jint unicode_character); |
62 | 62 |
63 private: | 63 private: |
64 void ReleaseWindow(); | 64 void ReleaseWindow(); |
65 | 65 |
66 // Overridden from PlatformWindow: | 66 // Overridden from PlatformWindow: |
67 void Show() override; | 67 void Show() override; |
68 void Hide() override; | 68 void Hide() override; |
69 void Close() override; | 69 void Close() override; |
| 70 void PrepareForShutdown() override; |
70 void SetBounds(const gfx::Rect& bounds) override; | 71 void SetBounds(const gfx::Rect& bounds) override; |
71 gfx::Rect GetBounds() override; | 72 gfx::Rect GetBounds() override; |
72 void SetTitle(const base::string16& title) override; | 73 void SetTitle(const base::string16& title) override; |
73 void SetCapture() override; | 74 void SetCapture() override; |
74 void ReleaseCapture() override; | 75 void ReleaseCapture() override; |
75 void ToggleFullscreen() override; | 76 void ToggleFullscreen() override; |
76 void Maximize() override; | 77 void Maximize() override; |
77 void Minimize() override; | 78 void Minimize() override; |
78 void Restore() override; | 79 void Restore() override; |
79 void SetCursor(PlatformCursor cursor) override; | 80 void SetCursor(PlatformCursor cursor) override; |
(...skipping 12 matching lines...) Expand all Loading... |
92 PlatformImeControllerAndroid platform_ime_controller_; | 93 PlatformImeControllerAndroid platform_ime_controller_; |
93 | 94 |
94 base::WeakPtrFactory<PlatformWindowAndroid> weak_factory_; | 95 base::WeakPtrFactory<PlatformWindowAndroid> weak_factory_; |
95 | 96 |
96 DISALLOW_COPY_AND_ASSIGN(PlatformWindowAndroid); | 97 DISALLOW_COPY_AND_ASSIGN(PlatformWindowAndroid); |
97 }; | 98 }; |
98 | 99 |
99 } // namespace ui | 100 } // namespace ui |
100 | 101 |
101 #endif // UI_PLATFORM_WINDOW_ANDROID_PLATFORM_WINDOW_ANDROID_H_ | 102 #endif // UI_PLATFORM_WINDOW_ANDROID_PLATFORM_WINDOW_ANDROID_H_ |
OLD | NEW |