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 CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
6 #define CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 public: | 36 public: |
37 TabWebContentsDelegateAndroid(JNIEnv* env, jobject obj); | 37 TabWebContentsDelegateAndroid(JNIEnv* env, jobject obj); |
38 ~TabWebContentsDelegateAndroid() override; | 38 ~TabWebContentsDelegateAndroid() override; |
39 | 39 |
40 void LoadingStateChanged(content::WebContents* source, | 40 void LoadingStateChanged(content::WebContents* source, |
41 bool to_different_document) override; | 41 bool to_different_document) override; |
42 void RunFileChooser(content::RenderFrameHost* render_frame_host, | 42 void RunFileChooser(content::RenderFrameHost* render_frame_host, |
43 const content::FileChooserParams& params) override; | 43 const content::FileChooserParams& params) override; |
44 std::unique_ptr<content::BluetoothChooser> RunBluetoothChooser( | 44 std::unique_ptr<content::BluetoothChooser> RunBluetoothChooser( |
45 content::RenderFrameHost* frame, | 45 content::RenderFrameHost* frame, |
46 const content::BluetoothChooser::EventHandler& event_handler) override; | 46 const content::BluetoothChooser::EventHandler& event_handler, |
| 47 bool accept_all_devices) override; |
47 void CloseContents(content::WebContents* web_contents) override; | 48 void CloseContents(content::WebContents* web_contents) override; |
48 bool ShouldFocusLocationBarByDefault(content::WebContents* source) override; | 49 bool ShouldFocusLocationBarByDefault(content::WebContents* source) override; |
49 blink::WebDisplayMode GetDisplayMode( | 50 blink::WebDisplayMode GetDisplayMode( |
50 const content::WebContents* web_contents) const override; | 51 const content::WebContents* web_contents) const override; |
51 void FindReply(content::WebContents* web_contents, | 52 void FindReply(content::WebContents* web_contents, |
52 int request_id, | 53 int request_id, |
53 int number_of_matches, | 54 int number_of_matches, |
54 const gfx::Rect& selection_rect, | 55 const gfx::Rect& selection_rect, |
55 int active_match_ordinal, | 56 int active_match_ordinal, |
56 bool final_update) override; | 57 bool final_update) override; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 100 |
100 content::NotificationRegistrar notification_registrar_; | 101 content::NotificationRegistrar notification_registrar_; |
101 }; | 102 }; |
102 | 103 |
103 // Register the native methods through JNI. | 104 // Register the native methods through JNI. |
104 bool RegisterTabWebContentsDelegateAndroid(JNIEnv* env); | 105 bool RegisterTabWebContentsDelegateAndroid(JNIEnv* env); |
105 | 106 |
106 } // namespace android | 107 } // namespace android |
107 | 108 |
108 #endif // CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 109 #endif // CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
OLD | NEW |