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

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

Issue 1159113006: [Android] A prototype of the interactive media notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added browser tests Created 5 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_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_CHROME_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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 content::WebContents* OpenURLFromTab( 69 content::WebContents* OpenURLFromTab(
70 content::WebContents* source, 70 content::WebContents* source,
71 const content::OpenURLParams& params) override; 71 const content::OpenURLParams& params) override;
72 bool ShouldResumeRequestsForCreatedWindow() override; 72 bool ShouldResumeRequestsForCreatedWindow() override;
73 void AddNewContents(content::WebContents* source, 73 void AddNewContents(content::WebContents* source,
74 content::WebContents* new_contents, 74 content::WebContents* new_contents,
75 WindowOpenDisposition disposition, 75 WindowOpenDisposition disposition,
76 const gfx::Rect& initial_rect, 76 const gfx::Rect& initial_rect,
77 bool user_gesture, 77 bool user_gesture,
78 bool* was_blocked) override; 78 bool* was_blocked) override;
79 void ShowMediaControls(content::WebContents* web_contents) override;
80 void HideMediaControls(content::WebContents* web_contents) override;
79 81
80 private: 82 private:
81 // NotificationObserver implementation. 83 // NotificationObserver implementation.
82 void Observe(int type, 84 void Observe(int type,
83 const content::NotificationSource& source, 85 const content::NotificationSource& source,
84 const content::NotificationDetails& details) override; 86 const content::NotificationDetails& details) override;
85 87
86 void OnFindResultAvailable(content::WebContents* web_contents, 88 void OnFindResultAvailable(content::WebContents* web_contents,
87 const FindNotificationDetails* find_result); 89 const FindNotificationDetails* find_result);
88 90
89 content::NotificationRegistrar notification_registrar_; 91 content::NotificationRegistrar notification_registrar_;
90 }; 92 };
91 93
92 // Register the native methods through JNI. 94 // Register the native methods through JNI.
93 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); 95 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env);
94 96
95 } // namespace android 97 } // namespace android
96 } // namespace chrome 98 } // namespace chrome
97 99
98 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 100 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698