| Index: content/browser/android/content_view_impl.h
|
| diff --git a/content/browser/android/content_view_impl.h b/content/browser/android/content_view_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..944bd06c3c5004cc53af9d1e568870813883cffb
|
| --- /dev/null
|
| +++ b/content/browser/android/content_view_impl.h
|
| @@ -0,0 +1,54 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_IMPL_H_
|
| +#define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_IMPL_H_
|
| +#pragma once
|
| +
|
| +#include <jni.h>
|
| +#include <vector>
|
| +
|
| +#include "base/android/jni_helper.h"
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "content/public/browser/notification_observer.h"
|
| +#include "content/public/browser/content_view.h"
|
| +
|
| +class ContentViewClient;
|
| +
|
| +namespace content {
|
| +class JavaScriptDialogCreator;
|
| +}
|
| +
|
| +namespace content {
|
| +
|
| +// TODO(jrg): this is a shell. Upstream the rest.
|
| +class ContentViewImpl : public ContentView,
|
| + public content::NotificationObserver {
|
| + public:
|
| + ContentViewImpl(JNIEnv* env,
|
| + jobject obj);
|
| + virtual void Destroy(JNIEnv* env, jobject obj);
|
| +
|
| + private:
|
| + // NotificationObserver implementation.
|
| + virtual void Observe(int type,
|
| + const content::NotificationSource& source,
|
| + const content::NotificationDetails& details) OVERRIDE;
|
| +
|
| + // --------------------------------------------------------------------------
|
| + // Private methods that call to Java via JNI
|
| + // --------------------------------------------------------------------------
|
| + virtual ~ContentViewImpl();
|
| +
|
| + // --------------------------------------------------------------------------
|
| + // Other private methods and data
|
| + // --------------------------------------------------------------------------
|
| + DISALLOW_COPY_AND_ASSIGN(ContentViewImpl);
|
| +};
|
| +
|
| +bool RegisterContentView(JNIEnv* env);
|
| +
|
| +}; // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_IMPL_H_
|
|
|