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/views/widget/android/native_widget_android.h" | 5 #include "ui/views/widget/android/native_widget_android.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 aura::client::SetActivationDelegate(window_, this); | 175 aura::client::SetActivationDelegate(window_, this); |
176 | 176 |
177 host_->window()->AddChild(window_); | 177 host_->window()->AddChild(window_); |
178 window_reorderer_.reset( | 178 window_reorderer_.reset( |
179 new WindowReorderer(window_, GetWidget()->GetRootView())); | 179 new WindowReorderer(window_, GetWidget()->GetRootView())); |
180 | 180 |
181 // TODO(bshe): figure out how to add cursor manager, drag drop client and all | 181 // TODO(bshe): figure out how to add cursor manager, drag drop client and all |
182 // the necessary parts that exists in desktop_native_widget_aura. | 182 // the necessary parts that exists in desktop_native_widget_aura. |
183 } | 183 } |
184 | 184 |
| 185 void NativeWidgetAndroid::OnWidgetInitDone() {} |
| 186 |
185 NonClientFrameView* NativeWidgetAndroid::CreateNonClientFrameView() { | 187 NonClientFrameView* NativeWidgetAndroid::CreateNonClientFrameView() { |
186 NOTIMPLEMENTED(); | 188 NOTIMPLEMENTED(); |
187 return nullptr; | 189 return nullptr; |
188 } | 190 } |
189 | 191 |
190 bool NativeWidgetAndroid::ShouldUseNativeFrame() const { | 192 bool NativeWidgetAndroid::ShouldUseNativeFrame() const { |
191 // There is only one frame type for aura. | 193 // There is only one frame type for aura. |
192 return false; | 194 return false; |
193 } | 195 } |
194 | 196 |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 return false; | 832 return false; |
831 } | 833 } |
832 | 834 |
833 void NativeWidgetAndroid::SetInitialFocus(ui::WindowShowState show_state) { | 835 void NativeWidgetAndroid::SetInitialFocus(ui::WindowShowState show_state) { |
834 // The window does not get keyboard messages unless we focus it. | 836 // The window does not get keyboard messages unless we focus it. |
835 if (!GetWidget()->SetInitialFocus(show_state)) | 837 if (!GetWidget()->SetInitialFocus(show_state)) |
836 window_->Focus(); | 838 window_->Focus(); |
837 } | 839 } |
838 | 840 |
839 } // namespace views | 841 } // namespace views |
OLD | NEW |