Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Side by Side Diff: content/browser/android/content_view_impl.h

Issue 10536066: android content shell bringup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 <jni.h>
10 #include <vector>
11
12 #include "base/android/jni_helper.h"
13 #include "base/memory/weak_ptr.h"
14 #include "content/public/browser/notification_observer.h"
15 #include "content/public/browser/content_view.h"
16
17 class ContentViewClient;
18
19 namespace content {
20 class JavaScriptDialogCreator;
21 }
22
23 namespace content {
24
25 // TODO(jrg): this is a shell. Upstream the rest.
26 class ContentViewImpl : public ContentView,
27 public content::NotificationObserver {
28 public:
29 ContentViewImpl(JNIEnv* env,
30 jobject obj);
31 virtual void Destroy(JNIEnv* env, jobject obj);
32
33 private:
34 // NotificationObserver implementation.
35 virtual void Observe(int type,
36 const content::NotificationSource& source,
37 const content::NotificationDetails& details) OVERRIDE;
38
39 // --------------------------------------------------------------------------
40 // Private methods that call to Java via JNI
41 // --------------------------------------------------------------------------
42 virtual ~ContentViewImpl();
43
44 // --------------------------------------------------------------------------
45 // Other private methods and data
46 // --------------------------------------------------------------------------
47 DISALLOW_COPY_AND_ASSIGN(ContentViewImpl);
48 };
49
50 bool RegisterContentView(JNIEnv* env);
51
52 }; // namespace content
53
54 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698