summaryrefslogtreecommitdiffstats
path: root/ui/android/view_android.h
blob: 32c2c719bba1572ddbe2b443d0d01f024a46805e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2013 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 UI_ANDROID_VIEW_ANDROID_H_
#define UI_ANDROID_VIEW_ANDROID_H_

#include "base/android/scoped_java_ref.h"
#include "ui/android/ui_android_export.h"

namespace ui {

class WindowAndroid;

// This is a NativeView interface for getting access to
// WindowAndroid(NativeWindow).
class UI_ANDROID_EXPORT ViewAndroid {
 public:
  virtual WindowAndroid* GetWindowAndroid() const = 0;

  virtual base::android::ScopedJavaLocalRef<jobject>
      GetViewAndroidDelegate() const = 0 ;

 protected:
  virtual ~ViewAndroid() {}
};

}  // namespace ui

#endif  // UI_ANDROID_VIEW_ANDROID_H_