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 "blimp/client/android/toolbar.h" | 5 #include "blimp/client/app/android/toolbar.h" |
6 | 6 |
7 #include "base/android/jni_string.h" | 7 #include "base/android/jni_string.h" |
8 #include "blimp/client/session/blimp_client_session_android.h" | 8 #include "blimp/client/app/android/blimp_client_session_android.h" |
9 #include "jni/Toolbar_jni.h" | 9 #include "jni/Toolbar_jni.h" |
10 #include "third_party/skia/include/core/SkBitmap.h" | 10 #include "third_party/skia/include/core/SkBitmap.h" |
11 #include "ui/gfx/android/java_bitmap.h" | 11 #include "ui/gfx/android/java_bitmap.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
14 namespace blimp { | 14 namespace blimp { |
15 namespace client { | 15 namespace client { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 void Toolbar::OnLoadingChanged(int tab_id, bool loading) { | 103 void Toolbar::OnLoadingChanged(int tab_id, bool loading) { |
104 JNIEnv* env = base::android::AttachCurrentThread(); | 104 JNIEnv* env = base::android::AttachCurrentThread(); |
105 | 105 |
106 Java_Toolbar_onEngineSentLoading(env, | 106 Java_Toolbar_onEngineSentLoading(env, |
107 java_obj_.obj(), | 107 java_obj_.obj(), |
108 static_cast<jboolean>(loading)); | 108 static_cast<jboolean>(loading)); |
109 } | 109 } |
110 | 110 |
111 } // namespace client | 111 } // namespace client |
112 } // namespace blimp | 112 } // namespace blimp |
OLD | NEW |