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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_CONTEXTUAL_SEARCH_SCENE_LA YER_H_
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_CONTEXTUAL_SEARCH_SCENE_LA YER_H_
7
8 #include <vector>
9
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"
16
17 namespace chrome {
18 namespace android {
19
20 class ContextualSearchLayer;
21
22 class ContextualSearchSceneLayer : public SceneLayer {
23 public:
24 ContextualSearchSceneLayer(JNIEnv* env, jobject jobj);
25 ~ContextualSearchSceneLayer() override;
26
27 void UpdateContextualSearchLayer(JNIEnv* env,
28 jobject object,
29 jint search_bar_background_resource_id,
30 jint search_bar_text_resource_id,
31 jint search_bar_shadow_resource_id,
32 jint search_provider_icon_resource_id,
33 jint search_icon_resource_id,
34 jint progress_bar_background_resource_id,
35 jint progress_bar_resource_id,
36 jint search_promo_resource_id,
37 jobject jcontent_view_core,
38 jboolean search_promo_visible,
39 jfloat search_promo_height,
40 jfloat search_promo_opacity,
41 jfloat search_panel_y,
42 jfloat search_panel_width,
43 jfloat search_bar_margin_top,
44 jfloat search_bar_height,
45 jfloat search_bar_text_opacity,
46 jboolean search_bar_border_visible,
47 jfloat search_bar_border_y,
48 jfloat search_bar_border_height,
49 jboolean search_bar_shadow_visible,
50 jfloat search_bar_shadow_opacity,
51 jfloat search_provider_icon_opacity,
52 jfloat search_icon_padding_left,
53 jfloat search_icon_opacity,
54 jboolean progress_bar_visible,
55 jfloat progress_bar_y,
56 jfloat progress_bar_height,
57 jfloat progress_bar_opacity,
58 jint progress_bar_completion,
59 jobject jresource_manager);
60
61 private:
62 scoped_refptr<ContextualSearchLayer> contextual_search_layer_;
63
64 DISALLOW_COPY_AND_ASSIGN(ContextualSearchSceneLayer);
65 };
66
67 bool RegisterContextualSearchSceneLayer(JNIEnv* env);
68
69 } // namespace android
70 } // namespace chrome
71
72 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_CONTEXTUAL_SEARCH_SCENE _LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698