| 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> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 int32_t level, | 94 int32_t level, |
| 95 const base::string16& message, | 95 const base::string16& message, |
| 96 int32_t line_no, | 96 int32_t line_no, |
| 97 const base::string16& source_id) override; | 97 const base::string16& source_id) override; |
| 98 void UpdateTargetURL(content::WebContents* source, const GURL& url) override; | 98 void UpdateTargetURL(content::WebContents* source, const GURL& url) override; |
| 99 void HandleKeyboardEvent( | 99 void HandleKeyboardEvent( |
| 100 content::WebContents* source, | 100 content::WebContents* source, |
| 101 const content::NativeWebKeyboardEvent& event) override; | 101 const content::NativeWebKeyboardEvent& event) override; |
| 102 bool TakeFocus(content::WebContents* source, bool reverse) override; | 102 bool TakeFocus(content::WebContents* source, bool reverse) override; |
| 103 void ShowRepostFormWarningDialog(content::WebContents* source) override; | 103 void ShowRepostFormWarningDialog(content::WebContents* source) override; |
| 104 base::android::ScopedJavaLocalRef<jobject> |
| 105 GetContentVideoViewEmbedder() override; |
| 106 bool ShouldBlockMediaRequest(const GURL& url) override; |
| 104 void EnterFullscreenModeForTab(content::WebContents* web_contents, | 107 void EnterFullscreenModeForTab(content::WebContents* web_contents, |
| 105 const GURL& origin) override; | 108 const GURL& origin) override; |
| 106 void ExitFullscreenModeForTab(content::WebContents* web_contents) override; | 109 void ExitFullscreenModeForTab(content::WebContents* web_contents) override; |
| 107 bool IsFullscreenForTabOrPending( | 110 bool IsFullscreenForTabOrPending( |
| 108 const content::WebContents* web_contents) const override; | 111 const content::WebContents* web_contents) const override; |
| 109 void ShowValidationMessage(content::WebContents* web_contents, | 112 void ShowValidationMessage(content::WebContents* web_contents, |
| 110 const gfx::Rect& anchor_in_root_view, | 113 const gfx::Rect& anchor_in_root_view, |
| 111 const base::string16& main_text, | 114 const base::string16& main_text, |
| 112 const base::string16& sub_text) override; | 115 const base::string16& sub_text) override; |
| 113 void HideValidationMessage(content::WebContents* web_contents) override; | 116 void HideValidationMessage(content::WebContents* web_contents) override; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 124 // strong reference to that object as long as they want to receive callbacks | 127 // strong reference to that object as long as they want to receive callbacks |
| 125 // on it. Using a weak ref here allows it to be correctly GCed. | 128 // on it. Using a weak ref here allows it to be correctly GCed. |
| 126 JavaObjectWeakGlobalRef weak_java_delegate_; | 129 JavaObjectWeakGlobalRef weak_java_delegate_; |
| 127 | 130 |
| 128 std::unique_ptr<ValidationMessageBubbleAndroid> validation_message_bubble_; | 131 std::unique_ptr<ValidationMessageBubbleAndroid> validation_message_bubble_; |
| 129 }; | 132 }; |
| 130 | 133 |
| 131 } // namespace web_contents_delegate_android | 134 } // namespace web_contents_delegate_android |
| 132 | 135 |
| 133 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROI
D_H_ | 136 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROI
D_H_ |
| OLD | NEW |