| OLD | NEW |
| 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 <stdint.h> |
| 9 |
| 8 #include "base/android/jni_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
| 9 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 12 #include "content/public/browser/web_contents_delegate.h" | 14 #include "content/public/browser/web_contents_delegate.h" |
| 13 | 15 |
| 14 class GURL; | 16 class GURL; |
| 15 | 17 |
| 16 namespace content { | 18 namespace content { |
| 17 class WebContents; | 19 class WebContents; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 WindowContainerType window_container_type, | 83 WindowContainerType window_container_type, |
| 82 const std::string& frame_name, | 84 const std::string& frame_name, |
| 83 const GURL& target_url, | 85 const GURL& target_url, |
| 84 const std::string& partition_id, | 86 const std::string& partition_id, |
| 85 content::SessionStorageNamespace* session_storage_namespace) override; | 87 content::SessionStorageNamespace* session_storage_namespace) override; |
| 86 bool OnGoToEntryOffset(int offset) override; | 88 bool OnGoToEntryOffset(int offset) override; |
| 87 void CloseContents(content::WebContents* source) override; | 89 void CloseContents(content::WebContents* source) override; |
| 88 void MoveContents(content::WebContents* source, | 90 void MoveContents(content::WebContents* source, |
| 89 const gfx::Rect& pos) override; | 91 const gfx::Rect& pos) override; |
| 90 bool AddMessageToConsole(content::WebContents* source, | 92 bool AddMessageToConsole(content::WebContents* source, |
| 91 int32 level, | 93 int32_t level, |
| 92 const base::string16& message, | 94 const base::string16& message, |
| 93 int32 line_no, | 95 int32_t line_no, |
| 94 const base::string16& source_id) override; | 96 const base::string16& source_id) override; |
| 95 void UpdateTargetURL(content::WebContents* source, const GURL& url) override; | 97 void UpdateTargetURL(content::WebContents* source, const GURL& url) override; |
| 96 void HandleKeyboardEvent( | 98 void HandleKeyboardEvent( |
| 97 content::WebContents* source, | 99 content::WebContents* source, |
| 98 const content::NativeWebKeyboardEvent& event) override; | 100 const content::NativeWebKeyboardEvent& event) override; |
| 99 bool TakeFocus(content::WebContents* source, bool reverse) override; | 101 bool TakeFocus(content::WebContents* source, bool reverse) override; |
| 100 void ShowRepostFormWarningDialog(content::WebContents* source) override; | 102 void ShowRepostFormWarningDialog(content::WebContents* source) override; |
| 101 void EnterFullscreenModeForTab(content::WebContents* web_contents, | 103 void EnterFullscreenModeForTab(content::WebContents* web_contents, |
| 102 const GURL& origin) override; | 104 const GURL& origin) override; |
| 103 void ExitFullscreenModeForTab(content::WebContents* web_contents) override; | 105 void ExitFullscreenModeForTab(content::WebContents* web_contents) override; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 121 JavaObjectWeakGlobalRef weak_java_delegate_; | 123 JavaObjectWeakGlobalRef weak_java_delegate_; |
| 122 | 124 |
| 123 scoped_ptr<ValidationMessageBubbleAndroid> validation_message_bubble_; | 125 scoped_ptr<ValidationMessageBubbleAndroid> validation_message_bubble_; |
| 124 }; | 126 }; |
| 125 | 127 |
| 126 bool RegisterWebContentsDelegateAndroid(JNIEnv* env); | 128 bool RegisterWebContentsDelegateAndroid(JNIEnv* env); |
| 127 | 129 |
| 128 } // namespace web_contents_delegate_android | 130 } // namespace web_contents_delegate_android |
| 129 | 131 |
| 130 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROI
D_H_ | 132 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROI
D_H_ |
| OLD | NEW |