OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "ui/platform_window/android/platform_window_android.h" | 5 #include "ui/platform_window/android/platform_window_android.h" |
6 | 6 |
7 #include <android/input.h> | 7 #include <android/input.h> |
8 #include <android/native_window_jni.h> | 8 #include <android/native_window_jni.h> |
9 | 9 |
10 #include "base/android/context_utils.h" | 10 #include "base/android/context_utils.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 } | 171 } |
172 | 172 |
173 void PlatformWindowAndroid::Hide() { | 173 void PlatformWindowAndroid::Hide() { |
174 // Nothing to do. View is always visible. | 174 // Nothing to do. View is always visible. |
175 } | 175 } |
176 | 176 |
177 void PlatformWindowAndroid::Close() { | 177 void PlatformWindowAndroid::Close() { |
178 delegate_->OnCloseRequest(); | 178 delegate_->OnCloseRequest(); |
179 } | 179 } |
180 | 180 |
| 181 void PlatformWindowAndroid::PrepareForShutdown() {} |
| 182 |
181 void PlatformWindowAndroid::SetBounds(const gfx::Rect& bounds) { | 183 void PlatformWindowAndroid::SetBounds(const gfx::Rect& bounds) { |
182 NOTIMPLEMENTED(); | 184 NOTIMPLEMENTED(); |
183 } | 185 } |
184 | 186 |
185 gfx::Rect PlatformWindowAndroid::GetBounds() { | 187 gfx::Rect PlatformWindowAndroid::GetBounds() { |
186 return gfx::Rect(size_); | 188 return gfx::Rect(size_); |
187 } | 189 } |
188 | 190 |
189 void PlatformWindowAndroid::SetTitle(const base::string16& title) { | 191 void PlatformWindowAndroid::SetTitle(const base::string16& title) { |
190 NOTIMPLEMENTED(); | 192 NOTIMPLEMENTED(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 226 |
225 void PlatformWindowAndroid::ConfineCursorToBounds(const gfx::Rect& bounds) { | 227 void PlatformWindowAndroid::ConfineCursorToBounds(const gfx::Rect& bounds) { |
226 NOTIMPLEMENTED(); | 228 NOTIMPLEMENTED(); |
227 } | 229 } |
228 | 230 |
229 PlatformImeController* PlatformWindowAndroid::GetPlatformImeController() { | 231 PlatformImeController* PlatformWindowAndroid::GetPlatformImeController() { |
230 return &platform_ime_controller_; | 232 return &platform_ime_controller_; |
231 } | 233 } |
232 | 234 |
233 } // namespace ui | 235 } // namespace ui |
OLD | NEW |