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

Side by Side Diff: chrome/browser/media/media_stream_infobar_delegate_android.h

Issue 1520543004: Add method for identifying different InfoBars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit again 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_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_ 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_
6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_ 6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 20 matching lines...) Expand all
31 bool IsRequestingVideoAccess() const; 31 bool IsRequestingVideoAccess() const;
32 bool IsRequestingMicrophoneAccess() const; 32 bool IsRequestingMicrophoneAccess() const;
33 33
34 private: 34 private:
35 friend class WebRtcTestBase; 35 friend class WebRtcTestBase;
36 36
37 explicit MediaStreamInfoBarDelegateAndroid( 37 explicit MediaStreamInfoBarDelegateAndroid(
38 scoped_ptr<MediaStreamDevicesController> controller); 38 scoped_ptr<MediaStreamDevicesController> controller);
39 39
40 // ConfirmInfoBarDelegate: 40 // ConfirmInfoBarDelegate:
41 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
41 Type GetInfoBarType() const override; 42 Type GetInfoBarType() const override;
42 int GetIconId() const override; 43 int GetIconId() const override;
43 void InfoBarDismissed() override; 44 void InfoBarDismissed() override;
44 MediaStreamInfoBarDelegateAndroid* AsMediaStreamInfoBarDelegateAndroid() 45 MediaStreamInfoBarDelegateAndroid* AsMediaStreamInfoBarDelegateAndroid()
45 override; 46 override;
46 base::string16 GetMessageText() const override; 47 base::string16 GetMessageText() const override;
47 base::string16 GetButtonLabel(InfoBarButton button) const override; 48 base::string16 GetButtonLabel(InfoBarButton button) const override;
48 bool Accept() override; 49 bool Accept() override;
49 bool Cancel() override; 50 bool Cancel() override;
50 base::string16 GetLinkText() const override; 51 base::string16 GetLinkText() const override;
51 GURL GetLinkURL() const override; 52 GURL GetLinkURL() const override;
52 53
53 scoped_ptr<MediaStreamDevicesController> controller_; 54 scoped_ptr<MediaStreamDevicesController> controller_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarDelegateAndroid); 56 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarDelegateAndroid);
56 }; 57 };
57 58
58 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_ 59 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698