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

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

Issue 684133007: Make WebContentsDelegateAndroid pass more calls to Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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_weak_ref.h" 8 #include "base/android/jni_weak_ref.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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual void VisibleSSLStateChanged( 64 virtual void VisibleSSLStateChanged(
65 const content::WebContents* source) override; 65 const content::WebContents* source) override;
66 virtual void ActivateContents(content::WebContents* contents) override; 66 virtual void ActivateContents(content::WebContents* contents) override;
67 virtual void DeactivateContents(content::WebContents* contents) override; 67 virtual void DeactivateContents(content::WebContents* contents) override;
68 virtual void LoadingStateChanged(content::WebContents* source, 68 virtual void LoadingStateChanged(content::WebContents* source,
69 bool to_different_document) override; 69 bool to_different_document) override;
70 virtual void LoadProgressChanged(content::WebContents* source, 70 virtual void LoadProgressChanged(content::WebContents* source,
71 double load_progress) override; 71 double load_progress) override;
72 virtual void RendererUnresponsive(content::WebContents* source) override; 72 virtual void RendererUnresponsive(content::WebContents* source) override;
73 virtual void RendererResponsive(content::WebContents* source) override; 73 virtual void RendererResponsive(content::WebContents* source) override;
74 virtual void DidNavigateToPendingEntry(content::WebContents* source) override;
75 virtual void WebContentsCreated(content::WebContents* source_contents,
76 int opener_render_frame_id,
77 const base::string16& frame_name,
78 const GURL& target_url,
79 content::WebContents* new_contents) override;
80 virtual bool ShouldCreateWebContents(
81 content::WebContents* web_contents,
82 int route_id,
83 WindowContainerType window_container_type,
84 const base::string16& frame_name,
85 const GURL& target_url,
86 const std::string& partition_id,
87 content::SessionStorageNamespace* session_storage_namespace) override;
88 virtual bool OnGoToEntryOffset(int offset) override;
74 virtual void CloseContents(content::WebContents* source) override; 89 virtual void CloseContents(content::WebContents* source) override;
75 virtual void MoveContents(content::WebContents* source, 90 virtual void MoveContents(content::WebContents* source,
76 const gfx::Rect& pos) override; 91 const gfx::Rect& pos) override;
77 virtual bool AddMessageToConsole(content::WebContents* source, 92 virtual bool AddMessageToConsole(content::WebContents* source,
78 int32 level, 93 int32 level,
79 const base::string16& message, 94 const base::string16& message,
80 int32 line_no, 95 int32 line_no,
81 const base::string16& source_id) override; 96 const base::string16& source_id) override;
82 virtual void UpdateTargetURL(content::WebContents* source, 97 virtual void UpdateTargetURL(content::WebContents* source,
83 const GURL& url) override; 98 const GURL& url) override;
(...skipping 27 matching lines...) Expand all
111 JavaObjectWeakGlobalRef weak_java_delegate_; 126 JavaObjectWeakGlobalRef weak_java_delegate_;
112 127
113 scoped_ptr<ValidationMessageBubbleAndroid> validation_message_bubble_; 128 scoped_ptr<ValidationMessageBubbleAndroid> validation_message_bubble_;
114 }; 129 };
115 130
116 bool RegisterWebContentsDelegateAndroid(JNIEnv* env); 131 bool RegisterWebContentsDelegateAndroid(JNIEnv* env);
117 132
118 } // namespace web_contents_delegate_android 133 } // namespace web_contents_delegate_android
119 134
120 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROI D_H_ 135 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROI D_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698