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

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

Issue 23264020: Move Android to use new Popup Blocker API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Comments Created 7 years, 4 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 | Annotate | Revision Log
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void SetOwnerWebContents(content::WebContents* contents); 50 void SetOwnerWebContents(content::WebContents* contents);
51 51
52 // Overridden from WebContentsDelegate: 52 // Overridden from WebContentsDelegate:
53 virtual content::WebContents* OpenURLFromTab( 53 virtual content::WebContents* OpenURLFromTab(
54 content::WebContents* source, 54 content::WebContents* source,
55 const content::OpenURLParams& params) OVERRIDE; 55 const content::OpenURLParams& params) OVERRIDE;
56 virtual content::ColorChooser* OpenColorChooser(content::WebContents* source, 56 virtual content::ColorChooser* OpenColorChooser(content::WebContents* source,
57 SkColor color) OVERRIDE; 57 SkColor color) OVERRIDE;
58 virtual void NavigationStateChanged(const content::WebContents* source, 58 virtual void NavigationStateChanged(const content::WebContents* source,
59 unsigned changed_flags) OVERRIDE; 59 unsigned changed_flags) OVERRIDE;
60 virtual void AddNewContents(content::WebContents* source,
61 content::WebContents* new_contents,
62 WindowOpenDisposition disposition,
63 const gfx::Rect& initial_pos,
64 bool user_gesture,
65 bool* was_blocked) OVERRIDE;
66 virtual void ActivateContents(content::WebContents* contents) OVERRIDE; 60 virtual void ActivateContents(content::WebContents* contents) OVERRIDE;
67 virtual void DeactivateContents(content::WebContents* contents) OVERRIDE; 61 virtual void DeactivateContents(content::WebContents* contents) OVERRIDE;
68 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; 62 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE;
69 virtual void LoadProgressChanged(content::WebContents* source, 63 virtual void LoadProgressChanged(content::WebContents* source,
70 double load_progress) OVERRIDE; 64 double load_progress) OVERRIDE;
71 virtual void RendererUnresponsive(content::WebContents* source) OVERRIDE; 65 virtual void RendererUnresponsive(content::WebContents* source) OVERRIDE;
72 virtual void RendererResponsive(content::WebContents* source) OVERRIDE; 66 virtual void RendererResponsive(content::WebContents* source) OVERRIDE;
73 virtual void CloseContents(content::WebContents* source) OVERRIDE; 67 virtual void CloseContents(content::WebContents* source) OVERRIDE;
74 virtual void MoveContents(content::WebContents* source, 68 virtual void MoveContents(content::WebContents* source,
75 const gfx::Rect& pos) OVERRIDE; 69 const gfx::Rect& pos) OVERRIDE;
(...skipping 27 matching lines...) Expand all
103 // strong reference to that object as long as they want to receive callbacks 97 // strong reference to that object as long as they want to receive callbacks
104 // on it. Using a weak ref here allows it to be correctly GCed. 98 // on it. Using a weak ref here allows it to be correctly GCed.
105 JavaObjectWeakGlobalRef weak_java_delegate_; 99 JavaObjectWeakGlobalRef weak_java_delegate_;
106 }; 100 };
107 101
108 bool RegisterWebContentsDelegateAndroid(JNIEnv* env); 102 bool RegisterWebContentsDelegateAndroid(JNIEnv* env);
109 103
110 } // namespace web_contents_delegate_android 104 } // namespace web_contents_delegate_android
111 105
112 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROI D_H_ 106 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROI D_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698