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

Unified Diff: chrome/browser/android/compositor/scene_layer/contextual_search_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/contextual_search_scene_layer.h
diff --git a/chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.h b/chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.h
new file mode 100644
index 0000000000000000000000000000000000000000..8f246844e1a129987b602e4a6e928fce79c50df2
--- /dev/null
+++ b/chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.h
@@ -0,0 +1,72 @@
+// 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_CONTEXTUAL_SEARCH_SCENE_LAYER_H_
+#define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_CONTEXTUAL_SEARCH_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 ContextualSearchLayer;
+
+class ContextualSearchSceneLayer : public SceneLayer {
+ public:
+ ContextualSearchSceneLayer(JNIEnv* env, jobject jobj);
+ ~ContextualSearchSceneLayer() override;
+
+ void UpdateContextualSearchLayer(JNIEnv* env,
+ jobject object,
+ jint search_bar_background_resource_id,
+ jint search_bar_text_resource_id,
+ jint search_bar_shadow_resource_id,
+ jint search_provider_icon_resource_id,
+ jint search_icon_resource_id,
+ jint progress_bar_background_resource_id,
+ jint progress_bar_resource_id,
+ jint search_promo_resource_id,
+ jobject jcontent_view_core,
+ jboolean search_promo_visible,
+ jfloat search_promo_height,
+ jfloat search_promo_opacity,
+ jfloat search_panel_y,
+ jfloat search_panel_width,
+ jfloat search_bar_margin_top,
+ jfloat search_bar_height,
+ jfloat search_bar_text_opacity,
+ jboolean search_bar_border_visible,
+ jfloat search_bar_border_y,
+ jfloat search_bar_border_height,
+ jboolean search_bar_shadow_visible,
+ jfloat search_bar_shadow_opacity,
+ jfloat search_provider_icon_opacity,
+ jfloat search_icon_padding_left,
+ jfloat search_icon_opacity,
+ jboolean progress_bar_visible,
+ jfloat progress_bar_y,
+ jfloat progress_bar_height,
+ jfloat progress_bar_opacity,
+ jint progress_bar_completion,
+ jobject jresource_manager);
+
+ private:
+ scoped_refptr<ContextualSearchLayer> contextual_search_layer_;
+
+ DISALLOW_COPY_AND_ASSIGN(ContextualSearchSceneLayer);
+};
+
+bool RegisterContextualSearchSceneLayer(JNIEnv* env);
+
+} // namespace android
+} // namespace chrome
+
+#endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_CONTEXTUAL_SEARCH_SCENE_LAYER_H_

Powered by Google App Engine
This is Rietveld 408576698