| Index: chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.h
|
| diff --git a/chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.h b/chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d1620a3e18bb18a3a034d3733894b7d26e69d92b
|
| --- /dev/null
|
| +++ b/chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.h
|
| @@ -0,0 +1,76 @@
|
| +// 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_STATIC_TAB_SCENE_LAYER_H_
|
| +#define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_H_
|
| +
|
| +#include <jni.h>
|
| +
|
| +#include "base/android/jni_weak_ref.h"
|
| +#include "base/android/scoped_java_ref.h"
|
| +#include "base/basictypes.h"
|
| +#include "base/memory/ref_counted.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "chrome/browser/android/compositor/scene_layer/scene_layer.h"
|
| +#include "ui/gfx/geometry/point.h"
|
| +#include "ui/gfx/geometry/point_f.h"
|
| +#include "ui/gfx/geometry/size.h"
|
| +#include "ui/gfx/geometry/size_f.h"
|
| +
|
| +namespace cc {
|
| +class Layer;
|
| +}
|
| +
|
| +namespace chrome {
|
| +namespace android {
|
| +
|
| +class ContentLayer;
|
| +
|
| +class StaticTabSceneLayer : public SceneLayer {
|
| + public:
|
| + StaticTabSceneLayer(JNIEnv* env, jobject jobj);
|
| + virtual ~StaticTabSceneLayer();
|
| +
|
| + void UpdateTabLayer(JNIEnv* env,
|
| + jobject jobj,
|
| + jfloat content_viewport_x,
|
| + jfloat content_viewport_y,
|
| + jfloat content_viewport_width,
|
| + jfloat content_viewport_height,
|
| + jobject jtab_content_manager,
|
| + jint id,
|
| + jint toolbar_resource_id,
|
| + jboolean can_use_live_layer,
|
| + jboolean can_use_ntp_fallback,
|
| + jint default_background_color,
|
| + jfloat x,
|
| + jfloat y,
|
| + jfloat width,
|
| + jfloat height,
|
| + jfloat content_offset_y,
|
| + jfloat static_to_view_blend,
|
| + jfloat saturation);
|
| +
|
| + bool ShouldShowBackground() override;
|
| + SkColor GetBackgroundColor() override;
|
| +
|
| + void SetContentTree(JNIEnv* env, jobject jobj, jobject jcontent_tree);
|
| +
|
| + private:
|
| + scoped_refptr<chrome::android::ContentLayer> content_layer_;
|
| +
|
| + int last_set_tab_id_;
|
| + int background_color_;
|
| +
|
| + scoped_refptr<cc::Layer> contextual_content_tree_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(StaticTabSceneLayer);
|
| +};
|
| +
|
| +bool RegisterStaticTabSceneLayer(JNIEnv* env);
|
| +
|
| +} // namespace android
|
| +} // namespace chrome
|
| +
|
| +#endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_H_
|
|
|