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

Side by Side Diff: chrome/browser/android/tab_web_contents_delegate_android.h

Issue 2059533002: Change WebContentsDelegate::RunFileChooser to be frame based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes based on reviews. Created 4 years, 6 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
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 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 22 matching lines...) Expand all
33 // the Chromium Android port but not to be shared with WebView. 33 // the Chromium Android port but not to be shared with WebView.
34 class TabWebContentsDelegateAndroid 34 class TabWebContentsDelegateAndroid
35 : public web_contents_delegate_android::WebContentsDelegateAndroid, 35 : public web_contents_delegate_android::WebContentsDelegateAndroid,
36 public content::NotificationObserver { 36 public content::NotificationObserver {
37 public: 37 public:
38 TabWebContentsDelegateAndroid(JNIEnv* env, jobject obj); 38 TabWebContentsDelegateAndroid(JNIEnv* env, jobject obj);
39 ~TabWebContentsDelegateAndroid() override; 39 ~TabWebContentsDelegateAndroid() override;
40 40
41 void LoadingStateChanged(content::WebContents* source, 41 void LoadingStateChanged(content::WebContents* source,
42 bool to_different_document) override; 42 bool to_different_document) override;
43 void RunFileChooser(content::WebContents* web_contents, 43 void RunFileChooser(content::RenderFrameHost* render_frame_host,
44 const content::FileChooserParams& params) override; 44 const content::FileChooserParams& params) override;
45 std::unique_ptr<content::BluetoothChooser> RunBluetoothChooser( 45 std::unique_ptr<content::BluetoothChooser> RunBluetoothChooser(
46 content::RenderFrameHost* frame, 46 content::RenderFrameHost* frame,
47 const content::BluetoothChooser::EventHandler& event_handler) override; 47 const content::BluetoothChooser::EventHandler& event_handler) override;
48 void CloseContents(content::WebContents* web_contents) override; 48 void CloseContents(content::WebContents* web_contents) override;
49 bool ShouldFocusLocationBarByDefault(content::WebContents* source) override; 49 bool ShouldFocusLocationBarByDefault(content::WebContents* source) override;
50 blink::WebDisplayMode GetDisplayMode( 50 blink::WebDisplayMode GetDisplayMode(
51 const content::WebContents* web_contents) const override; 51 const content::WebContents* web_contents) const override;
52 void FindReply(content::WebContents* web_contents, 52 void FindReply(content::WebContents* web_contents,
53 int request_id, 53 int request_id,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 content::NotificationRegistrar notification_registrar_; 101 content::NotificationRegistrar notification_registrar_;
102 }; 102 };
103 103
104 // Register the native methods through JNI. 104 // Register the native methods through JNI.
105 bool RegisterTabWebContentsDelegateAndroid(JNIEnv* env); 105 bool RegisterTabWebContentsDelegateAndroid(JNIEnv* env);
106 106
107 } // namespace android 107 } // namespace android
108 } // namespace chrome 108 } // namespace chrome
109 109
110 #endif // CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ 110 #endif // CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_
OLDNEW
« no previous file with comments | « apps/custom_launcher_page_contents.cc ('k') | chrome/browser/android/tab_web_contents_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698