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

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

Issue 1836943002: DevTools: request app banner from DevTools without #enable-add-to-shelf flag while emulating. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/android/tab_web_contents_delegate_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 content::WebContents* OpenURLFromTab( 79 content::WebContents* OpenURLFromTab(
80 content::WebContents* source, 80 content::WebContents* source,
81 const content::OpenURLParams& params) override; 81 const content::OpenURLParams& params) override;
82 bool ShouldResumeRequestsForCreatedWindow() override; 82 bool ShouldResumeRequestsForCreatedWindow() override;
83 void AddNewContents(content::WebContents* source, 83 void AddNewContents(content::WebContents* source,
84 content::WebContents* new_contents, 84 content::WebContents* new_contents,
85 WindowOpenDisposition disposition, 85 WindowOpenDisposition disposition,
86 const gfx::Rect& initial_rect, 86 const gfx::Rect& initial_rect,
87 bool user_gesture, 87 bool user_gesture,
88 bool* was_blocked) override; 88 bool* was_blocked) override;
89 bool RequestAppBanner(content::WebContents* web_contents) override; 89 void RequestAppBannerFromDevTools(
90 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
« no previous file with comments | « no previous file | chrome/browser/android/tab_web_contents_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698