Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / android / compositor / scene_layer / reader_mode_scene_layer.h
blobcf1e7f095b954f8e3efeeccb21eb62e16c5aa1ed
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_READER_MODE_SCENE_LAYER_H_
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_READER_MODE_SCENE_LAYER_H_
8 #include <vector>
10 #include "base/android/jni_android.h"
11 #include "base/android/jni_weak_ref.h"
12 #include "base/android/scoped_java_ref.h"
13 #include "base/basictypes.h"
14 #include "base/memory/scoped_ptr.h"
15 #include "chrome/browser/android/compositor/scene_layer/scene_layer.h"
17 namespace chrome {
18 namespace android {
19 class ReaderModeLayer;
21 class ReaderModeSceneLayer : public SceneLayer {
22 public:
23 ReaderModeSceneLayer(JNIEnv* env, jobject jobj);
24 ~ReaderModeSceneLayer() override;
26 void UpdateReaderModeLayer(JNIEnv* env,
27 jobject object,
28 jint panel_background_resource_id,
29 jint panel_text_resource_id,
30 jobject jreader_mode_content_view_core,
31 jfloat panel_y,
32 jfloat panel_width,
33 jfloat panel_margin_top,
34 jfloat panel_height,
35 jfloat distilled_y,
36 jfloat distilled_height,
37 jfloat x,
38 jfloat panel_text_opacity,
39 jint header_background_color,
40 jobject jresource_manager);
42 private:
43 scoped_refptr<ReaderModeLayer> reader_mode_layer_;
45 DISALLOW_COPY_AND_ASSIGN(ReaderModeSceneLayer);
48 bool RegisterReaderModeSceneLayer(JNIEnv* env);
50 } // namespace android
51 } // namespace chrome
53 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_READER_MODE_SCENE_LAYER_H_