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

Side by Side Diff: chrome/browser/android/bottombar/overlay_panel_content.h

Issue 2842693005: Store physical backing size in ViewAndroid (Closed)
Patch Set: no UpdateLayerBounds Created 3 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_BOTTOMBAR_OVERLAY_PANEL_CONTENT_H_ 5 #ifndef CHROME_BROWSER_ANDROID_BOTTOMBAR_OVERLAY_PANEL_CONTENT_H_
6 #define CHROME_BROWSER_ANDROID_BOTTOMBAR_OVERLAY_PANEL_CONTENT_H_ 6 #define CHROME_BROWSER_ANDROID_BOTTOMBAR_OVERLAY_PANEL_CONTENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 14 matching lines...) Expand all
25 // Most of the work is done by the associated ContextualSearchDelegate. 25 // Most of the work is done by the associated ContextualSearchDelegate.
26 class OverlayPanelContent { 26 class OverlayPanelContent {
27 public: 27 public:
28 // Constructs a native manager associated with the Java manager. 28 // Constructs a native manager associated with the Java manager.
29 OverlayPanelContent(JNIEnv* env, jobject obj); 29 OverlayPanelContent(JNIEnv* env, jobject obj);
30 virtual ~OverlayPanelContent(); 30 virtual ~OverlayPanelContent();
31 31
32 // Called by the Java OverlayPanelContent when it is being destroyed. 32 // Called by the Java OverlayPanelContent when it is being destroyed.
33 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); 33 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
34 34
35 void OnPhysicalBackingSizeChanged(
36 JNIEnv* env,
37 const base::android::JavaParamRef<jobject>& obj,
38 const base::android::JavaParamRef<jobject>& jweb_contents,
39 jint width,
40 jint height);
41
35 // Removes a search URL from history. |search_start_time_ms| represents the 42 // Removes a search URL from history. |search_start_time_ms| represents the
36 // time at which |search_url| was committed. 43 // time at which |search_url| was committed.
37 void RemoveLastHistoryEntry( 44 void RemoveLastHistoryEntry(
38 JNIEnv* env, 45 JNIEnv* env,
39 const base::android::JavaParamRef<jobject>& obj, 46 const base::android::JavaParamRef<jobject>& obj,
40 const base::android::JavaParamRef<jstring>& search_url, 47 const base::android::JavaParamRef<jstring>& search_url,
41 jlong search_start_time_ms); 48 jlong search_start_time_ms);
42 49
43 // Takes ownership of the WebContents associated with the given 50 // Takes ownership of the WebContents associated with the given
44 // |ContentViewCore| which holds the panel content. 51 // |ContentViewCore| which holds the panel content.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 std::unique_ptr<content::WebContents> web_contents_; 83 std::unique_ptr<content::WebContents> web_contents_;
77 std::unique_ptr<web_contents_delegate_android::WebContentsDelegateAndroid> 84 std::unique_ptr<web_contents_delegate_android::WebContentsDelegateAndroid>
78 web_contents_delegate_; 85 web_contents_delegate_;
79 86
80 DISALLOW_COPY_AND_ASSIGN(OverlayPanelContent); 87 DISALLOW_COPY_AND_ASSIGN(OverlayPanelContent);
81 }; 88 };
82 89
83 bool RegisterOverlayPanelContent(JNIEnv* env); 90 bool RegisterOverlayPanelContent(JNIEnv* env);
84 91
85 #endif // CHROME_BROWSER_ANDROID_BOTTOMBAR_OVERLAY_PANEL_CONTENT_H_ 92 #endif // CHROME_BROWSER_ANDROID_BOTTOMBAR_OVERLAY_PANEL_CONTENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698