| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_IMPL_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_IMPL_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" |
| 11 #include "content/public/browser/android/content_view.h" |
| 12 #include "content/public/browser/notification_observer.h" |
| 13 |
| 14 class ContentViewClient; |
| 15 |
| 16 namespace content { |
| 17 |
| 18 // TODO(jrg): this is a shell. Upstream the rest. |
| 19 class ContentViewImpl : public ContentView, |
| 20 public NotificationObserver { |
| 21 public: |
| 22 ContentViewImpl(JNIEnv* env, |
| 23 jobject obj); |
| 24 virtual void Destroy(JNIEnv* env, jobject obj); |
| 25 |
| 26 private: |
| 27 // NotificationObserver implementation. |
| 28 virtual void Observe(int type, |
| 29 const NotificationSource& source, |
| 30 const NotificationDetails& details) OVERRIDE; |
| 31 |
| 32 // -------------------------------------------------------------------------- |
| 33 // Private methods that call to Java via JNI |
| 34 // -------------------------------------------------------------------------- |
| 35 virtual ~ContentViewImpl(); |
| 36 |
| 37 // -------------------------------------------------------------------------- |
| 38 // Other private methods and data |
| 39 // -------------------------------------------------------------------------- |
| 40 DISALLOW_COPY_AND_ASSIGN(ContentViewImpl); |
| 41 }; |
| 42 |
| 43 bool RegisterContentView(JNIEnv* env); |
| 44 |
| 45 }; // namespace content |
| 46 |
| 47 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_IMPL_H_ |
| OLD | NEW |