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

Unified Diff: chrome/browser/android/compositor/scene_layer/reader_mode_scene_layer.h

Issue 1141283003: Upstream oodles of Chrome for Android code into Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final patch? Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/compositor/scene_layer/reader_mode_scene_layer.h
diff --git a/chrome/browser/android/compositor/scene_layer/reader_mode_scene_layer.h b/chrome/browser/android/compositor/scene_layer/reader_mode_scene_layer.h
new file mode 100644
index 0000000000000000000000000000000000000000..cf1e7f095b954f8e3efeeccb21eb62e16c5aa1ed
--- /dev/null
+++ b/chrome/browser/android/compositor/scene_layer/reader_mode_scene_layer.h
@@ -0,0 +1,53 @@
+// Copyright 2015 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 CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_READER_MODE_SCENE_LAYER_H_
+#define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_READER_MODE_SCENE_LAYER_H_
+
+#include <vector>
+
+#include "base/android/jni_android.h"
+#include "base/android/jni_weak_ref.h"
+#include "base/android/scoped_java_ref.h"
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/android/compositor/scene_layer/scene_layer.h"
+
+namespace chrome {
+namespace android {
+class ReaderModeLayer;
+
+class ReaderModeSceneLayer : public SceneLayer {
+ public:
+ ReaderModeSceneLayer(JNIEnv* env, jobject jobj);
+ ~ReaderModeSceneLayer() override;
+
+ void UpdateReaderModeLayer(JNIEnv* env,
+ jobject object,
+ jint panel_background_resource_id,
+ jint panel_text_resource_id,
+ jobject jreader_mode_content_view_core,
+ jfloat panel_y,
+ jfloat panel_width,
+ jfloat panel_margin_top,
+ jfloat panel_height,
+ jfloat distilled_y,
+ jfloat distilled_height,
+ jfloat x,
+ jfloat panel_text_opacity,
+ jint header_background_color,
+ jobject jresource_manager);
+
+ private:
+ scoped_refptr<ReaderModeLayer> reader_mode_layer_;
+
+ DISALLOW_COPY_AND_ASSIGN(ReaderModeSceneLayer);
+};
+
+bool RegisterReaderModeSceneLayer(JNIEnv* env);
+
+} // namespace android
+} // namespace chrome
+
+#endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_READER_MODE_SCENE_LAYER_H_

Powered by Google App Engine
This is Rietveld 408576698