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

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

Issue 1569893003: Add "Request app banner" context menu in DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated pfeldman's comment Created 4 years, 11 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 content::WebContents* OpenURLFromTab( 80 content::WebContents* OpenURLFromTab(
81 content::WebContents* source, 81 content::WebContents* source,
82 const content::OpenURLParams& params) override; 82 const content::OpenURLParams& params) override;
83 bool ShouldResumeRequestsForCreatedWindow() override; 83 bool ShouldResumeRequestsForCreatedWindow() override;
84 void AddNewContents(content::WebContents* source, 84 void AddNewContents(content::WebContents* source,
85 content::WebContents* new_contents, 85 content::WebContents* new_contents,
86 WindowOpenDisposition disposition, 86 WindowOpenDisposition disposition,
87 const gfx::Rect& initial_rect, 87 const gfx::Rect& initial_rect,
88 bool user_gesture, 88 bool user_gesture,
89 bool* was_blocked) override; 89 bool* was_blocked) override;
90 bool RequestAppBanner(content::WebContents* web_contents) override;
90 91
91 private: 92 private:
92 // NotificationObserver implementation. 93 // NotificationObserver implementation.
93 void Observe(int type, 94 void Observe(int type,
94 const content::NotificationSource& source, 95 const content::NotificationSource& source,
95 const content::NotificationDetails& details) override; 96 const content::NotificationDetails& details) override;
96 97
97 void OnFindResultAvailable(content::WebContents* web_contents, 98 void OnFindResultAvailable(content::WebContents* web_contents,
98 const FindNotificationDetails* find_result); 99 const FindNotificationDetails* find_result);
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 } // namespace chrome 108 } // namespace chrome
108 109
109 #endif // CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ 110 #endif // CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698