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_
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"
19 class ReaderModeLayer
;
21 class ReaderModeSceneLayer
: public SceneLayer
{
23 ReaderModeSceneLayer(JNIEnv
* env
, jobject jobj
);
24 ~ReaderModeSceneLayer() override
;
26 void UpdateReaderModeLayer(JNIEnv
* env
,
28 jint panel_background_resource_id
,
29 jint panel_text_resource_id
,
30 jobject jreader_mode_content_view_core
,
33 jfloat panel_margin_top
,
36 jfloat distilled_height
,
38 jfloat panel_text_opacity
,
39 jint header_background_color
,
40 jobject jresource_manager
);
43 scoped_refptr
<ReaderModeLayer
> reader_mode_layer_
;
45 DISALLOW_COPY_AND_ASSIGN(ReaderModeSceneLayer
);
48 bool RegisterReaderModeSceneLayer(JNIEnv
* env
);
50 } // namespace android
53 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_READER_MODE_SCENE_LAYER_H_