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

Side by Side Diff: components/web_contents_delegate_android/web_contents_delegate_android.h

Issue 14139013: Hide location bar on Javascript-initiated scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge after sync. Created 7 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROID_H _ 5 #ifndef COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROID_H _
6 #define COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROID_H _ 6 #define COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROID_H _
7 7
8 #include "base/android/jni_helper.h" 8 #include "base/android/jni_helper.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const content::NativeWebKeyboardEvent& event) OVERRIDE; 85 const content::NativeWebKeyboardEvent& event) OVERRIDE;
86 virtual bool TakeFocus(content::WebContents* source, bool reverse) OVERRIDE; 86 virtual bool TakeFocus(content::WebContents* source, bool reverse) OVERRIDE;
87 87
88 virtual void ShowRepostFormWarningDialog( 88 virtual void ShowRepostFormWarningDialog(
89 content::WebContents* source) OVERRIDE; 89 content::WebContents* source) OVERRIDE;
90 90
91 virtual void ToggleFullscreenModeForTab(content::WebContents* web_contents, 91 virtual void ToggleFullscreenModeForTab(content::WebContents* web_contents,
92 bool enter_fullscreen) OVERRIDE; 92 bool enter_fullscreen) OVERRIDE;
93 virtual bool IsFullscreenForTabOrPending( 93 virtual bool IsFullscreenForTabOrPending(
94 const content::WebContents* web_contents) const OVERRIDE; 94 const content::WebContents* web_contents) const OVERRIDE;
95 95
jam 2013/04/17 16:24:59 nit: here and above, do not add blank spaces betwe
Michael van Ouwerkerk 2013/04/18 18:11:38 Done.
96 virtual void DidProgrammaticallyScroll(
97 content::WebContents* web_contents,
98 const gfx::Point& scroll_point) OVERRIDE;
99
96 protected: 100 protected:
97 base::android::ScopedJavaLocalRef<jobject> GetJavaDelegate(JNIEnv* env) const; 101 base::android::ScopedJavaLocalRef<jobject> GetJavaDelegate(JNIEnv* env) const;
98 102
99 private: 103 private:
100 // We depend on the java side user of WebContentDelegateAndroid to hold a 104 // We depend on the java side user of WebContentDelegateAndroid to hold a
101 // strong reference to that object as long as they want to receive callbacks 105 // strong reference to that object as long as they want to receive callbacks
102 // on it. Using a weak ref here allows it to be correctly GCed. 106 // on it. Using a weak ref here allows it to be correctly GCed.
103 JavaObjectWeakGlobalRef weak_java_delegate_; 107 JavaObjectWeakGlobalRef weak_java_delegate_;
104 }; 108 };
105 109
106 bool RegisterWebContentsDelegateAndroid(JNIEnv* env); 110 bool RegisterWebContentsDelegateAndroid(JNIEnv* env);
107 111
108 } // namespace components 112 } // namespace components
109 113
110 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROI D_H_ 114 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROI D_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698